Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

JobScheduler provides a solution to set off events and to handle these events on an active instance of the eventservice event service JobScheduler. However it is also possible to check for events in job chains and then conditionally proceed.
You find the complete documentation in scheduler_events.pdf - Documentation. In particular, how to define event handlers with JOE is described in chapter XML Event Handlers (However this should not be needed for the actual example here.)
To demonstrate how to create an event and wait for it in a job chain we will draw up a simple scenario:

...

Instructions

  • Unzip all files of test_event.zip into the ./config folder of your active instance of the eventservice event service JobScheduler installation. After unzipping you will have all the objects needed to run the example in the live/test_events subfolder.
  • Open the JS operations gui for the workload JobScheduler in your browser using http://scheduler_host:scheduler_port
  • Find the test_event/job chain_example_wait_for_event job chain and click on it.
  • Click in the job chain menu on "add order"
  • You see the order will run until the step 3 is reached. As the EVENT 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 chain and click on it.
  • In the Job menu press Start task immediately. This will create the EVENT event.
  • Switch to the tab Job Chains.
  • See the order proceeding with execution of the next step

...

You also can specify how to handle the existing or not existing of events with the paramters parameters handle_existing_as="error|success" or handle_not_existing_as="error|success"

...

After adding the event, the order will proceed to the next step and the event will be removed.

Related Downloads