For any activity with a service implementation, you can designate the users who should receive the runtime task using the Routing option in the activity's properties.
The Routing option also enables you to control how the runtime task is distributed to designated users.
| Option | Description |
|---|---|
| Last User in Lane | Routes the runtime task to the user who completed the activity that immediately precedes the selected activity in the swim lane. 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 | Routes the runtime task to the participant group assigned to the swim lane in which the selected activity resides. This is the default selection. |
| Routing Policy | Routes the runtime task according to the policy that you establish. See Setting up a routing policy for more information. |
| List of Users | Routes the runtime task to an ad hoc list of users. See Routing to an ad hoc list of users for more information. |
| Custom | Routes the runtime task according to the JavaScript expression that you provide in the corresponding text field. To select one or more variables for your expression, click the variable selection icon next to the text field. The JavaScript expression should produce results such as USER:<user_name> or ROLE:<group_name> , where user_name is the name of an IBM BPM user (such as tw_author) and group_name is the name of an IBM BPM security group (such as tw_authors). |
| Option | Description |
|---|---|
| None | IBM BPM assigns the runtime task to all potential users. This is 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 should 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. |