> #### 6.3.9 Set Process Priority Java Action

> By default, a process is given a Medium priority. However, its priority can be changed while the process is running using the Set Process Priority Java Action.

> To set process priority using the Set Process Priority Java Action:

> 1. Follow the instructions in the Assigning Java Actions section. Following these instructions will guide you to the Action List dialog box from which you can select an Action. Double-click Set Process Priority in the Action List dialog box. First, you must expand the Server Actions folder.

> The action editor Set Process Priority appears.

> 2. Enter an expression in the Process Priority field that evaluates to an Integer value. If the expression evaluates to zero, the process is assigned a low priority. If the expression evaluates to eight, the process is assigned a medium priority. If the expression evaluates to 16, the process is assigned a high priority. There are three different ways to enter an expression in the Process Priority field. You can:

> Enter a constant when "C" is displayed on the Expression Mode button.
> Select a user-defined attribute (UDA) when "V" is displayed on the Expression Mode button.
> Enter an expression or build an expression with the Expression Builder when "E" is displayed on the Expression Mode button.

> Process Priority field. Note that a "V" is displayed on the Expression Mode button. The button display can be changed from "C" to "V" to "E" by clicking it. For more information on using this field, see the "1. Display the process definition. 2. In the Action Set pane, define a Web Services Java Action as an Epilogue JavaAction to execute just before the enactment thread leaves the node. Alternatively, paste in Actions created in other Action Sets. For more information, see the "Web Services Java Action" section.Note: You will not be able to assign JavaActions that are not of the appropriate type to the custom node3. Click OK.Expressions in Interstage Business Process Manager

> 2. In the Action Set pane, define a Web Services Java Action as an Epilogue JavaAction to execute just before the enactment thread leaves the node. Alternatively, paste in Actions created in other Action Sets. For more information, see the "Web Services Java Action" section.

> Note: You will not be able to assign JavaActions that are not of the appropriate type to the custom node

> 3. Click OK.

> Expressions in Interstage Business Process Manager" section.

> 3. Enter a name for your Set Process Priority action in the Action Name field. Note that the name SetPriorityToLow is displayed as the Action Name in Figure 53.

> Figure 77: The Set Process Priority Action Editor
> Your Java Action appears in the Action frame of the properties dialog where you clicked the Add button. In the example, SetPriorityToLow is set as the process initialization Java Action. At process initialization, this Java Action sets the priority of the process to the value of the Input UDA.

> Figure 78: The Action Set pane

> 4. Click OK to close the properties dialog box.

> Your Set Process Priority Java Action is now assigned to the process definition. You can attach these actions to change the priority of your processes in any one of the Action type frames.

Business Process Manager Help-Fujitsu Computer Systems Corporation Interstage Website Voice: (888) 248-9273 Interstage BPM Information