Create the workflow
Workflows control how tasks are prioritized and routed.
Procedure
- From the workspace you created, click Workflows.
- Click the plus sign (+) on the Workflows
page to create a new workflow.
You can also edit the Default Fifo Workflow.
- Enter a name for the workflow.
- Under Routing Configuration, click Add a Filter, and then complete the following fields:
Field Value Expression agent_name != NULL Target Task Queue Select the task queue that you created. Target Workers Expression task.agent_name == worker.agent_name - Click Add a Filter again, and then
complete the following fields:
Field Value Expression 1 == 1 Target Task Queue Select the task queue that you created. Target Workers Expression 1 == 1 - From the Default TaskQueue drop-down menu, select the task queue that you created.
- Click Save.
The page for the workflow is displayed.
- Note the values for the Friendly Name and SID parameters.
- Click View as JSON under Routing
Configuration.
The JSON code should look like the following example (these are not real queues):
{ "task_routing": { "filters": [ { "targets": [ { "queue": "WQ0123456789abcdef0123456789abcdef", "expression": "task.agent_name == worker.agent_name" } ], "filter_friendly_name": "", "expression": "agent_name != NULL" }, { "targets": [ { "queue": "WQ0123456789abcdef0123456789abcdef", "expression": "1 == 1" } ], "filter_friendly_name": "", "expression": "1 == 1" } ], "default_filter": { "queue": "WQ0123456789abcdef0123456789abcdef" } } }
What to do next
You will need the workflow name and SID for the custom configuration setting in Oracle Service Cloud.