Choosing an assignee at run time

You can use custom routing logic to determine which user receives an assignment in a case. By replacing hard-coded names with conditions that your application evaluates at run time, you can improve the flexibility of your cases.

You can use business logic or an activity to implement your custom routing logic.

Routing by business logic

Use this approach when the assignment is worked on by a specific user in some cases, and routed to a shared work queue in other cases.

  1. In the Explorer panel, click Cases, and then click the case type that you want to open.

  2. On theWorkflow tab, click Life cycle.

  3. Click an assignment in a process.

  4. In the Route to list, select Use business logic.

  5. Click the Gear icon to configure the business logic.

  6. In the Business logic dialog box, define a routing method.

    1. In the Action list, select a routing method.

    2. In the Value field, press the Down Arrow key and select the name of a user or work queue, based on the routing method that you select.

  7. In the When section, define the conditions that must be met to select this routing method.

    By default, all conditions must return a true value. You can change this behavior by selecting different Boolean operators from the list that is displayed next to each condition.

    1. In the Field list, select the name of a field in your data model.

    2. In the Comparator list, select a function.

    3. In the Value field, enter a value that is compared with the field at run time.

      For example, you can test whether a case is older than five days or has an urgency that this greater than fifty.

  8. Optional: To define another routing method and corresponding conditions, click + Add condition and repeat steps 5 through 6.

    Your application selects the first routing method to meet its conditions at run time.

  9. In the otherwise section, define a routing method to use when no conditions return a true value.

    1. In the Action list, select a routing method.

    2. In the Value field, press the Down Arrow key and select the name of an operator or work queue, based on the routing method that you select.

  10. Click Submit.

Routing by activity

Use this approach when the assignment is either always routed to a worklist or always routed to a work queue.

  1. Open a flow by searching for it or by using the Application Explorer.

  2. On the Diagram tab of the Flow form, double-click an assignment to open the Assignment properties dialog box.

  3. Change the routing options to support one type of destination.

  4. Click Submit.

  5. Click Save.