Skip to main content
close Search
Close search

Assigning users automatically at run time

Pega Community logo

Note: The following content, referenced from Pega Community, is included here to help you better achieve the module learning objectives.

Process your business cases with flexibility and efficiency by using business logic to automatically determine which individual or group of individuals receives an assignment in a case. Instead of entering specific names of users or teams, you can provide conditions that your application evaluates at run time to assign a task.

For example, your application can evaluate which CSR has the most appropriate skill set or workload to complete a step or task.
  1. In the navigation pane of App Studio, click Case types, and then click the case type that you want to open.

  2. On the Workflow tab, click Life cycle.

  3. In the Case life cycle section, click an assignment in a process.

  4. In the Step section of the properties panel, click the General tab.

  5. In the Route to list, select Use business logic, and then click the Configure business logic icon.

  6. Select a routing method:

    Actions Steps
    Route the assignment to a specific user
    1. In the Route to list, select Operator.

    2. In the Value field, press the Down arrow key, and then select the name of a user.

    Route the assignment to a work queue
    1. In the Route to list, select Work queue.

    2. In the Value field, press the Down arrow key, and then select the name of a work queue.

    Route the assignment by using custom business logic
    1. In the Route to list, select an option from the Custom section.

    2. Specify routing conditions by clicking Edit parameters and completing the Edit parameters window.

      You can route the assignment based on availability and skill set, or based on availability, skill set, and workload.

  7. Define the routing condition for the assignment:

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

    2. In the comparator list, select a comparator.

    3. In the value field, enter or select a value that your application compares with the field in the data model.

      For example: Case status is equal to New
    4. Optional:

      To define more conditions that apply to this routing method, click the Add row icon.

  8. Optional:

    To support complex business logic, click Add condition, and then repeat steps 6 and 7.

    Note: At run time, your application selects the first routing method that meets the conditions that you define.
  9. In the otherwise section, define a routing method that you want to use when no conditions return a true value:

    Actions Steps
    Route the assignment to a specific user
    1. In the Route to list, select Operator.

    2. In the Value field, press the Down arrow key, and then select the name of a user.

    Route the assignment to a work queue
    1. In the Route to list, select Work queue.

    2. In the Value field, press the Down arrow key, and then select the name of a work queue.

    Route the assignment by using custom business logic
    1. In the Route to list, select an option from the Custom section.

    2. Specify routing conditions by clicking Edit parameters and completing the Edit parameters window.

      You can route the assignment based on availability and skill set, or based on availability, skill set, and workload.

  10. Click Submit.

Note: At run time, an application evaluates the conditions and automatically routes an assignment to an appropriate user or work queue. If an application evaluates all conditions as false, it routes an assignment by using an alternative method that you provide in the otherwise section.

  • Assignment shapes in flows

    Assignment shapes represent tasks that users complete in a flow. To ensure that your business process meets all your unique requirements, you can add an assignment shape for each place in the business process that requires human judgment and input.

If you are having problems with your training, please review the Pega Academy FAQs.

Did you find this content helpful?

Want to help us improve this content?

Suggest an edit

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice