Skip to main content
About the Resource Center

Work with workitem flows

Notes:
  • The maximum length of a flow name is 200 characters and it cannot contain a slash / or end in -debug.
  • You cannot duplicate names for workitem flows.

Use a dedicated workitem flow in Architect to manage workitems without depending on data actions. You can use a workitem flow, for example, to adjust the assignee, due date, expiry date, priority, or status of a workitem. You can also disconnect, terminate, or transfer a workitem with a workitem flow.

Workitem flows enable you to perform such tasks as:

  • Invite various stakeholders to work collaboratively in Architect to define the business logic for the desired work automation.
  • Process workitems during their entire life cycle.
  • Read and update built-in and custom workitem attributes.
  • Reassign the workitem by transferring it to a different queue or agent.
  • Retract the workitem from the assigned agent.
  • Configure the workitem flow to execute automatically on workitem creation and status change without the need to set up a trigger.

Use case examples

  • Automate repetitive tasks such as data validation or requests for missing information.
    Example 1: Preprocess bookings in a contact center.
    Benefits: enhanced efficiency, reduced response time, and greater data accuracy.
    Work automation tasks:
    • Validate the customer data: when the customer submits a booking, work automation can launch a pre-configured workitem flow that starts by validating the received customer data. For example, the workitem flow can check if mandatory data fields are complete and in the correct format. The workitem flow can also cross-reference the customer data with CRM databases to ensure accuracy.
    • Identify missing information: Work automation recognizes missing or incorrect data and fetches the missing information from business systems, for example, a CRM system.
    • Update the booking workitem: when the customer provides the missing data, work automation can update their booking with the new information.
  • Automate task assignment.
    Example 2: Preprocess insurance claims for task assignment.
    Benefits: faster resolution, greater operational efficiency.
    Work automation tasks:
    • Determine the insurance category for proper routing: when a customer makes an insurance claim, work automation can launch a pre-configured workitem flow that starts by checking the customer profile and determines the insurance category (automobile, home, life, and so on).
    • Assign the work automation task to the appropriate queue on task status change: When the workitem’s status changes to ‘Waiting to assign’, based on the determined insurance category, work automation can assign the workitem to the appropriate queue.
    • Collect data for claim handling: When the workitem’s status changes to ‘Assigned’, work automation can automatically collect the custom attributes of the associated worktype. For example, the insurance limit of the customer, or any previous claim history.

Create a workitem flow

Keep the following key points in mind:

  • Every workitem flow is based on and associated with a specific worktype. A workitem flow can only be associated with a single worktype.
  • A worktype can only be associated with a single workitem flow. In other words, you can only create one workitem flow per worktype.
  • If you want to create another workitem flow for a worktype, you must delete the existing workitem flow that is associated with that worktype.
  • After a workitem flow is created, you cannot change which worktype the workitem flow is associated with.
  • Set up the worktype before you create the workitem flow. You can only create a workitem flow with a worktype.
  • The worktype, its statuses, and its collection of custom attributes (schema) are all dependencies of the workitem flow. In other words, flow authors can reference them within the workitem flow.
  • Architect notifies flow authors about worktype schema changes or if the worktype no longer has a custom schema associated with it. 
  • If the associated worktype is deleted after a workitem flow is created or generated, Architect displays a validation error that indicates that the associated worktype is no longer valid. You cannot publish your workitem flow because you cannot change the associated worktype after you create a workitem flow. 
  • Search for flows by worktype in the Dependency Search tab in the Architect home page.
  • Find the associated worktype in the Dependencies pane under Resources and in Workitem Flow Settings.
  • To set rule conditions for workitem flow execution when a workitem is created or its status changes, navigate to the Rules tab of the associated worktype under Admin > Task Management > Worktypes. For more information, see Define a worktype (add new rules tab).

Complete the following configuration steps before you create your workitem flow:

  1. (Optional) Create custom attributes.
  2. Create a workbin.
  3. Create a worktype.

To create a workitem flow, follow these steps:

  1. From the Architect home page, click or hover over the Flows menu and select Workitem flow.
  2. Click Add. The Create Workitem Flow dialog box opens.
  3. In the Name field, enter a unique name for the flow.
  4. (Optional) In the Description field, add a short sentence or phrase to describe this flow.
  5. Click the Worktype list and select the worktype based on which you want Architect to generate the workitem flow.
    Notes:
    • Architect displays the worktypes that have been created under Admin > Task Management > Worktypes.
    • You can only create one workitem flow per worktype.
    • You cannot select a worktype that is already in use by another workitem flow.
  6. Click the Default Language list and select the flow's default supported language.
  7. Click the Divisions list and select the division in which to place the flow.
  8. Use the Generate Flow Logic toggle to auto-generate the default flow logic for event handling and statuses based on their configuration in the selected worktype.
  9. Click Create Flow. The flow's configuration page opens.
Note: You can also create your workitem flow using Archy. Use worktypeName or worktypeId to set the worktype on the workitem flow. For more information, see Define Architect flows using YAML.

Design logic behind workitem flows

Architect automatically generates your initial workitem flow based on the worktype that you select. When the rule condition in the worktype configuration is set to Creation, the respective Event Type in the workitem flow is set to workitemCreated. Similarly, when the rule condition is Status Transition or Dates, Architect sets the Event Type in the workitem flow to workitemStatusChange or workitemDateBasedEvent respectively.

Architect applies the following design logic depending on the worktype configuration:

  • Architect generates a Reusable Task for the workitemCreated event type and all the worktype statuses that have been configured in the associated worktype. Flow authors can configure the required business logic for handling workitems when they are created and the various workitem status changes in the respective Reusable Tasks.
  • A workitem can launch a workitem flow or it can be sent to a queue for assignment at creation time. Architect adds a Decision action below Start in the Initial state to determine whether the workitemCreated event type triggered the execution of the workitem flow.
  • If the flow was launched on workitem creation, Architect calls the EventType – workitemCreated Reusable Task with a Call Task action to execute the business logic that the flow author specified for handling workitems on creation.
  • If the flow was not launched because of a workitemCreated event, Architect checks whether the flow was triggered by a workitemStatusChanged event with another Decision action.

    • If the flow is running because of a status change, Architect checks what the name of the new status is. Then, it calls the corresponding Reusable Task with a Switch action to execute the configured business logic for handling the specific status update.
    • If the flow was not launched because of a workitemCreated event or a workitemStatusChanged event, Architect checks whether the flow was triggered by a workitemDateBasedEvent with another Decision action.
    • If the flow is running because of a workitemDateBasedEvent, Architect checks the name of the date rule. Then, it calls the corresponding Reusable Task with a Switch action to execute the configured business logic for handling the workitem based on the date rule. The date rules allow you to set conditions based on the due date, expiration date, or life span of a workitem. When these conditions are met, the workitem triggers the associated workitem flow instance.
    • Architect adds an Exit Workitem Flow action at the end of the workitem flow.

    Customize your workitem flow

    You can customize the generated workitem flow in the following ways:

    • You can add custom business logic to handle workitems during the event types such as workitem creation, status change, or date-based event.
    • You can use the following workitem-related Architect actions to handle workitem updates:
    • You can use built-in and custom variables to reference, update, make decisions, or take other actions based on various aspects of your workitem:
      • For example, you can use the Workitem.Workitem.customFields variable to reference items that have been defined as part of the custom schema associated with the worktype.
    • You can add alerts for transferring a workitem to a user with a Transfer to User action.
    • You can use workitem-related functions (FindWorktypeStatus, FindWorktypeStatusById) to update the status of a workitem in an Update Workitem action.

    Limitations

    Built-in variables

    Available Architect actions