A Broadway Flow is a main Broadway object that represents a business process. A flow has several Stages where each Stage includes one or more Actors. Stages are executed consecutively from left to right whereas the Actors in each Stage of the flow are executed top-down.
Each actor has data input and output parameters. Input parameters can be populated by either a:
The output of a source Actor should be linked to the input of a target Actor that runs after the source Actor.
Note that an Actor can only be linked to input parameters with Population Type = Link.
Example 1: Valid Link
Two Const Actors are linked to a DbCommand Actor and send input for a DB query.
This link is valid since the source Const Actors run before the target DbCommand Actor.
Example 2: Invalid Link
A Const Actor named FileName sends the file name as a parameter to the FileRead Actor and the source Const Actor runs after the target FileRead Actor:
A link holds the following settings:
Example of Varargs Setting
In a flow there may be a need to concatenate several strings into a single string. For example, to format an address string from separate address elements. This can be implemented using the Varargs setting.
Link the A1 Actor to the Concat1 Actor with Varargs set to OFF.
Update the Varargs setting to ON. This modifies the elements input variable to an array that holds two elements - the first is linked to the A1.value and the second is available for an additional link:
Linking the B1.value to the second element in the elements array again adds an element to the elements array and enables linking additional inputs to it:
Notes:
To create a Link, do either:
Click the output parameter of the source Actor and drag the connection line to the input parameter of the target Actor.
Click the input parameter of the target Actor and drag the connection line to the output parameter of the source Actor.
Click in the source Actor's context menu > Link. Populate the Target Actor, Target Parameter and the Selection Parameter (source parameter) and then click V to save the changes. It is recommended to use this option when the Actors are far from each other in the flow.
To delete a Link, click the link's connection line and press Delete on your keyboard.
To edit a Link, click the link's connection line to open the Link Object Properties window and edit the Link Type or Varargs settings.
A Schema contains different elements.
Example:
The source parameter holds the following Schema:
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"family_name": {
"type": "string"
},
"age": {
"type": "integer"
},
"car": {
"type": "string"
}
}
}
To connect a specific element in the Schema, click adjacent to the Actor's output argument to expand the yellow segment of the Data Inspection and view the parameters list in the object:
To link a Schema to a target Actor, do either:
Click the parameter name in the Data Inspection and drag the connection line to the input parameter of the target Actor.
Click in the right corner of the Actor to open the Actor's context menu and select Link. Populate the Target Actor, Target Parameter, Selection Parameter (source Schema parameter) and Selection Schema (parameter name in the source Schema). Click V to save the changes.
A Schema can be connected to another Actor. For example, connecting the output Schema to the params input parameter of the DbLoad Actor. Note that if a specific element of the Data Inspection object is connected to another input parameter of the DbLoad Actor, the specific link overrides the link of the Schema to the params input parameter.
A Broadway Flow is a main Broadway object that represents a business process. A flow has several Stages where each Stage includes one or more Actors. Stages are executed consecutively from left to right whereas the Actors in each Stage of the flow are executed top-down.
Each actor has data input and output parameters. Input parameters can be populated by either a:
The output of a source Actor should be linked to the input of a target Actor that runs after the source Actor.
Note that an Actor can only be linked to input parameters with Population Type = Link.
Example 1: Valid Link
Two Const Actors are linked to a DbCommand Actor and send input for a DB query.
This link is valid since the source Const Actors run before the target DbCommand Actor.
Example 2: Invalid Link
A Const Actor named FileName sends the file name as a parameter to the FileRead Actor and the source Const Actor runs after the target FileRead Actor:
A link holds the following settings:
Example of Varargs Setting
In a flow there may be a need to concatenate several strings into a single string. For example, to format an address string from separate address elements. This can be implemented using the Varargs setting.
Link the A1 Actor to the Concat1 Actor with Varargs set to OFF.
Update the Varargs setting to ON. This modifies the elements input variable to an array that holds two elements - the first is linked to the A1.value and the second is available for an additional link:
Linking the B1.value to the second element in the elements array again adds an element to the elements array and enables linking additional inputs to it:
Notes:
To create a Link, do either:
Click the output parameter of the source Actor and drag the connection line to the input parameter of the target Actor.
Click the input parameter of the target Actor and drag the connection line to the output parameter of the source Actor.
Click in the source Actor's context menu > Link. Populate the Target Actor, Target Parameter and the Selection Parameter (source parameter) and then click V to save the changes. It is recommended to use this option when the Actors are far from each other in the flow.
To delete a Link, click the link's connection line and press Delete on your keyboard.
To edit a Link, click the link's connection line to open the Link Object Properties window and edit the Link Type or Varargs settings.
A Schema contains different elements.
Example:
The source parameter holds the following Schema:
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"family_name": {
"type": "string"
},
"age": {
"type": "integer"
},
"car": {
"type": "string"
}
}
}
To connect a specific element in the Schema, click adjacent to the Actor's output argument to expand the yellow segment of the Data Inspection and view the parameters list in the object:
To link a Schema to a target Actor, do either:
Click the parameter name in the Data Inspection and drag the connection line to the input parameter of the target Actor.
Click in the right corner of the Actor to open the Actor's context menu and select Link. Populate the Target Actor, Target Parameter, Selection Parameter (source Schema parameter) and Selection Schema (parameter name in the source Schema). Click V to save the changes.
A Schema can be connected to another Actor. For example, connecting the output Schema to the params input parameter of the DbLoad Actor. Note that if a specific element of the Data Inspection object is connected to another input parameter of the DbLoad Actor, the specific link overrides the link of the Schema to the params input parameter.