Skip to main content

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Adding custom routing options in business logic-based routing

Suggest edit Updated on September 10, 2021

Process cases quicker by creating custom routing options for assignments. To ensure that assignments are routed to the most appropriate worker, edit the parameters of your custom options.

In the business logic-based routing, you can use the following default custom options to route assignments:

  • Route based on availability and skillset
  • Route based on availability, skillset, and work load

In a dialog box, you can enter values for the parameters that are needed for the selected option.

To meet your specific business needs, create your own custom options by overriding the pyGetRoutingAPIs data transform:

  1. In the navigation panel of Dev Studio, click Records > Data Model > Data Transform, and then open the pyGetRoutingAPIs data transform.
  2. Set the pyStandardValue parameter as equal to the name of your API.
  3. Set the pyPromptValue parameter as equal to the label of your API.
  4. Configure the return of the API by setting the pyAPIReturnType parameter:
    • To route the assignment to a worker, enter "OPERATOR".
    • To route the assignment to a work queue, enter "WORKQUEUE".
  5. Click Save as.
  6. Click Create and open.
  7. Optional: Customize the source of properties that are mapped with parameters:
    1. In the navigation panel of Dev Studio, click Records > Technical > Activity, and then open pySetRuleKeys.
    2. Set the Param.RuleClass parameter as equal to the class that you want to use as the source for the parameters of your custom API.
    3. Click Save as.
    4. Click Create and open.
  8. Optional: Include custom UI elements in the Parameters section:
    1. In the navigation panel of Dev Studio, click Records > User Interface > Section, and then open pyRuleParamsUIExtension of a class Data-MO-Activity-Router.
    2. Customize the section to meet your specific needs.
    3. Click Save as.
    4. Click Create and open.

For more information about routing assignments, see Choosing an assignee at run time in Dev Studio, Choosing an assignee at run time in App Studio.

Did you find this content helpful? YesNo

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us