Top
Systemwalker Runbook Automation Studio User's Guide
Systemwalker

11.6 Using Generic Java Actions

This section explains the procedure for using generic Java actions.

Prerequisites:

Note

  • If you do not add the correct UDAs to your process definition, the Java Action may work unpredictably.

  • Store the Java class to be independently implemented in the class file format. Java Actions cannot be called for files in the jar file format.

Generic Java Actions allow you to execute Java methods that are outside the scope of Systemwalker Runbook Automation. They enable you to customize process execution using methods of Java classes that you have implemented yourself.

To assign a Generic Java Action:

  1. Copy the Java class that you want to use. You must differentiate whether you are working with a Workflow Application project or a Server project:

    • Workflow Application project:

      In the Workflow Application project's folder structure, store the Java class file(s) to the
      Application Classes >> engine >> classes

    • Server project:

      Copy the Java class to the <Systemwalker Runbook Automation Studio Installation Directory>\ibpm\Data\attachments folder.

  2. Click the empty space in the Process Definition editor or select the node to which you want to assign the Java Action, to display the Properties view for the process definition or the node respectively.

  3. Select the Action Set tab. Click Add corresponding to the position where you want to add the Java Action. The Action Type List dialog is displayed.

  4. Double click Generic JavaAction. The Action Properties dialog is displayed.

  5. Type a descriptive name for your Java Action in the Action Name field.

  6. Click the Browse button [...] and select the Java class that you want to use.

  7. Select the method that you want to call from the Method Name list.

    Note

    A method will be available only if all parameters are available as UDAs and if their data types match.

  8. From the Return Value list, select the UDA that will receive the return value, if any, from the method.

  9. Check the UDA Mapping. Verify that the UDAs are mapped correctly to the method parameters. These UDAs will provide input values to the method. To change a mapping, select another UDA from the drop-down list that appears when you click a UDA.

    Figure 11.35 Assigning a Generic Java Action

  10. Click OK.

Note

When you send the process definition to a Management Server, or deploy your Workflow Application project, the generic Java Actions are automatically sent to the Management Server.