Synchronous and Asynchronous Subflows

There are two types of subflows, synchronous subflows and asynchronous subflows.

Synchronous subflows are a good choice when the subflow must return some data to the parent workflow and the parent workflow needs to wait for the subflow to finish. In subflows, errors are propagated to the parent workflow.

Asynchronous subflows are not recommended. Instead, either use synchronous subflows or spawn a new workflow. Use asynchronous subflows only when you do not need any status or data back from the subflow and when the parent does not have to wait for the subflow to complete.