For any activity with a BPM service implementation, you
can designate the users who receive the runtime task by using the
Assignments page in the properties for that activity.
Procedure
- In the Designer view, click an activity in a BPD diagram
to display its properties.
- Go to the Assignments page in the
properties view.
- From the Assign To list, choose
one of the following options:
Table 1. Assignment
Options| Option |
Description |
| Last User in Lane |
Assigns the runtime task to the user who completed
the activity that immediately precedes the selected activity in the
swimlane. Do not select this option for the first activity in a lane
unless the activity is a service in a top-level BPD and a Start Event
is in the lane. In this case, the runtime task is routed to the user
who started the BPD. |
| Lane Participant |
Assigns the runtime task to the participant
group associated to the swimlane in which the selected activity is
located (the default selection). |
| Routing Policy |
Assigns the runtime task according to the policy
that you establish. |
| List of Users |
Assigns the runtime task to an ad hoc list of
users. |
| Custom |
Assigns the runtime task according to the JavaScript
expression that you provide in the corresponding field. To select
one or more variables for your expression, click the variable selection
icon next to the field. The JavaScript expression produces results
such as USER:<user_name>, ROLE:<group_name>,
or PG:<participant_group>, where user_name is
the name of an IBM® BPM user
(such as tw_author), group_name is
the name of an IBM BPM security
group (such as tw_authors), and participant_group is
the name of a group of users in your enterprise. Note: Complex JavaScript
expressions can be typed in or pasted into the Expression field
and can be customized as required. More valid expressions can be chained
together to produce a complex JavaScript expression, for example tw.local.isWeekendCrew?"ROLE:WeekendManagers":"ROLE:Managers".
|
- From the User Distribution list,
choose one of the following options:
Table 2. User
Distribution| Option |
Description |
| None |
IBM BPM assigns
the runtime task to all potential users (the default setting). |
| Load Balance |
From the potential users who can receive the
runtime task, IBM BPM assigns
to the users who have the fewest number of open tasks. |
| Round Robin |
From the potential users who can receive the
runtime task, IBM BPM assigns
to users in a round-robin fashion. For example, if the users in the
Call Center participant group must receive the runtime task, IBM BPM assigns
each task (created by each process instance) in a series–to one user
in the group after another. |
Results
Tasks are now assigned based on the choices you selected
in the Assign To and User Distribution lists.
Task
owners can reassign a task to another user. If you want to constrain
the scope of users that can receive a reassigned task, create a user
group and create a custom assignment to that group. The group can
consist of a single user.