Create the workflow

Workflows control how tasks are prioritized and routed.

Procedure

  1. From the workspace you created, click Workflows.
  2. Click the plus sign (+) on the Workflows page to create a new workflow.
    You can also edit the Default Fifo Workflow.
  3. Enter a name for the workflow.
  4. 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
  5. 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
  6. From the Default TaskQueue drop-down menu, select the task queue that you created.
  7. Click Save.
    The page for the workflow is displayed.
  8. Note the values for the Friendly Name and SID parameters.
  9. 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.