Creating a Workflow
  • 29 May 2024
  • 3 Minutes to read
  • Dark
    Light
  • PDF

Creating a Workflow

  • Dark
    Light
  • PDF

Article summary

This section describes how to create a workflow with a triggering Event or Action in the top node, and continuing with any number of routes and sub-routes, which are composed of Enforcement Actions, Action Conditions, Events, and Event Conditions.

To create a workflow

  1. Click the Enforcement Center EC_Icon icon on the left navigation panel, and then click the Workflows tab.

  2. In the Workflows page that opens, click the Create Workflow button.

  3. In the New Workflow screen that opens, click the Workflow Settings icon WorkflowSettingsIcon, and in the Workflow Settings pane, type a meaningful Workflow name. The name appears in the Workflow pane.
    WFSettingsTriggers

  4. In the Workflow canvas pane, select and configure the Workflow trigger. The Workflow trigger type can be Event (default) or Action.

  5. Continue adding components to the workflow. Hovering over the + icon under a workflow component reveals the components that you can add:

  6. When you have completed building the Workflow:

    • For a Workflow triggered by an Event, click Save and Activate to activate the Workflow.
    • For a Workflow triggered by an Action, click Save and Run to run the workflow.

    The All Workflows folder opens with the newly added Workflow on top of the table. The Workflow is added to the Drafts folder (if configuration is incomplete) or Shared Workflows folder (if configuration is complete).

Note:
  • Click Save at any time during the configuration to save changes to the workflow as you add components and remain on the Workflow configuration page.
  • In a Workflow triggered by an Event, the Save and Save and Activate buttons are disabled when a node with a Condition is not fully defined. You must complete condition configuration in order to save the workflow.
  • In a Workflow triggered by an Action, the Save and Run button is disabled when a node with an Action is not fully defined. You must complete the action(s) configuration(s) in order to run the workflow.

Example

The following example shows a Workflow that begins with an Enforcement Action that sends a Slack message. Each time a user responds to the Slack message, an event occurs, and based on the response, the workflow continues.

Configure the Workflow as follows

  1. Add a triggering Action - The Slack - Send Direct Message to Assets enforcement action. Configure the action, as required, including the predefined responses (buttons) to be added to the Slack message that is sent to each user resulting from the query.

WFExampleImage1

Note:

You can also use the Slack - Send Message to Channel enforcement action, which is configured with predefined responses, in a Workflow.

  1. Add the Slack Message Response event. This event will be sent each time a user responds to the Slack interactive message (in step 1) using the Response buttons.

WFExampleImage2

  1. Add an Event Condition - If Response Equals Yes. This enables performing one action if the response to the Slack message is Yes (True branch), and another action if the response is other than Yes (False branch).

WFExampleImage3

  1. At the end of the False branch, click the + icon to add an Action, Event, or Condition as the next step in the Workflow in the case that the user responded with a Response other than Yes. And similarly, at the end of the True branch in the case that the user responded with Response Equals Yes.
Note:

You are required to add an action, event, or condition at the end of either the False or True branch.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.