How to use Sub-Workflows v1
A Sub-Workflow enables reusable logic. Variable Bar inputs and outputs provide the contract with the consuming Workflow.
Use a child Workflow for a well-defined operation that should be reused, tested, or released independently. The parent invokes it through the Workflow Node.
Define the contract
Add the child inputs and outputs to its Variable Bar. The parent supplies those inputs and consumes the returned outputs.
The child revision published in the parent's active Environment is used at runtime. Release parent and child changes deliberately.
Refactor selected Nodes
- Select the Nodes to extract by holding
CTRLon Windows orCommandon macOS while clicking Node Headers or dragging a selection rectangle. - Click
Refactor to Sub-Workflow. - Review the generated child Workflow and Workflow Node.
- Confirm the generated Variable Bar Properties for Data Flow Connectors that cross the selection boundary.
- Save and test both Workflows.
Avoid circular call chains. See Release Management.