Create a workflow

Caution: This feature is in technical preview. It currently supports only qTest Requirements in this technical preview. There are no controls in qTest Requirement module so workflow editable settings are ignored and routing and approved Requirements can be modified in qTest.

Workflows let you define and manage the lifecycle of a record using configurable state transitions. This tutorial guides you through creating a comprehensive workflow that includes states like Draft, Routing for Approval, Approved, Rejected, and Obsolete with their associated transitions.

Creating a custom workflow helps you standardize your approval processes and ensures records follow the correct approval path based on your organization's requirements.

Before you start

To create and use workflows in Vera, you need to:

  • Enable the feature by setting the environment variable VERA_WEB_PORTAL_ENABLE_WORKFLOWS to true in the Web Portal container, or set the enableWorkflows parameter to true in the config.yaml file.

  • Configure and run the Workflows API container and Worker service.

  • Have administrator access to the Vera web portal.

  • Have external routing rules that forward traffic on /api/workflows/* to the Workflows API container.

For detailed information about workflows, check out Manage workflows.

Create the workflow

To create a workflow, follow these steps:

  1. Sign in to the Vera web portal as an administrator.

  2. From the left pane, select Workflows.

  3. Select + Create workflow and complete the form:

    • Name: qTest Requirement Approval Workflow

    • Description: Workflow tutorial

    • Owner: your user account

  4. Select Save.

Add workflow states

Add the required states for your workflow:

  1. Navigate to the Workflow States tab.

  2. Select Add State and create the Draft state:

    • Name: Draft

    • Editable: ON (Checked)

    • Type: GENERIC

  3. Select Save workflow.

  4. Select Add State and create the Routing for Approval state:

    • Name: Routing for Approval

    • Editable: OFF (Unchecked)

    • Type: ROUTE

  5. Select Save workflow.

  6. Select Add State and create the Approved state:

    • Name: Approved

    • Editable: OFF (Unchecked)

    • Type: COMPLETE

  7. Select Save workflow.

  8. Select Add State and create the Rejected state:

    • Name: Rejected

    • Editable: ON (Checked)

    • Type: GENERIC

  9. Select Save workflow.

  10. Select Add State and create the Obsolete state:

    • Name: Obsolete

    • Editable: OFF (Unchecked)

    • Type: COMPLETE

  11. Select Save workflow.

Note: Transitioning from a COMPLETE state to a GENERIC state will increment the record revision number, such as Approved to Draft. While, transitioning from a COMPLETE state to another COMPLETE state will not impact the revision number, such as Approved to Obsolete.

Add workflow route

Create the approval route that defines how records transition through the workflow:

  1. Navigate to the Workflow Routes tab.

  2. Select Add Route and complete the form:

    • Name: Standard Approval Route

    • Meaning: Approval

  3. Expand the Route Complete section and set:

    • State: Approved

  4. Expand the Route Rejected section and set:

    • State: Rejected

  5. Select Save workflow.

Add workflow triggers and actions

Configure the triggers and actions that define state transitions:

Set the default state

Configure the initial state for new records:

  1. Navigate to the Workflow Details tab.

  2. Set the Default State to Draft.

  3. Select Save Workflow.

  4. Select Activate to enable the workflow.

Apply the workflow to record types

To make records follow your custom workflow, you need to apply it to a Record Type or Records Management Policy (RMP):