As of V5R4, the Work Flow Manager lets you define units of work that consist of automated or manual steps. These units of work can then be scheduled or run interactively. The Work Flow Manager is located in the Advanced Job Scheduler container in the iSeries™ Navigator interface.
Each step within the work flow can have one or more predecessor Advanced Job Scheduler jobs and one or more successor Advanced Job Scheduler jobs. When a work flow starts, the first step is flagged to run. When it completes, the next step is flagged to run, and so on.
When you use work flows, the activity log displays when the work flow started, the steps that were run, the status of automated steps (success or fail), when the work flow ended, and the final status of the work flow.
Work Flow | PAYROLL |
---|---|
Scheduled | Every Friday at 1:00 p.m. |
Notification | Clerk - Payroll work flow has started |
Step 1 | Automatic - Specifies a successor job to initialize payroll files |
Step 2 | Automatic:
|
Step 3 | Manual:
|
Step 4 | Automatic:
|
Step 5 | Manual:
|
Step 6 | Automatic:
|
In this example the work flow PAYROLL starts every Friday at 1:00 p.m. A notification is sent to the Clerk that the work flow has started.
Because Step 1 is automatic and does not have any predecessor jobs, it flags the successor job that initializes the payroll files to run and then complete. Step 2 has the successor job for Step 1 as its predecessor. Step 2 waits for the job that initializes the payroll files to complete. After it has completed, Step 2 notifies the Clerk that he can enter timecards. There are no successor jobs to flag to run.
The Clerk manually completes Step 3 after all of the timecards are entered. The successor job that processes the timecard file and prints a timecard report is flagged to run. As a precaution, the Supervisor is notified if the step is not completed within 120 minutes. Because the predecessor job for Step 4 is the successor for Step 3, Step 4 waits until the job that processes the timecard file and prints a timecard report has completed.
After the job completes the Clerk is notified that the timecard report can be checked. There are no successor jobs to flag to run. After the timecard report is checked, the Clerk manually completes Step 5. The successor job that processes the payroll and produces the checks is flagged to run.
Because the predecessor job for Step 6 is the successor for Step 5, Step 6 waits until the job that processes the payroll and produces the checks has completed. After the job completes, it notifies the Clerk and Supervisor that Payroll has completed. The checks can now be printed and distributed.
For more detailed information about the Work Flow Manager see the online help.