The Broadway Actors inheritance mechanism enables reusing the same business logic in different places in a flow or in several flows of the project.
If an inherited Actor needs to be modified, open the Broadway flow with this Actor, edit it and save the updated Actor via the Export Actor menu with the Override Current option.
To simplify the Actor modification process and enhance it with additional editing options, Broadway provides an Actor Editor which enables creating new Actors and editing inherited ones.
The Actor Editor can be accessed by opening the *.actor file from the Project tree. It is displayed as a dummy flow with one Actor that can be setup / modified using the extended Actor's Properties window.
The Actor Editor can be used to create a new inherited Actor or modify an existing one via its *.actor file. The Actor must inherit either from another Actor or from an Inner Flow that has been saved as an Actor.
To create a new Actor, do the following:
To modify an Actor, do the following:
Broadway enables you to create an Actor that inherits its properties and behaviors from a custom Java class rather than from another Actor.
To create a new Actor from scratch, do the following:
Create your own Java class: Right click the Java folder in the Project tree either in the Shared Object or under the Logical Unit. Then click New Java File.
Define the class as follows to inherit the core Actor's properties and behaviors:
public class <class_name> implements Actor {
}
Once this new Java class is ready, create a new Actor. Right click the Broadway folder and click New Actor.
Populate the Class with your Java class's path. For example, when the Java class is located under the Logical Unit, the class is:
com.k2view.cdbms.usercode.lu.<lu_name>.<class_name>
New Actor Which Inherits from Existing Actor
Let's create a new CheckMaxVal Actor that inherits its properties and behaviors from a JavaScript Actor: It receives two integers and returns their maximum value. Do the following:
New Actor Which Inherits from Custom Java Class
When creating a new Actor which inherits from custom Java class, do all the steps until the selection of Parent. Instead, populate the Class with your customer Java class name. Then define the required input and output arguments.
The Broadway Actors inheritance mechanism enables reusing the same business logic in different places in a flow or in several flows of the project.
If an inherited Actor needs to be modified, open the Broadway flow with this Actor, edit it and save the updated Actor via the Export Actor menu with the Override Current option.
To simplify the Actor modification process and enhance it with additional editing options, Broadway provides an Actor Editor which enables creating new Actors and editing inherited ones.
The Actor Editor can be accessed by opening the *.actor file from the Project tree. It is displayed as a dummy flow with one Actor that can be setup / modified using the extended Actor's Properties window.
The Actor Editor can be used to create a new inherited Actor or modify an existing one via its *.actor file. The Actor must inherit either from another Actor or from an Inner Flow that has been saved as an Actor.
To create a new Actor, do the following:
To modify an Actor, do the following:
Broadway enables you to create an Actor that inherits its properties and behaviors from a custom Java class rather than from another Actor.
To create a new Actor from scratch, do the following:
Create your own Java class: Right click the Java folder in the Project tree either in the Shared Object or under the Logical Unit. Then click New Java File.
Define the class as follows to inherit the core Actor's properties and behaviors:
public class <class_name> implements Actor {
}
Once this new Java class is ready, create a new Actor. Right click the Broadway folder and click New Actor.
Populate the Class with your Java class's path. For example, when the Java class is located under the Logical Unit, the class is:
com.k2view.cdbms.usercode.lu.<lu_name>.<class_name>
New Actor Which Inherits from Existing Actor
Let's create a new CheckMaxVal Actor that inherits its properties and behaviors from a JavaScript Actor: It receives two integers and returns their maximum value. Do the following:
New Actor Which Inherits from Custom Java Class
When creating a new Actor which inherits from custom Java class, do all the steps until the selection of Parent. Instead, populate the Class with your customer Java class name. Then define the required input and output arguments.