]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.spring/src/org/argeo/slc/core/execution/DefaultProcess.java
Rename SLC Core into SLC Spring.
[gpl/argeo-slc.git] / org.argeo.slc.spring / src / org / argeo / slc / core / execution / DefaultProcess.java
diff --git a/org.argeo.slc.spring/src/org/argeo/slc/core/execution/DefaultProcess.java b/org.argeo.slc.spring/src/org/argeo/slc/core/execution/DefaultProcess.java
new file mode 100644 (file)
index 0000000..3021180
--- /dev/null
@@ -0,0 +1,55 @@
+package org.argeo.slc.core.execution;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.UUID;
+
+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 = ExecutionProcess.NEW;
+
+       private List<ExecutionStep> steps = new ArrayList<ExecutionStep>();
+       private List<RealizedFlow> realizedFlows = new ArrayList<RealizedFlow>();
+
+       public String getUuid() {
+               return uuid;
+       }
+
+       public String getStatus() {
+               return status;
+       }
+
+       public void setStatus(String status) {
+               this.status = status;
+       }
+
+       public void addSteps(List<ExecutionStep> steps) {
+               steps.addAll(steps);
+       }
+
+       public List<RealizedFlow> getRealizedFlows() {
+               return realizedFlows;
+       }
+
+       public List<ExecutionStep> getSteps() {
+               return steps;
+       }
+
+       public void setSteps(List<ExecutionStep> steps) {
+               this.steps = steps;
+       }
+
+       public void setUuid(String uuid) {
+               this.uuid = uuid;
+       }
+
+       public void setRealizedFlows(List<RealizedFlow> realizedFlows) {
+               this.realizedFlows = realizedFlows;
+       }
+
+}