X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=runtime%2Forg.argeo.slc.specs%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fexecution%2FExecutionProcess.java;h=be70b0955d01738287db5967e649889e0cc1a7b9;hb=24d560ee846fda5d7954d44f83cb22ab449dbe61;hp=58393dd9007fd243d29e9d7dd3169988d96cad10;hpb=a181e3d059185a9dc108e81f38c66f48f4e4aac8;p=gpl%2Fargeo-slc.git
diff --git a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionProcess.java b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionProcess.java
index 58393dd90..be70b0955 100644
--- a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionProcess.java
+++ b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/ExecutionProcess.java
@@ -6,10 +6,15 @@ package org.argeo.slc.execution;
* during and after the execution actually took place, providing an entry point
* for the definition of executions, their monitoring (e.g. logging) and
* tracking. A process can be distributed or parallelized.
+ *
+ * NEW => INITIALIZED => SCHEDULED => RUNNING
+ * RUNNING => {COMPLETED | ERROR | KILLED}
+ * {COMPLETED | ERROR | KILLED} => PURGED
+ * UNKOWN : this is a bug if this status occurs
*/
public interface ExecutionProcess {
/** The process is not yet usable. */
- public final static String UNINITIALIZED = "UNINITIALIZED";
+ public final static String NEW = "NEW";
/** The process is usable but not yet scheduled to run. */
public final static String INITIALIZED = "INITIALIZED";
/** The process is usable and scheduled to run, but not yet running. */
@@ -20,6 +25,11 @@ public interface ExecutionProcess {
public final static String COMPLETED = "COMPLETED";
/** The process failed because of an unexpected error. */
public final static String ERROR = "ERROR";
+ /** The process was killed explicitly or through a crash. */
+ public final static String KILLED = "KILLED";
+ /** The status cannot be retrieved (probably because of unexpected errors). */
+ public final static String UNKOWN = "UNKOWN";
+
/**
* Only a reference to the process has been kept, all monitoring data such
* as logs have been purged.