Retrieving form field values

The example process (see Examples of XPath expressions) dictates that purchases of a total cost less than $300 do not require a manager’s approval. Those purchases can be routed to an administrator for immediate ordering. A route condition decides whether to route the purchases to an administrator or a manager. The condition uses an expression to access the value of the totalCost field on the form.

The process data tree is illustrated in the following diagram.

The following expression retrieves the value of the totalCost field on the form:

/process_data/purchaseForm/object/data/xdp/datasets/data/purchaseOrder/cost/totalCost
Hinweis: When extracting the date from a form field and processing it using a Date or Date-Time function in an XPath expression, the extracted date must be in the format that is valid for the function. (See Date and time parameters.)