Wiki source code of Loop
Version 9.1 by Outhman Moustaghfir on 2024/07/19 15:57
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = Introduction = | ||
2 | |||
3 | The Loop BPMN Connector is designed to facilitate looping behavior within scenario diagrams. It enables processes to iterate over a set of files multiple times based on specified conditions. | ||
4 | |||
5 | [[image:1714408965166-600.png||height="134" width="175"]] | ||
6 | |||
7 | == Usage == | ||
8 | |||
9 | |||
10 | To use the Loop BPMN Connector effectively, follow these steps: | ||
11 | |||
12 | 1. **Place Connector:** Drag and drop the Loop BPMN Connector onto your scenario at the appropriate location where looping behavior is required. | ||
13 | 1. **Connect Inputs and Outputs:** Connect the input and output connectors of the Loop BPMN Connector to the relevant elements in your BPMN diagram (the connector must have exactly 2 inputs and 2 outputs). | ||
14 | 1. **manage deploiment error** : when missing or adding a required output or input, it could forbid the sceanrio deploiment. | ||
15 | [[image:1714408723108-457.png||height="301" width="639"]] | ||
16 | 1. **Handle Loop Exit:** Ensure that the exit output is connected to the appropriate elements in your scenario diagram to handle the termination of the loop. | ||
17 | |||
18 | = Example = | ||
19 | |||
20 | in the following example, we created scenario where multiple files are loaded by LoadFile connector (//LoadFile2//), and proceeded by Loop1. | ||
21 | |||
22 | the Loop1 has 2 inputs ( 1 to ensure triggering the connector, and other to ensure the loop over) and 2 outputs (1 for the loop, and other for the exit) | ||
23 | |||
24 | [[image:1714408759904-198.png||height="381" width="682"]] | ||
25 | |||
26 | |||
27 | |||
28 | results shown in exploitaion page: | ||
29 | [[image:1714408918004-230.png]] | ||
30 | |||
31 | |||
32 | = Updates = | ||
33 | |||
34 | * ((( | ||
35 | Enhancement : New params were added to the connector to make it work correctely with [[Stack connector>>doc:iXPath V3.Connectors.Scenario.Stack.WebHome]] :* ((( | ||
36 | Stack variable: the set variable that will be iterated over. | ||
37 | ))) | ||
38 | * ((( | ||
39 | Limit: the maximum number of executions allowed. | ||
40 | ))) | ||
41 | ))) | ||
42 | * ((( | ||
43 | |||
44 | [[image:1721396868696-315.png]] | ||
45 | ))) | ||
46 | * ((( | ||
47 | Enhancment : for more readability of jobs session, we organized the Loop execution to be | ||
48 | ))) |