Java Code

Activity

You can add custom code to your process definition with the Java Code activity. This activity allows you to write standard Java code that can manipulate any of the process data or perform any action you choose.

The Java Code activity automatically creates an invoke() method in which you place the code you want to execute. This method is called when the engine processes the Java Code activity.

When you specify input and output parameters for the Java Code activity, get/set method code is automatically generated for the activity. You can use the get/set methods in your Java code, and you can display the code for the get/set methods when you select the Full Class radio button on the Code tab.

Tip: Use Edit>Preferences>Other to specify the Java editor you want to use to edit source code. If you do not specify an editor, a simple popup editing window is provided.

For more information about features available in the Java Code activity, see Common Features of Java Code and Java Method.