Adding custom routing options in business logic-based routing
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:
- In the navigation panel of Dev Studio, click Records > Data Model > Data Transform, and then open the pyGetRoutingAPIs data transform.
- Set the pyStandardValue parameter as equal to the name of your API.
- Set the pyPromptValue parameter as equal to the label of your API.
- 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".
- Click Save as.
- Click Create and open.
- Optional: Customize the source of properties that are mapped with parameters:
- In the navigation panel of Dev Studio, click Records > Technical > Activity, and then open pySetRuleKeys.
- 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.
- Click Save as.
- Click Create and open.
- Optional: Include custom UI elements in the Parameters section:
- In the navigation panel of Dev Studio, click Records > User Interface > Section, and then open pyRuleParamsUIExtension of a class Data-MO-Activity-Router.
- Customize the section to meet your specific needs.
- Click Save as.
- 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.