Project: springxd
Issue XD-1081: Create documentation on the lifcycle of a job in XD
This should go in the first section of the Batch Job documentation. Here is a rough suggestion The lifecycle of a job in XD. 1. Register a job module with the MoudleRegistry by putting a XML/jar files in the $XD_HOME/modules/jobs directory. 2. Create a job definition from a job module by providing a name and properties that apply to all job instances can be configured at this point. The job is not yet deployed 3. Deploy the job to an xd-container. A job instance can not be created by sending a message to a job queue that contains optional runtime job parameters 4. Launch a job by sending a message to the job queue with job parametres. A Job Instance is created, representing a specific run of the job. A Job Instance is the Job Definition plus the runtime job parameters. You can query for the Job Instances associated with a given job name 5. The job is executed creating a Job Exection object that captures the success or failure of the job. You can query for the Job Executions associated with a given job name. 6. Undeploy a job. This removes the job from xd-container.
Story points: 1