Example Dataview Specifications

A dataview example is provided.

The following example finds all orders with an orderID that equals Order1:

<n1:ViewDetails xmlns:n1="http://api.bds.tibco.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<caseClassDetails>
<caseClass>com.example.ordermodel.Order</caseClass>
<majorVersion>1</majorVersion>
</caseClassDetails>
<condition xsi:type="n1:AttributeSearchCondition">
<attrPath>orderId</attrPath>
<operator>EQ</operator>
<value>Order1</value>
</condition>
</n1:ViewDetails>

The following example finds all orders with an orderId that equals Order1 or has an orderLine containing an orderItem with a description that equals Socket.

<n1:ViewDetails xmlns:n1="http://api.bds.tibco.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<caseClassDetails>
<caseClass>com.example.ordermodel.Order</caseClass>
<majorVersion>1</majorVersion>
</caseClassDetails>
<condition xsi:type="n1:OrGroup">
<condition xsi:type="n1:AttributeSearchCondition">
<attrPath>orderId</attrPath>
<operator>EQ</operator>
<value>Order1</value>
</condition>
<condition xsi:type="n1:AttributeSearchCondition">
<attrPath>orderLines.orderItem.description</attrPath>
<operator>EQ</operator>
<value>Socket</value>
</condition>
</condition>
</n1:ViewDetails>

The following example matches orders with an orderId equal to Order1 and has either an orderLine with an orderItem whose description is like Large% or an orderLine with an orderItem whose partNum is equal to P1.

<n1:ViewDetails xmlns:n1="http://api.bds.tibco.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<caseClassDetails>
<caseClass>com.example.ordermodel.Order</caseClass>
<majorVersion>1</majorVersion>
</caseClassDetails>
<condition xsi:type="n1:OrGroup">
<condition xsi:type="n1:AttributeSearchCondition">
<attrPath>orderId</attrPath>
<operator>EQ</operator>
<value>Order1</value>
</condition>
<condition xsi:type="n1:AttributeSearchCondition">
<attrPath>orderLines.orderItem.description</attrPath>
<operator>EQ</operator>
<value>Socket</value>
</condition>
</condition>
</n1:ViewDetails>