An introduction to Orchestrator – Part 2 Schedules

Posted: March 2, 2012 in System Center Orchestrator 2012
Tags:

In Part 1 we took a look at Computer Groups, this time we take a look at Schedules.

Schedules enable you to define when a Workflow or Activity can run. For example, there may be times when it is inappropriate to run some Workflows, such as running a backup Workflow on a main server during regular business hours.

1. Checking a Schedule

This Workflow uses the Check Schedule Activity to match the current date/time (the date and time of when the ‘Weekday?’ Activity is started) against a Schedule that is active on weekdays only:

The ‘Weekdays’ Schedule has following properties:

The result from the Check Schedule Activity is evaluated and the Workflow branches accordingly. This is accomplished by using a Link Condition that is configured in the Link properties:

The Send Platform Event Activities are used to display the appropriate results.

Launch the Workflow by using Run, or by running it using the Runbook Tester. Check the Runbook Designer Events tab or the Runbook Tester log to see the resulting output.

2. Monitor Time and Schedules

This Workflow uses the Monitor Date/Time Activity to trigger every day at 09:15:

Then, the Check Schedule Activity is used to match the current date/time (the date and time of when the ‘Only on Weekends’ Activity is started) against a Schedule that is active on weekends only:

The result from the Check Schedule Activity is evaluated and the Workflow branches accordingly. The Send Platform Event Activities are used to display the appropriate results.

Before running the Workflow, change the Monitor Date/Time Activity to an appropriate time such as a minute ahead of the current time. This way, the Monitor Date/Time Activity will trigger as soon as possible.

Launch the Workflow by using Run, or by running it using the Runbook Tester. Check the Runbook Designer Events tab or the Runbook Tester log to see the resulting output.

3. Compound Scheduling

This Workflow uses the Monitor Date/Time Activity to trigger every day at 9:00 AM. It then uses a Check Schedule Activity to determine if it’s a weekday. If it is a weekday, another Check Schedule Activity is used to determine if it’s a holiday. The results from the Check Schedule Activities are evaluated and the Workflow branches accordingly. The Send Platform Event Activities are used to display the appropriate results.

Before running the Workflow, change the Monitor Date/Time Activity to an appropriate time such as a minute ahead of the current time. This way, the Monitor Date/Time Activity will trigger as soon as possible.

Launch the Workflow by using Run, or by running it using the Runbook Tester. Check the Runbook Designer Events tab or the Runbook Tester log to see the resulting output.

For more information about Scheduling look here

Advertisements
Comments
  1. JoshM says:

    How did you handle the “check if it is a holiday?”
    Thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s