We can schedule a workflow to run continuously, repeat at a given time or interval, or we can manually start a workflow. The Integration Service runs a scheduled workflow as configured.
By default, the workflow runs on demand. We can change the schedule settings by editing the scheduler. If we change schedule settings, the Integration Service reschedules the workflow according to the new settings.
- A scheduler is a repository object that contains a set of schedule settings.
- Scheduler can be non-reusable or reusable.
- The Workflow Manager marks a workflow invalid if we delete the scheduler associated with the workflow.
- If we choose a different Integration Service for the workflow or restart the Integration Service, it reschedules all workflows.
- If we delete a folder, the Integration Service removes workflows from the schedule.
- The Integration Service does not run the workflow if:
- The prior workflow run fails.
- We remove the workflow from the schedule
- The Integration Service is running in safe mode
Creating a Reusable Scheduler
- For each folder, the Workflow Manager lets us create reusable schedulers so we can reuse the same set of scheduling settings for workflows in the folder.
- Use a reusable scheduler so we do not need to configure the same set of scheduling settings in each workflow.
- When we delete a reusable scheduler, all workflows that use the deleted scheduler becomes invalid. To make the workflows valid, we must edit them and replace the missing scheduler.
- Open the folder where we want to create the scheduler.
- In the Workflow Designer, click Workflows > Schedulers.
- Click Add to add a new scheduler.
- In the General tab, enter a name for the scheduler.
- Configure the scheduler settings in the Scheduler tab.
- Click Apply and OK.
Configuring Scheduler Settings
Configure the Schedule tab of the scheduler to set run options, schedule options, start options, and end options for the schedule.
There are 3 run options:
- Run on Demand
- Run Continuously
- Run on Server initialization
1. Run on Demand:
Integration Service runs the workflow when we start the workflow manually.
2. Run Continuously:
Integration Service runs the workflow as soon as the service initializes. The Integration Service then starts the next run of the workflow as soon as it finishes the previous run.
3. Run on Server initialization
Integration Service runs the workflow as soon as the service is initialized. The Integration Service then starts the next run of the workflow according to settings in Schedule Options.
Schedule options for Run on Server initialization:
- Run Once: To run the workflow just once.
- Run every: Run the workflow at regular intervals, as configured.
- Customized Repeat: Integration Service runs the workflow on the dates and times specified in the Repeat dialog box.
Start options for Run on Server initialization:
· Start Date
· Start Time
End options for Run on Server initialization:
- End on: IS stops scheduling the workflow in the selected date.
- End After: IS stops scheduling the workflow after the set number of
- workflow runs.
- Forever: IS schedules the workflow as long as the workflow does not fail.
Creating a Non-Reusable Scheduler
- In the Workflow Designer, open the workflow.
- Click Workflows > Edit.
- In the Scheduler tab, choose Non-reusable. Select Reusable if we want to select an existing reusable scheduler for the workflow.
- Note: If we do not have a reusable scheduler in the folder, we must
- create one before we choose Reusable.
- Click the right side of the Scheduler field to edit scheduling settings for the non- reusable scheduler
- If we select Reusable, choose a reusable scheduler from the Scheduler
- Browser dialog box.
- Click Ok.
Points to Ponder :
- To remove a workflow from its schedule, right-click the workflow in the Navigator window and choose Unscheduled Workflow.
- To reschedule a workflow on its original schedule, right-click the workflow in the Navigator window and choose Schedule Workflow.