The example process (see
Example XPath expressions
) requires that the purchase amounts be
specified in a different currency. You can use the execute operation of
the Set Value service to change the values in the form fields.
The process data tree is illustrated in the following diagram.
To perform mathematical operations on form field values, you
first must change the field value to a number type. Changing the
value of the
totalCost
field by an exchange rate
of 0.82 requires the following expression for the Expression property
of the service’s execute operation:
number(/process_data/purchaseForm/object/data/xdp/datasets/data/purchaseOrder/cost/totalCost) *0.82)
|
|
|