C. How to customize a Job ?

In the part A.3. Defining the job you have learnt that by extending AbstractJob and then overriding the abstract method jobWork(), you can describe what a job must do during its execution. In this part you will see that the extension of AbstractJob lets you also customizing your job. For instance: changing the job ID generation, the date format or how keeping an eye on some jobs with a JobObserver.

Below are the possible job customizations you will see:

  1. Job ID
  2. Date format
  3. Execution WITHOUT queue
  4. Execution WITH queue
  5. Error summary
  6. Destruction
  7. Keeping an eye on jobs

Obviously this list is not exhaustive ! Indeed, this library has been designed to leave the most freedom as possible to the developers. Only some sensitive behaviors or attributes are definitely unmodifiable. Thus if you have to modify some of the objects defined in this library for your UWS, you may do it by extending the good classes. For that you will surely need the following class diagram: