Tutorial - Running a Workflow with Skipped Criteria

Introduction

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 status of the skipped Workflow.

Create the Daily Workflow

Step 1

Create a Workflow named Workflow with Skipped and add the following tasks created in the Creating a Simple Workflow tutorial:

  • Four Timer tasks: Timer1, Timer2, Timer3, Timer4.
  • One Workflow task: Simple Workflow.

Step 2

Organize the tasks in the Workflow as shown in the following illustration (using all Success conditions) and click the Save icon.
 

Step 4

Right-click Simple Workflow and, on the pop-up menu, click View/Edit Run Criteria. The Task Run Criteria list for Simple Workflow displays.

Step 5

Click New to display Task Run Criteria Details.

Step 6

In the Type field, select Skip Criteria.

Step 7

Select Specific Day(s).

Step 8

Select the current day (that is, if today is Friday, select Fri).
 
(See Task Run Criteria Field Descriptions for more details.)

Step 9

Click Save.
 

Run the Daily Workflow

Step 1

Right-click anywhere in the Workflow Editor and select Launch Workflow.

Step 2

Display the Activity Monitor and note that the sub-workflow (Simple Workflow) and all its sub-tasks have been skipped, as shown in the following example. Note also that this did not impact subsequent tasks, which ran as usual.
 

Check the Skipped Workflow's History

You can view a task instance Details to find out why it has a status of Skipped. On the Activity Monitor, click the Details icon in the first column for any task instance to display its task instance Details.

For example:
 


 

Note that the Status Description field indicates that Simple Workflow was skipped due to run/skip criteria.


For additional information, see: