Manage workflows

This topic describes how to manage workflows created in VisualFlow.

Add workflows

Adding new workflows is done by creating a copy of an existing workflow and then modifying the copy.

Do the following:

  1. In the VisualFlow main menu, click Workflows.

    The List of Workflows page is displayed.

  2. Next to an existing workflow on which you would like to base the new workflow, click Duplicate.

  3. Click OK.

    A new workflow appears at the bottom of the workflows list. Its name is OriginalWorkflow-Copy-Number, where:

    • OriginalWorkflow is the name of the workflow you copied.
    • Number is a number used to differentiate between copies of the duplicated workflow.

    A confirmation message appears.

  4. Do one of the following:

    • Next to the new workflow, click Edit.
    • Click on the workflow's name.

    The Edit Workflow page opens with the workflow's details.

  5. In the Edit workflow details area, complete the fields using the information in Workflow Details Fields (see Workflow Details Fields).

  6. Click Save Draft.

  7. Add, edit, and delete workflow statuses as desired.

    Continue with any of the following:

Edit workflows

Note: You can edit the workflow details of built-in workflows; however, you cannot change their statuses and actions.

Do the following:

  1. In the VisualFlow main menu, click Workflows.

    The List of Workflows page is displayed.

  2. Do one of the following:

    • Next to the new workflow, click Edit.
    • Click on the workflow's name.

    The Edit Workflow page opens with the workflow's details.

  3. To edit the workflow's details, do the following:

    1. In the Edit workflow details area, complete the fields as needed. For details, see Workflow Details Fields.

    2. Click Save Draft.

    A message at the top of the screen informs you that changes have been made to the workflows.

Continue with any of the following:

Workflow condition syntax

A workflow's Condition field contains a query that specifies the condition under which the workflow should be assigned to change requests when the change request's template does not specify a workflow. The query is composed of pairs in the following format:

field = 'value'

Where field is a supported field in FireFlow, and value is the field's value. For example, the following query specifies that the change request priority must be "1":

Priority = '1'

You can use != to indicate "not". For example, the following query specifies that the change request must not have a priority of "1":

Priority != '1'

It is possible to use Boolean operators between field-value pairs.

For example, the following query specifies that the change request priority must be "1", and the owner must be John Smith:

Priority = '1' AND Owner = 'John Smith'

For more intricate queries, you can use parentheses to group field-value pairs and operators. For example, the following query specifies that the change request priority must be "1" or "2", and the owner must be John Smith or Sue Michaels.

(Priority = '1' OR Priority = '2') AND (Owner = 'John Smith' OR Owner = 'Sue Michaels')

Supported Fields

There are two types of supported fields:

  • Standard fields. These fields should be written as they appear in Standard Fields (see Standard Fields ). For example:

        Subject = 'Allow Web Access'

  • Custom fields. These fields include those listed in Custom Fields (see Custom Fields ), as well as any fields added by users. They should be used in the following format:

        'CF.{field}'

    Where field is the name of the custom field.

    For example:

        'CF.{Firewall Brand}' = 'Check Point'

Supported Boolean Operators

Supported boolean operators include the following:

Operator

Description

AND

Both of the field-value pairs joined by this operator must be true.

In the following example, the condition is only met for new change requests owned by John Smith:

Status = 'new' AND Owner = 'John Smith'

OR

One or both of the field-value pairs joined by this operator must be true.

In the following example, the condition is met for change requests that are new, change requests that are owned by John Smith, and new change requests owned by John Smith:

Status = 'new' OR Owner = 'John Smith'

Workflow conditions example

In the following example, the workflow will be assigned when the change request's template does not specify a workflow, and one of the following conditions are met:

  • The change request's priority is greater than 7.
  • The requestor's email address includes the string "company.com".
  • The value of the custom field called "Project" is "Infrastructure".

(Priority > 7) OR (Requestor.EmailAddress LIKE 'company.com') OR ('CF.{Project}' = 'Infrastructure')

Reorder workflows

You can control the order in which workflows appear in VisualFlow.

Do the following:

  1. In the VisualFlow main menu, click Workflows.

    The List of Workflows page is displayed.

  2. In the list of workflows, click next to a workflow you want to move, and drag it to the desired location in the list.

Setting a default workflow

When FireFlow fails to assign a workflow based on a change request’s template or workflow conditions, it automatically uses the default workflow.

Only one workflow can be the set as the default workflow. By default, the Basic workflow is the default workflow.

Note: For FireFlow installations v6.4 and older, the default workflow is the Standard workflow. Upgrading from v6.4 or below will not set the Basic workflow as the default.

Do the following:

  1. In the VisualFlow main menu, click Workflows.

    The List of Workflows page is displayed.

  2. Next to the desired workflow, click Set as default.

  3. Click on the workflow's name.

The workflow is marked as the default workflow in the Default column.

Delete workflows

Note: You cannot delete built-in workflows. For more details, see Built-in workflows.

Note: If you delete a workflow, then any change requests that are assigned to that workflow will be re-assigned to the default workflow the next time they are accessed. Furthermore, if their current status does not exist in the default workflow, the change requests will transition to the "new" status.

Do the following:

  1. In the VisualFlow main menu, click Workflows.

    The List of Workflows page is displayed.

  2. Next to the desired workflow, click Delete.

    A confirmation message appears.

  3. Click OK.

The workflow is deleted.

A message at the top of the screen informs you that changes have been made to the workflows.