Although users are free to modify and write custom Java code almost anywhere, Perform nodes provide a means for visually representing custom code within the process diagram. When you add a Perform node to your business process, a method is created in the Process.java file. You subsequently customize the method signature in the Source view.
This section describes how to create and customize a Perform node for your business process.
The Design view is updated to contain the Perform node.
This node builder allows you to name the node and the associated Java method.
Note: | You can select an existing method by clicking on the right side of the Java Method Name field. |
The Source view is displayed at the line of code in your Process.java file at which the Java method is written.
For example, if you created a method named checkInventory
, the following code is written to the source file.
public void checkInventory() throws Exception {
}
Your Process.java file is updated to reflect the changes you made in the node builder.