diff --git a/framework/service/src/org/ofbiz/service/job/GenericServiceJob.java b/framework/service/src/org/ofbiz/service/job/GenericServiceJob.java index 19e5923816..d26cf7fe5a 100644 --- a/framework/service/src/org/ofbiz/service/job/GenericServiceJob.java +++ b/framework/service/src/org/ofbiz/service/job/GenericServiceJob.java @@ -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 result) throws InvalidJobException { if (currentState != State.RUNNING) { diff --git a/framework/service/src/org/ofbiz/service/job/Job.java b/framework/service/src/org/ofbiz/service/job/Job.java index 85c2d34af2..f600d075c3 100644 --- a/framework/service/src/org/ofbiz/service/job/Job.java +++ b/framework/service/src/org/ofbiz/service/job/Job.java @@ -20,6 +20,10 @@ package org.ofbiz.service.job; /** * A scheduled job. + *

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.

*/ public interface Job {