...
- Unzip all files of test_event.zip into the ./config folder of your active instance of the event service JobScheduler installation. After unzipping you will have all the objects needed to run the example in the live/DEP_EVENTS subfolder.
- Open the JS operations gui for the workload JobScheduler in your browser using http://scheduler_host:scheduler_port
- Find the
DEP_EVENTS/JobChainAJobChainB/JobChainAJobChainB
job chain and click on it. - There is an order assigned to the job chainJobChainB. In the order menu press Start order now
- You see the order will run until the step 3 is reached. As the EVENT start , but since the JobChainA is not yet started , thus JOB_CHAINA_END event does not exist, the order will wait for 10s and then check again.
- Switch to the tab Jobs.
- Find the {{test_event/job_event_add }} job
DEP_EVENTS/JobChainA/JobChainA
job chain and click on it. - There is an order assigned to the JobChainA. In the Job order menu press Start task immediately. This will create the EVENT event.
- Switch to the tab Job Chains.
- order now
- JobChainA will start and after successful completion will submit JOB_CHAINA_END event to the JobScheduler.
- JobChainB node CheckEvent is checking periodically, as soon as it finds the matching event , JobChainB will also start processing.
- JobChainB has a node RemoveEvent to remove the event from DB once JobChainB successfully completed processing.See the order proceeding with execution of the next step
How it works
The test_event/job_event_add
job is a dummy shell script job with a post processing part. In the post processing the com.sos.jitl.eventing.EventMonitorTaskAfter
JITL class is used to add an TEST.TEST_EVENT event.
...