> #### 5.4.6 Assign Activities

> Note: An activity must be assigned to a role, user, or users. If an activity is not assigned to a role, user, or users, a process error will result, and the process instance will go into error state.

> When you as a process definition owner are designing a process definition and you draw an activity node, it is assigned to the "Role" role by default. This means that all Interstage BPM users of the "Role" role are assigned this activity on process instances created from the process definition. Process definition owners can assign activities to any Interstage BPM role or set of users by using the Assignee pane of the Activity Node Properties dialog box (right-click an activity node and select Assignee). You can assign activities in any one of the following ways:

> · To assign an activity to a particular role, place that role in the Role field.
> · To assign an activity to a particular set of users, assign an Assign Task to User Java Action in the Role Actions action frame of the activity. For instructions, see the "Assign Task to User (Task Reassignment) Java Action".
> · To assign an activity to a particular set of users, you can also place a setActivityAssignees script in the Role Scripts field. For example, the following script assigns twfuser and twfserver to an activity:
> setActivityAssignees("twfuser,twfserver");
> For script writing instructions and examples, see Appendix A.
> · To assign an activity to a particular set of users in a particular role, place the role in the Role field and place a setActivityAssignees script in the Role Scripts field. The following illustration assigns twfuser and twfserver to an activity but only if those users are in the Role role:

> Figure 39: The Assignees pane

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