Subprocess

A subprocess is an independent process that is a part of a larger parent process. ELMA RPA suspends the execution of the parent process until the subprocess is completed. You can run it as an independent process. You can change the subprocess without modifying the parent process.

For example, during the Order handling process, an Order fulfillment subprocess will be launched. Order fulfillment is a process modeled separately.

You can use subprocesses for often used operations. For example, a process of working with 1C program always consists of such steps as starting an application and logging in. You can put these activities in a subprocess so that you won’t have to add them to the diagram each time you create a process. You will only have to provide a base name for connection and sign-in information.

Subprocess settings

To set an element, drag it from the Palette tab to the activity you need to run the subprocess after. Then click on the element on the process diagram to open the settings window. It appears on the right. The settings are configured on the Parameters and Conditions tabs.

Parameters Tab

The Parameters tab displays the basic element parameters.

subprocess parameters

  • Name. The element name on the process diagram. It is set by the template when adding the activity. If you want to change the name, you can do it in this field;
  • Process. Select the process that will be called as part of the parent process. You can add processes displayed on the personal (in advanced mode) or public tabs.

Data is exchanged through the input and output variables. Read more about them in the "Process context" article.

To map context variables in the parent and child processes, click the Select variables button.

subprocess_2

Input variables store the input data of the parent process when launching the subprocess.

Output variables determine the data transferred into the parent process after completing the subprocess.

In the Parent column, select a variable you want to map with a subprocess variable. Please note that only variables of the same type can be mapped. Read more about variable types in the "Process context" article.

You can search for variables by their names. To do this, start entering a name in the search bar. The search results will immediately be displayed in the table.

Conditions Tab

Read more about the Conditions tab in the "Basic activity settings principles" article.