The Fabric Studio includes several integration points that are used by Broadway Actors to simplify the creation of Broadway flows.
A Broadway flow can be used as a Table population to replace complex Java code in the population logic by Stages and Actors in the flow.
To create the population based on the Broadway flow, right click the table name in the Project Tree and select New Table Population Based Broadway Flow. The population template is created and can be modify as needed.
Click for more information about creating a table population based on a Broadway flow.
The Interface Listener functionality, an enhancement of the Fabric Jobs functionality, can be used to read and parse files using a Broadway flow. An Interface Listener is triggered each time a new file arrives to the directory defined in the interface, which can be either an SFTP or a local file system. Each file is only picked up once by the Listener and the file name must not repeat.
The Listener invokes the attached Broadway flow that needs the FileRead Actor to read the files. The interface and the path input arguments of the FileRead Actor must be defined as an External link type. Their values are passed from the defined interface by the Listener.
The fabric category of built-in Actors executes Fabric commands.
The sql input argument of these Actors displays the command to be executed on the Fabric server. This argument is read-only and contains named params using ${} notation.
For example, FabricGet Actor displays the command:
GET ${luType}.${iid}
Where ${luType} and ${iid} are replaced by the values of the input arguments in the prepared statement.
Select the Logical Unit in the luType input argument and type the Instance ID in the iid input argument.
The LuFunction and Graphit Actors fully utilize Fabric integration with Broadway to enable the reuse of the Fabric logic within Broadway flows.
To do so, set the Logical Unit in the luType input argument and then select a Project function or a Graphit resource.
Note that the luType input argument includes the list of all Logical Units in the Project including the Web Services and the References. It is recommended to use the same LU as the one where the Broadway flow is created.
The LuFunction Actor is used when a Fabric Project function must be invoked from a Broadway flow and is also a way to write business logic in Java rather than in JavaScript in Broadway.
After the luType input argument is set, the list of values in the functionName dropdown list are filtered by the LU name and display the functions of the selected LU and Shared Object. The Actor's input and output arguments are updated with the inputs and output of the selected function.
The Graphit Actor executes Graphit logic for data serialization. Parameters to the Graphit execution are picked up from input arguments or from the params input argument.
After the luType input argument is set, the list of values in the graphit dropdown list is filtered by the LU name. The Actor's input and output arguments are updated with the inputs and output of the selected Graphit resource.
The input arguments of DB Commands Actors include integration to Fabric windows which simplifies the creation and validation of queries.
To populate the SQL statement of a DbCommand Actor, do the following:
To set the table and the fields of a DbLoad Actor, do the following:
Several Broadway Actors include an interface as one of their input arguments. When setting the Actor's interface from the dropdown list, the list of values is retrieved from the Project Interfaces list. Only Active interfaces are displayed. The values are filtered by the Interface Type where only interfaces relevant to the Actor type are shown.
The Fabric Studio includes several integration points that are used by Broadway Actors to simplify the creation of Broadway flows.
A Broadway flow can be used as a Table population to replace complex Java code in the population logic by Stages and Actors in the flow.
To create the population based on the Broadway flow, right click the table name in the Project Tree and select New Table Population Based Broadway Flow. The population template is created and can be modify as needed.
Click for more information about creating a table population based on a Broadway flow.
The Interface Listener functionality, an enhancement of the Fabric Jobs functionality, can be used to read and parse files using a Broadway flow. An Interface Listener is triggered each time a new file arrives to the directory defined in the interface, which can be either an SFTP or a local file system. Each file is only picked up once by the Listener and the file name must not repeat.
The Listener invokes the attached Broadway flow that needs the FileRead Actor to read the files. The interface and the path input arguments of the FileRead Actor must be defined as an External link type. Their values are passed from the defined interface by the Listener.
The fabric category of built-in Actors executes Fabric commands.
The sql input argument of these Actors displays the command to be executed on the Fabric server. This argument is read-only and contains named params using ${} notation.
For example, FabricGet Actor displays the command:
GET ${luType}.${iid}
Where ${luType} and ${iid} are replaced by the values of the input arguments in the prepared statement.
Select the Logical Unit in the luType input argument and type the Instance ID in the iid input argument.
The LuFunction and Graphit Actors fully utilize Fabric integration with Broadway to enable the reuse of the Fabric logic within Broadway flows.
To do so, set the Logical Unit in the luType input argument and then select a Project function or a Graphit resource.
Note that the luType input argument includes the list of all Logical Units in the Project including the Web Services and the References. It is recommended to use the same LU as the one where the Broadway flow is created.
The LuFunction Actor is used when a Fabric Project function must be invoked from a Broadway flow and is also a way to write business logic in Java rather than in JavaScript in Broadway.
After the luType input argument is set, the list of values in the functionName dropdown list are filtered by the LU name and display the functions of the selected LU and Shared Object. The Actor's input and output arguments are updated with the inputs and output of the selected function.
The Graphit Actor executes Graphit logic for data serialization. Parameters to the Graphit execution are picked up from input arguments or from the params input argument.
After the luType input argument is set, the list of values in the graphit dropdown list is filtered by the LU name. The Actor's input and output arguments are updated with the inputs and output of the selected Graphit resource.
The input arguments of DB Commands Actors include integration to Fabric windows which simplifies the creation and validation of queries.
To populate the SQL statement of a DbCommand Actor, do the following:
To set the table and the fields of a DbLoad Actor, do the following:
Several Broadway Actors include an interface as one of their input arguments. When setting the Actor's interface from the dropdown list, the list of values is retrieved from the Project Interfaces list. Only Active interfaces are displayed. The values are filtered by the Interface Type where only interfaces relevant to the Actor type are shown.