Creating and Using a Subflow
A Subflow is a modular and reusable workflow that operates as a component within a larger primary workflow. Subflows encapsulate specific tasks or processes, enabling streamlined management, reduced complexity, and improved maintainability of workflows. They allow data exchange and execution synchronization with the main workflow, supporting scalability and modular design in automation systems.
Steps to Configure Subflows
1. Create and Configure the Subflow Workflow
- Create Subflow
- Navigate to your application’s Workflow section.
- Create a new workflow and name it descriptively (e.g.,
Subflow).
- Design Subflow
- Add the necessary activities to define the subprocesses.
- Configure the
Start Activityto define an Input Schema for data received from the parent workflow. - Configure the
End Activityto define an Output Schema for returning results to the parent workflow.
2. Add Subflow Activity to the Parent Workflow
- Open the parent workflow (e.g.,
MainFlow). - Drag and drop the Subflow Activity from the Activity menu onto the canvas.
- Link the Subflow Activity to the
Subflowyou created- Use the dropdown in the Subflow Activity’s settings to select the desired subflow.
- Map data
- Connect the inputs of the parent workflow to the
Subflow Activityinputs. - Map the outputs of the
Subflow Activityto subsequent activities in the parent workflow.
- Connect the inputs of the parent workflow to the
3. Configure Execution Behavior
- Open the Subflow Activity configuration panel within the parent workflow.
- Enable Wait for Completion if the parent workflow must pause until the subflow finishes.
- Disable this option for asynchronous subflow execution.