Automation Center Documentation

Running a Workflow with Skipped Criteria

From OpsWise Documentation Wiki

image:pdficon_small.gif Open as PDF

In this exercise, we will create a daily workflow that includes a task that we want to skip on Fridays. We will also include a workflow within a workflow and later check the skipped workflow's status information.

Contents

Create the Workflow

  1. Create a new workflow called Workflow with Skipped, access the Workflow Editor and add the following tasks which you created in previous exercises:
    • Sleep1, Sleep2, Sleep3, Sleep4
    • Bigger Workflow
  2. Organize the workflow using all Success conditions as shown in this illustration.
  3. image:tut skip workflow.jpg

  4. Click Save image:ops save.gif.
  5. Right-click Bigger Workflow and select View/Edit Run Criteria. The system navigates to the Run Criteria list.
  6. Click New. The Task Run Criteria screen displays.
  7. In the Type field, select Skip Criteria.
  8. Select Specific Day(s).
  9. Select the current day (that is, if today is Friday, select Fri).
  10. image:skip run criteria.jpg
    Hint: See Task Run Criteria Field Descriptions for more details.

  11. Click Submit.

Run the Workflow

  1. Right-click anywhere in the Workflow Editor and select Launch Workflow.
  2. Display the Activity screen and note that the child workflow (Bigger Workflow) and all its child tasks have been skipped, as shown in the following example. Note also that this did not impact subsequent tasks, which ran as usual.
  3. image:tut skipped workflow.jpg

Check the Skipped Workflow's History

You can view the history of a task to find out why, for example, it has a status of Skipped. This information is available from the Activity screen for normal tasks by clicking on the task. For workflows, clicking on the workflow from the Activity screen displays the Workflow Monitor. Therefore, to view a workflow's history, use the All Task Instances screen.

  1. From the navigation pane, select Task Instances > All Task Instances.
  2. Locate the Bigger Workflow task with the Skipped status that you just ran and click the name to access the record. It should resemble the following: image:tut workflow status info.jpg
  3. Note that the Status Description field indicates that the workflow was skipped due to run/skip criteria.

image:sb15-1.gif


Return to First Look menu.


For additional information, see:

Personal tools