Creating job stream definitions
You can create a job stream, add a run cycle, add jobs, and define an event rule.
About this task
The scope of the scenario is to create a job stream named “PAYROLL_PROC_21” that monthly creates and uploads payrolls for the year 2021 into the payroll management system. When the job stream is complete, an email that contains the following text is sent to the HR team: “The payrolls have been successfully created and uploaded into the payroll management system.”.
Procedure
-
Create a job stream and define general information about it:
-
Add a run cycle to the job stream:
- In the job stream expandable row, click + Add run cycle.
- In General Info, in Name, type RC1.
- In General Info, in Starting, select 30th April.
- In Rule, in Repeat schedule, select Monthly by month day.
- In Rule, in On the (descending order), select Last Day.
-
Add the existing jobs to the job stream:
- Save the job stream.
-
Define a new event rule:
- Click Create new + from the Workspace area, and choose Event rule.
- In General Info, in Folder, select 2021.
- In General Info, in Name, type PAYROLL_UPLOAD.
- In General Info, for Save as draft select Off.
-
Define the trigger event:
- In the event rule expandable row, click Add events.
- Click the Job Stream Completed event from the HCL Workload Automation plan events category.
- In Event name, type jsCompletedEvt1.
- In Job stream workstation, select matches and type MDM_production.
- In Job stream name, select matches and type PAYROLL_PROC_21.
-
Define the action to be performed when the defined event occurs:
- In the event rule expandable row, click Add actions.
- Click the Send mail action from the Mail sender plug-in category.
- In To (recipient), type HR_department@email.com.
- In Subject, type Payroll uploaded successfully.
- In Body, type The payrolls have been successfully created and uploaded into the payroll management system.
- Save the event rule.
Results
You created a job stream that monthly creates and uploads payrolls for the year 2021 into the payroll management system. Furthermore, when the job stream is complete, an email with the following content is sent to the HR department: “The payrolls have been successfully created and uploaded into the payroll management system.”.