Using the BPEL Designer and Service Engine

Working with Predicates

The BPEL Mapper enables you to create a predicate that consists of XPath functions.

A predicate applies a condition to a node that can have multiple values. The result is the subset of nodes that satisfy the condition.

For example, assume that a node represents the number of products. If you want to select all products whose number is greater than 50, then you can use the greater than and number literal functions to define the condition.

Once you create a predicate, you can use the predicate in an assignment. For example, you can copy data from a predicate in the source tree pane to a node in the destination tree pane.

You can edit or delete an existing predicate.

ProcedureTo create a predicate:

  1. In the source tree pane, right-click a node (schema element or attribute) and choose New Predicate.

    The Predicate Editor appears.

  2. Use XPath functions to create the condition for the predicate. Map the result to the predicate node in the destination tree pane.

  3. Click OK.

    The editor adds the predicate node immediately below the original node. The condition appears in brackets.

ProcedureTo edit a predicate:

  1. In the source tree pane, right-click the predicate node and choose Edit Predicate.

  2. Modify the condition.

  3. Click OK.

ProcedureTo delete a predicate:

  1. In the source tree pane, right-click the predicate node and choose Delete Predicate.

  2. Click Yes.