A Broadway flow can be executed as part of another Broadway flow. This function can be used when the same logic needs to be executed in several flows or several Stages of the same flow.
An inner flow can be run using of the following built-in Actor types:
When running a flow with inner flows, the inner flows can also be debugged. You can either debug the inner flow by supplying the debug arguments or run the outer flow while opening an inner flow in a separate tab and setting its break points. The flow’s execution stops when it reaches the inner flow's break points.
Click for more information about debugging Broadway flows.
An inner Broadway flow can also be created using the Save as Actor action in the Main menu of the Broadway flow window. This method saves the current flow as a new Actor whereby its logic can be reused in another Broadway flow. When a new Actor is created, it inherits from the InnerFlow Actor.
Example of Saving an Actor and Using it in Another Flow
Create a flow that encapsulates a specific business logic. For example, given two input numbers, divide a bigger number by a smaller number.
Save the flow as a new Actor. For example, if the flow name is CheckMaxAndDivide, the new Actor's name will be CheckMaxAndDivide_Actor.
Add the new Actor to another flow.
Full example of a Broadway flow with inner flow Actors can be found in the Demo project.
When a flow has inner flows, an inner flow can be opened from the main flow:
A Broadway flow can be executed as part of another Broadway flow. This function can be used when the same logic needs to be executed in several flows or several Stages of the same flow.
An inner flow can be run using of the following built-in Actor types:
When running a flow with inner flows, the inner flows can also be debugged. You can either debug the inner flow by supplying the debug arguments or run the outer flow while opening an inner flow in a separate tab and setting its break points. The flow’s execution stops when it reaches the inner flow's break points.
Click for more information about debugging Broadway flows.
An inner Broadway flow can also be created using the Save as Actor action in the Main menu of the Broadway flow window. This method saves the current flow as a new Actor whereby its logic can be reused in another Broadway flow. When a new Actor is created, it inherits from the InnerFlow Actor.
Example of Saving an Actor and Using it in Another Flow
Create a flow that encapsulates a specific business logic. For example, given two input numbers, divide a bigger number by a smaller number.
Save the flow as a new Actor. For example, if the flow name is CheckMaxAndDivide, the new Actor's name will be CheckMaxAndDivide_Actor.
Add the new Actor to another flow.
Full example of a Broadway flow with inner flow Actors can be found in the Demo project.
When a flow has inner flows, an inner flow can be opened from the main flow: