> #### 6.3.1 Assign Task to User (Task Reassignment) Java Action

> The reassignment function in Interstage BPM allows you to reassign tasks assigned to you. You can reassign a task manually by clicking the Reassign button (see the "Reassign the activity to someone else" section) or automatically to a user or users within your role with this Assign Task to User Action. Once you reassign a task to a particular user or users, it is assigned only to them.

> There are two ways to use the Assign Task to User Action:

> · Using Workflow Variable expressions.
> · Reassigning a task using the Reassignment dialog box.

> To reassign a task using the Reassignment dialog box:

> 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 Assign Task to User in the Action List dialog box. First, you must expand the Server Actions folder.

> The action editor Assign Task to User appears.

> 2. Select the role to which the task is currently assigned from the Group drop-down list. This is the only role from which you can select users. This role is displayed at the top of the dialog box. If you want to reassign this task to users from another role, you must change the task's role assignment. For instructions, see the "Assign Activities" section.

> 3. Select the user or users from the Users list to which you want to assign the task. Then, click the Add button.

> The user or users you selected appear in the Selected Users list.

> Figure 59: Assign Task to User Action Editor

> 4. Click the OK button on the Assign Task to User dialog box. Select the user or users from the Users list to which you want to assign the task. Then, click the Add button.

> Your Java Action appears in the Action frame of the properties dialog where you clicked the Add button. In the example, Assign Action To:twfserver is set as the task reassignment Java Action.

> To reassign a task using Workflow Variable expressions:

> 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 Assign Task to User in the Action List dialog box. First, you must expand the Server Actions folder.

> The action editor Assign Task to User appears.

> 2. Check the Use Workflow Variable checkbox.

> A text field appears with the Expression Mode and Expression Builder buttons.

> 3. Enter an expression in the text field. There are three different ways to enter an expression in the text 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 the figure below, an expression is displayed in the text field. Note that a "V" is displayed on the Expression Mode button. Selecting the username UDA from the drop-down list formed this simple expression. 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.

> The expression entered in the text field whether it is a simple UDA name or a more complex expression must be resolved into a user or users within the role to which the task is currently assigned. If you want to reassign this task to users from another role, you must change the task's role assignment. For instructions, see the "Assign Activities" section.

> Figure 60: Assign Task to User Action Editor

> 4. Click the OK button on the Assign Task to User dialog box.

> Your Java Action appears in the Action frame of the properties dialog where you clicked the Add button. In the example, Assign Action To:iflow is set as the task reassignment Java Action. Note that the Assign Task to User Java Action is only effective if they are added to the Role Actions Action Type frame.

> Figure 61: Assign Action in Role Action Frame

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