This example has three Job Chains.
Each job chain having its own set of jobs as shown below.
When Job_Chain1 has finished on host1 Job_Chain2 on host2 should start. When Job_Chain2 on host2 has finished Job_Chain3 on host1 should start.
How it works:
- The finish job in Job_Chain1 creates an event for the event processor on host1.
- The event handler creates an order for Job_Chain2 on host 2 when the event "jobchain1" arrives. Than the event will "jobchain1" be deleted
- The finish job in Job_Chain2 creates an event for the event processor on host1.
- The event handler creates an order for Job_Chain3 on host 1 when the event "jobchain2" arrives. Than the event "jobchain2" will be deleted
The event handler
You can download the source for this example from here.
In the zip, you find two live folders, one for host1 and one for host2.
There is also a event handler for host1. Please copy this the config/events and configure the actual host names or ip addresses.