How to Add Input and Output Arguments to a BPMN Process

22-6 Modeling and Implementation Guide for Oracle Business Process Management Loop Markers Loop markers enable you to run a subprocess multiple times based on condition. You can configure the loop marker to evaluate the condition before or after running the subprocess. You can also configure the loop marker to stop after a certain number of repetitions. To configure a loop maker you must write a Loop Condition that determines if the BPMN Service Engine must continue to repeat the subprocess. Multi-Instance Markers Multi-Instance markers enable you to run a subprocess for each of the elements on a set of data. When the BPMN Service Engine runs a subprocess with a multi-instance loop marker it creates a set of instances, one for each element on the set of data. You can configure the multi-instance marker to process these instances in parallel or sequentially. The following fields in a multi-instance loop marker require you to write an expression: ■ Loop Cardinality This expression defines the number of tokens to create in the subprocess. ■ Completion Condition This expression determines when to stop repeating the subprocess. The BPM Service Engine evaluates this condition every time a token completes the subprocess. If the condition evaluates to true, it considers the subprocess completed and the instance moves to the next flow object in the process.

22.6.1 How to Configure Loop Markers

You can configure a loop marker to run a subprocess multiple times. To configure loop markers: 1. Right-click the subprocess.

2. Select Properties.

3. Click the Loop Characteristics tab.

4. Select Loop.

5. Specify the Loop Condition: 1. Select the expression language. Possible options are Simple or XPath. 2. In the text area below, write the condition that drives the loop. 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 a maximum number of times for the loop to run:

1. Select Loop Maximum.

2. Specify a number.