Example XPath expressions

This section provides examples about applying XPath expressions to data from an example process data tree. The process implements a purchase order process. Routing decisions are made based on the amount of the purchase. A form is used to collect data about the purchase and is routed to several people to approve the purchase and place the order.

The process includes a string variable named approvalState that tracks whether the purchase request has been approved. Form data is saved in an XFAForm variable named purchaseForm . The root node of the form schema is named purchaseOrder . The process data tree is illustrated in the following diagram.

The nodes below the purchaseOrder node represent the form schema. The totalCost node is bound to a field on the form that stores the total cost of the requested purchase.

// Ethnio survey code removed