A method, and a system applying the method, for submitting an instance of
a job for execution by a processor and monitoring the job instance using
a state model, including the following steps. Fetching a job instance,
the job instance having associated job instance activate information.
Submitting the job instance to a processor. Registering the job instance
activate information with a job queuing subsystem application program
interface (API). Determining a state of the job instance, the job
instance automatically and continuously monitoring the state while the
job instance is running and when the state matches a predetermined state
value the job instance submitting a subsequent job instance to the
processor and registering the subsequent job instance activate
information with the API. Reporting, by the API, the state of the job
instance to an application. Implementing an action on the subsequent job
instance based on the reported state.