Back Forward Function form
Completing the Java tab

About Function rules

Enter the Java source code of the function in this tab.

Authoring

  1. Click the pencil icon (zzz) to start your Java editor or IDE. (If you have not set up a Java editor, Process Commander uses Windows Notepad as the editor. See How to set up a Java development environment.)
  2. Enter your Java code, which may call methods in the PublicAPI.
  3. Exit from the editor to upload the Java code into the rule form.
  4. Save the Function rule form.

Notes

Use this function to reference the activity passed in:

CallingActivity.getPage(...)

Two frequently used Java API methods are createPage() and getPage(). Consult the JavaDocs topics for the PublicAPI interface to learn more about the available methods and their parameters.

See More about Function rules and Examples — Using inline Java and PublicAPI facilities for additional guidance on Java code you can use here.

Access the Parameters tab to compile the library, including this function, when you are ready to test.

NoteUse the String.equals() Java method, not the == or != operators, to compare the value of a property to a literal string or to the value of another property.

CautionThe Java code in a function rule is restricted to computations and limited types of side effects. You can't perform stateful processing, use member variables or extend classes in a function.

zzz About Function rules