Introduction to Expressions in Oracle BPM

Writing Expressions 22-7

7. Select before to evaluate the condition before running the flow object, or deselect

it to evaluate the condition after running the flow object.

8. Click OK.

22.6.2 How to Configure Multi-Instance Markers

You can configure a multi-instance marker to run subprocess multiple times based on a set of data. To configure multi-instance markers: 1. Right-click the subprocess.

2. Select Properties.

3. Click the Loop Characteristics tab.

4. Select MultiInstance.

5. Specify the Loop Cardinality:

1. Select the expression language.

Possible options are Simple or XPath.

2. In the text area below, write the specifies the loop cardinality.

Optionally you can write the condition using the Expression Builder. To launch the Expression Builder click the Expression Builder button next to the text area.

6. Optionally, you can specify the Completion Condition:

1. Select the expression language.

Possible options are Simple or XPath.

2. In the text area below, write the condition that determines if the loop is

completed. Optionally you can write the condition using the Expression Builder. To launch the Expression Builder click the Expression Builder button next to the text area. 7. Click the Browse button next to the Loop Data Output field, to specify the data output. You can select a data object or an attribute in a complex data object to pass to the subprocess. Generally the selected data object is a collection of items. 8. Click the Browse button next to the Loop Data Input field, to specify the data input. Select a data object or an attribute in a complex data object to assign the result of the subprocess. 9. Optionally, check the Is Sequential check box to specify that the each token must complete the subprocess before the next token starts to run the subprocess.

10. Click OK.

22-8 Modeling and Implementation Guide for Oracle Business Process Management

22.7 Writing Expressions and Conditions Using the Simple Expression Builder

The Simple Expression Builder contains a text area for you to type the expression and a list of variables that you can use. The Simple Expression Builder supports the following features: ■ Syntax Highlighting The Simple Expression Builder highlights the syntax in your expressions to make them easier to read and understand. It uses different colors for the different data type values. ■ Automatic Code Completion If you wait a few seconds after you type the dot to invoke a method, then the Simple Expression Builder shows a list with the available functions that you can invoke over that data object. If you want the Simple Expression Builder to complete the expression for you, then you can press Ctrl + Space. ■ On-the-fly Error Checking The Simple Expression Builder checks the expressions as you write. It underlines with a red waved line those expressions that do not compile. To find out the cause of the error place the cursor over the red wavy line and wait for a tooltip with the error description to appear. Figure 22–1 show the Simple Expression Builder dialog. Figure 22–1 Simple Expression Builder