This example describes how to pass variables between Process Models.
In this example, you have a top-level Process Model which triggers three child Process Models ("Child Process Model A", "Child Process Model B" and "Child Process Model C"). The child Process Models are referenced by Execute Process Task nodes:
Child Process Model A has a Success End Event node with an output variable (outputVar1
) set to example
:
The outputVar1
variable is picked up by the parent Process Model as an output of the Execute Process Task node.
The Execute Process Task node in the parent Process Model is connected to an Exclusive Gateway node which tests the value of the output variable coming from Child Process Model A. If the output variable value is example
, the flow continues, otherwise the Process Model ends with a Cancel End Event node:
This check is repeated at each stage of the Process Model. When the output variable value matches the specified value at each stage of the flow, the parent Process Model can be executed successfully from start to finish.