Académique Documents
Professionnel Documents
Culture Documents
By PenchalaRaju.Yanamala
You can change the schedule settings by editing the scheduler. By default, the
workflow runs on demand. If you change schedule settings, the Integration
Service reschedules the workflow according to the new settings. The Integration
Service runs a scheduled workflow as configured. The Workflow Manager marks
a workflow invalid if you delete the scheduler associated with the workflow.
If you configure multiple instances of a workflow, and you schedule the workflow
run time, the Integration Service runs all instances at the scheduled time. You
cannot schedule workflow instances to run at different times.
If you choose a different Integration Service for the workflow or restart the
Integration Service, it reschedules all workflows. This includes workflows that are
scheduled to run continuously but whose start time has passed and workflows
that are scheduled to run continuously but were unscheduled. You must
manually reschedule workflows whose start time has passed if they are not
scheduled to run continuously.
If you delete a folder, the Integration Service removes workflows from the
schedule when it receives notification from the Repository Service. If you copy a
folder into a repository, the Integration Service reschedules all workflows in the
folder when it receives the notification.
The Integration Service does not run the workflow in the following situations:
The prior workflow run fails. When a workflow fails, the Integration Service
removes the workflow from the schedule, and you must manually reschedule it.
You can reschedule the workflow in the Workflow Manager or using pmcmd. In
the Workflow Manager Navigator window, right-click the workflow and select
Schedule Workflow.
You remove the workflow from the schedule. You can remove the workflow
from the schedule in the Workflow Manager or using pmcmd. In the Workflow
Manager Navigator window, right-click the workflow and select Unschedule
Workflow. For more information about removing workflows from the schedule,
see Unscheduling a Workflow.
The Integration Service is running in safe mode. In safe mode, the
Integration Service does not run scheduled workflows, including workflows
scheduled to run continuously or run on service initialization. When you enable
the Integration Service in normal mode, the Integration Service runs the
scheduled workflows.
Note: The Integration Service schedules the workflow in the time zone of the
Integration Service machine. For example, the PowerCenter Client is in the
current time zone and the Integration Service is in a time zone two hours later. If
you schedule the workflow to start at 9 a.m., it starts at 9 a.m. in the time zone of
the Integration Service machine and 7 a.m. current time.
To schedule a workflow:
Related Topics:
Configuring Scheduler Settings
For each folder, the Workflow Manager lets you create reusable schedulers so
you can reuse the same set of scheduling settings for workflows in the folder.
Use a reusable scheduler so you do not need to configure the same set of
scheduling settings in each workflow.
When you delete a reusable scheduler, all workflows that use the deleted
scheduler becomes invalid. To make the workflows valid, you must edit them and
replace the missing scheduler.
Configure the Schedule tab of the scheduler to set run options, schedule options,
start options, and end options for the schedule.
You can schedule the workflow to run once or at an interval. You can customize
the repeat option. Click the Edit button to open the Customized Repeat dialog
box.
You can edit scheduler settings for both non-reusable and reusable schedulers.
Disabling Workflows
You may want to disable the workflow while you edit it. This prevents the
Integration Service from running the workflow on its schedule. Select the Disable
Workflows option on the General tab of the workflow properties. The Integration
Service does not run disabled workflows until you clear the Disable Workflows
option. Once you clear the Disable Workflows option, the Integration Service
reschedules the workflow.
On Windows, the Integration Service does not run a scheduled workflow during
the last hour of Daylight Saving Time (DST). If a workflow is scheduled to run
between 1:00 a.m. and 1:59 a.m. DST, the Integration Service resumes the
workflow after 1:00 a.m. Standard Time (ST). If you try to schedule a workflow
during the last hour of DST or the first hour of ST, you receive an error. Wait until
2:00 a.m. to create a scheduler.
Validating a Workflow
Before you can run a workflow, you must validate it. When you validate the
workflow, you validate all task instances in the workflow, including nested
worklets.
The Workflow Manager also verifies that you linked each task properly.
Expression Validation
The Workflow Manager validates all expressions in the workflow. You can enter
expressions in the Assignment task, Decision task, and link conditions. The
Workflow Manager writes any error message to the Output window.
The Workflow Manager marks the workflow invalid if a link condition is invalid.
Task Validation
The Workflow Manager validates each task in the workflow as you create it.
When you save or validate the workflow, the Workflow Manager validates all
tasks in the workflow except Session tasks. It marks the workflow invalid if it
detects any invalid task in the workflow.
The Workflow Manager verifies that attributes in the tasks follow validation rules.
For example, the user-defined event you specify in an Event task must exist in
the workflow. The Workflow Manager also verifies that you linked each task
properly. For example, you must link the Start task to at least one task in the
workflow.
When you delete a reusable task, the Workflow Manager removes the instance
of the deleted task from workflows. The Workflow Manager also marks the
workflow invalid when you delete a reusable task used in a workflow.
The Workflow Manager verifies that there are no duplicate task names in a
folder, and that there are no duplicate task instances in the workflow.
Related Topics:
Validating Tasks
The Workflow Manager marks the workflow invalid if the scheduler you specify
for the workflow does not exist in the folder.
Running Validation
When you validate a workflow, you validate worklet instances, worklet objects,
and all other nested worklets in the workflow. You validate task instances and
worklets, regardless of whether you have edited them.
The Workflow Manager validates the worklet object using the same validation
rules for workflows. The Workflow Manager validates the worklet instance by
verifying attributes in the Parameter tab of the worklet instance.
If the workflow contains nested worklets, you can select a worklet to validate the
worklet and all other worklets nested under it. To validate a worklet and its
nested worklets, right-click the worklet and choose Validate.
Related Topics:
Validating Worklets
Example
For example, you have a workflow that contains a non-reusable worklet called
Worklet_1. Worklet_1 contains a nested worklet called Worklet_a. The workflow
also contains a reusable worklet instance called Worklet_2. Worklet_2 contains a
nested worklet called Worklet_b.
In the example workflow in Figure 3-3, the Workflow Manager validates links,
conditions, and tasks in the workflow. The Workflow Manager validates all tasks
in the workflow, including tasks in Worklet_1, Worklet_2, Worklet_a, and
Worklet_b.
You can validate a part of the workflow. Right-click Worklet_1 and choose
Validate. The Workflow Manager validates all tasks in Worklet_1 and Worklet_a.
Before you can run a workflow, you must select an Integration Service to run the
workflow. You can select an Integration Service when you edit a workflow or from
the Assign Integration Service dialog box. If you select an Integration Service
from the Assign Integration Service dialog box, the Workflow Manager overwrites
the Integration Service assigned in the workflow properties.
You can manually start a workflow configured to run on demand or to run on a
schedule. Use the Workflow Manager, Workflow Monitor, or pmcmd to run a
workflow. You can choose to run the entire workflow, part of a workflow, or a task
in the workflow.
You can also use advanced options to override the Integration Service or
operating system profile assigned to the workflow and select concurrent workflow
run instances.
Running a Workflow
When you click Workflows > Start Workflow, the Integration Service runs the
entire workflow. To run a workflow from pmcmd, use the startworkflow command.
After the Workflow Manager sends a request to the Integration Service, the
Output window displays the Integration Service response. If an error appears,
check the workflow log or session log for error messages.
You can also manually start a workflow by right-clicking in the Workflow Designer
workspace and choosing Start Workflow.
Use the advanced options to override the Integration Service or operating system
profile assigned to the workflow and select concurrent workflow run instances.
When you start a task in the workflow, the Workflow Manager locks the entire
workflow so another user cannot start the workflow. The Integration Service runs
the selected task. It does not run the rest of the workflow.
To run a task using the Workflow Manager, select the task in the Workflow
Designer workspace. Right-click the task and choose Start Task.
You can also use menu commands in the Workflow Manager to start a task. In
the Navigator, drill down the Workflow node to locate the task. Right-click the
task you want to start and choose Start Task.