> #### 6.3.7 Defining Make Choice Java Actions

> Make Choice Java Actions allow you to make a particular choice on a work item automatically using a JavaAction.

> To define a Make Choice Java Action:

> 1. Follow the instructions in the Assigning Java Actions section and select UDA Assignment from the Action List dialog box as shown in the example.

> The Make Choice Action dialog box appears.

> 2. Enter an expression in the Choice field. There are three different ways to enter an expression in the Choice 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.

> In Figure 45, an expression is displayed in the Choice field. Note that an "E" is displayed on the Expression Mode button. This expression was built using the Expression Editor. 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 Make Choice action in the Action Name field. Note that the name AutoRoute is displayed as the Action Name in Figure 82.

> Figure 73: The Make Choice Action dialog box

> 4. Click the OK button.

> Your Java Action appears in the Action frame of the properties dialog where you first clicked the Add button. The figure shows AutoRoute as a Timer Action on a Voting Activity Node.

> Figure 74: The Action Set frame

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

> Your Make Choice Java Action is now assigned to the process definition. You can attach actions 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