Top
Systemwalker Runbook Automation Studio User's Guide
Systemwalker

11.2.11 Setting the Process Instance Priority

By default, a process instance is given a medium priority (8). However, its priority can be changed while the process instance is running using the Set Java Action.

To set the process instance priority:

  1. 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.

  2. 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.

  3. Expand Server Actions and double click Set Process Instance Priority.

  4. Type a descriptive name and your notes for the Java Action.

  5. Enter a JavaScript expression in the Process Priority field that evaluates to an Integer value.

    There are different ways to set the priority. You can type a constant (that is, a number), select a User Defined Attribute (UDA) that has the priority as its value, or build a complex JavaScript expression. For details, refer to 11.14 Defining JavaScript Expressions.

    Note

    If you select a UDA, the UDA must be of type INTEGER or LONG. Otherwise an error will occur when the Java Action is executed.

    Define the evaluation result of a JavaScript expression so as to be a value of type INTEGER.

    In the following example, the process instance priority is set to the value of the UDA Priority.

    Figure 11.18 Setting Process Instance Priority

  6. Click OK.

Note

It is not necessary to compensate this action using a compensation action, because changes made by this action are in Systemwalker Runbook Automation only and they will be rolled back after the process instance goes into error state. For information on compensation actions, refer to section 11.1.7 Dealing With Errors in Java Actions.