Some JavaDocs to help explain the Job behavior.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369491 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -97,7 +97,7 @@ public class GenericServiceJob extends AbstractJob implements Serializable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Method is called after the service has finished.
|
||||
* Method is called after the service has finished successfully.
|
||||
*/
|
||||
protected void finish(Map<String, Object> result) throws InvalidJobException {
|
||||
if (currentState != State.RUNNING) {
|
||||
|
||||
@@ -20,6 +20,10 @@ package org.ofbiz.service.job;
|
||||
|
||||
/**
|
||||
* A scheduled job.
|
||||
* <p>A job starts out in the created state. When the job is queued for execution, it
|
||||
* transitions to the queued state. While the job is executing it is in the running state.
|
||||
* When the job execution ends, it transitions to the finished or failed state - depending
|
||||
* on the outcome of the task that was performed.</p>
|
||||
*/
|
||||
public interface Job {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user