2.4.5 Sending a JP1 event at completion of the preceding job or when an event occurs (example of defining a jobnet that uses a Send JP1 event job)
Use a Send JP1 event job when defining a jobnet in which a JP1 event is sent when the preceding job completes or when an event occurs.
To execute a Send JP1 event job, you must first start the JP1/Base event service on both the sending host and the receiving host.
In the example below, a Send JP1 event job is used to define a jobnet in which a JP1 event is sent to host B if a job (job A) ends abnormally on host A. On receipt of the JP1 event, a jobnet to run after abnormal end (jobnet A) is executed on host B.
|
On host A, specify a Send JP1 event job as the succeeding job of job A. The Send JP1 event job is executed if job A ends abnormally. Therefore, set Recovery in the job Type. For details, see 2.4.6 Executing a specific process when a job ends abnormally (example of defining a jobnet that uses a recovery unit). If job A ends abnormally, a JP1 event will be sent to host B. Therefore, specify host B in Event destination host. The JP1 event ID sent to host B is 0000100B. The JP1 event ID can be set to any user-specified value.
On host B, as the start condition to execute jobnet A, define a Receive JP1 event job for receiving the JP1 event from host A. For details on start conditions, see 3.4 Defining a start condition in the manual Job Management Partner 1/Automatic Job Management System 3 Overview. In the Receive JP1 event job, set host A in Host name and specify the event ID sent from host A as 0000100B.