XPath Expression Builder
The XPath Expression Builder makes creating XPath expressions to use in your business process models more convenient. Function and token menus enable you to select the functions and tokens to build an expression.
The following figure shows the XPath Expression Builder. For more information, see Defining and Assigning Rules and Conditions under Managing Business Processes.
- When you mouse over a function or token, pop-up help describes the selection.
- Function selections are comprised of two parts. The first part, in italics, is descriptive of the function. The second part, in bold text, is the actual code for the XPath function you are selecting. For example, the number last ( ) function selection indicates that the last function returns a number.
The following figure shows a pop-up description and indicates the parts of a function selection:
The XPath Expression Builder supports several function types and token sets. To build XPath expressions, you must be familiar with the expression type you need and understand the functions and tokens used in the expression types. For descriptions of XPath function types and tokens, view the XPath Tutorial at http://www.w3c.org.
For information about these exceptions, see the BPML documentation.
The following table describes the function types supported by the XPath Expression Builder:
|Node-Set||Used to obtain information from an XML document,
such as counting purchase orders in a node set. Also:
|String||Perform basic string operations, such as:
|Boolean||Specifies a Boolean argument (using either the true or false state) that can include predicates and return the result.|
|Number||Manipulate numbers, such as:
The following table describes the three token sets supported by the XPath Expression Builder:
|Token Set||Use to:|
|Axis||Define the direction of your search by using keywords,
|Node Test||Indicate the name of the node for which to search.
Note: Insert the name of the node test after the resolution operator (::) that follows the axis.
|Predicate||Insert a relational operator to test each node
in the set of context-nodes of a location path.
Note: Predicates can use Boolean operators.