Keep CloudFlow maintainable by calling shared logic with Sub Flow
As CloudFlows grow, the same steps often get copied into multiple workflows. That makes fixes slower and outcomes inconsistent, because you end up updating the same logic in several places.
Use-case example: you run a daily workflow that detects cost anomalies, then triggers CloudOps remediation. Instead of duplicating “ownership resolution” and “notification formatting” steps across every anomaly flow, rightsizing flow, and incident flow, you put that logic in a single subflow and call it from each parent workflow, so updates propagate everywhere.
What’s new
- You can now use the Sub Flow node to run one CloudFlow from inside another, so shared logic lives in a single reusable flow.
- Parent flows can pass inputs as parameters (mapped to the sub flow’s local variables), so the same sub flow works across multiple use cases.
- Each invocation creates a child run you can open from the run history, making troubleshooting and auditing easier.
You build a reusable flow (the sub flow) and publish it. In your main workflow, add a Sub Flow node, select the flow you want to call, and provide the parameter values for that run. When the parent reaches that node, CloudFlow runs the selected flow as a child run and returns its output back to the parent so the workflow can continue.
Getting started
- Create the reusable flow you want to call and define the local variables it should accept.
- In the parent flow, add a Sub Flow node and select the flow to call from the Flow drop-down.
- Map parameters, then use the Sub Flow node output in downstream nodes.
Read more about subflows in CloudFlow Help Center.