Routing activities

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.

About this task

The Routing option also enables you to control how the runtime task is distributed to designated users.

Note: Routing options are available only for those activities with an IBM® BPM service implementation.

Procedure

  1. In the Designer view, click an activity in a BPD diagram to display its properties.
  2. Click the Routing option.
  3. From the Assign To drop-down list, chose one of the following options:
    Table 1. Options in the Assign To drop-down list
    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).
  4. From the User Distribution drop-down list, choose one of the following options:
    Table 2. Options in the User Distribution drop-down list
    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.