Workflow

How to Pass Process Variables between a Process and a Subprocess

 

What to do:

Process variables can be passed from the current process to the start activity of the subprocess. From the stop activity of the subprocess, process variables can be passed to the current process!
This enables you to use the same process variables for the subprocess which have been used in the main process - and vice versa.
As a prerequisite for this example you must have created a workflow with components and must have added a subprocess to the main workflow process.
 

In the following example process variants of the workflow process New Order are passed to the subprocess Packing. The process New Order with the following process variables may be structured as depicted below:

In the workflow editor, open two graphical views: One for the process and one for the subprocess.
Copy the following process variants to the subprocess: Article, Length and Quantity.
Connect the process variables with the start activity of the subprocess.
  Connect the process variables which should be passed from the subprocess to the process with the stop activity of the subprocess.
In the example these are the process variables Article and Quantity.
 
To save the process and the subprocess, click .