]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/DefaultProcess.java
Ignore files
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / core / execution / DefaultProcess.java
index 06ff4d2f7048404a376a6c3ec543d7bb86ba7198..30211800fa67b5d164631e906e18949afad0980b 100644 (file)
@@ -8,11 +8,13 @@ import org.argeo.slc.execution.ExecutionProcess;
 import org.argeo.slc.execution.ExecutionStep;
 import org.argeo.slc.execution.RealizedFlow;
 
+/** Canonical implementation of an {@link ExecutionProcess} as a bean. */
 public class DefaultProcess implements ExecutionProcess {
        private String uuid = UUID.randomUUID().toString();
-       private String status;
+       private String status = ExecutionProcess.NEW;
 
        private List<ExecutionStep> steps = new ArrayList<ExecutionStep>();
+       private List<RealizedFlow> realizedFlows = new ArrayList<RealizedFlow>();
 
        public String getUuid() {
                return uuid;
@@ -31,7 +33,7 @@ public class DefaultProcess implements ExecutionProcess {
        }
 
        public List<RealizedFlow> getRealizedFlows() {
-               return null;
+               return realizedFlows;
        }
 
        public List<ExecutionStep> getSteps() {
@@ -46,4 +48,8 @@ public class DefaultProcess implements ExecutionProcess {
                this.uuid = uuid;
        }
 
+       public void setRealizedFlows(List<RealizedFlow> realizedFlows) {
+               this.realizedFlows = realizedFlows;
+       }
+
 }