A process workflow can be configured to execute the sub-workflow synchronously or asynchronously. Sub-workflows can be nested to many levels, as long as there is no circular reference.
Drag a Task and a sub-workflow step onto the process designer canvas, then connect them as shown below.

Select the Required tab. Provide a name for the sub-workflow. Select the process definition from the drop-down list. Click “Save” to confirm the changes. Click the "AI Predict" button for the Copilot to add new process steps that match your process description. The workflow is now ready to execute the sub-workflow with minimal configurations, as shown below.

Select the Optional tab. Select “Yes” to pass variables from the parent process instance to the child instance. Select “Yes” to pass variables back to the parent instance from the child instance. Select “Yes” to pass the parent process’s globals to the child instance. Select “Yes” to pass the parent process’s globals back to the parent instance from the child instance. Click the button to map variables and globals between the parent and child instances. Select “Yes” to synchronize - the parent instance waits for the child instance to complete. Select “No” to Asynchronize - the parent instance continues execution and does not wait for the child instance to complete. Select the execution priority from the drop-down list. Click the button to map variables and globals between the child and parent instances.

On the Optional tab, click the button to map parent-to-child variables. Click the (+) Add Row button to add an empty row. Enter the parent process variables (or values) and the corresponding mapping sub-process variables. Click the “Save” button. Use the “Add Row” button to add multiple mappings. You can map parent-to-child globals using the UI.

On the Optional tab, click the button to map child-to-parent variables. Click the (+) Add Row button to add an empty row. Enter the child sub-process variables and their mappings to the parent process variables. Click the “Save” button. Use the “Add Row” button to add multiple mappings. You can map child-to-parent globals using the UI.

Generate and execute a new Process Instance. Render the process instance in a new tab and view the latest variables. The computation was performed in the subWorkflow, and the result was passed to the main workflow via the step configuration.

Navigating to sub-workflows from the process designer.
The child definition configured in the “SubWorkflow” step can be opened in the process designer by double-clicking the icon. Note: All dates/times are stored in UTC and displayed in the user's local time zone.
