X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=org.argeo.slc.spring%2Fsrc%2Forg%2Fargeo%2Fslc%2Fcore%2Fexecution%2FDefaultProcess.java;fp=org.argeo.slc.spring%2Fsrc%2Forg%2Fargeo%2Fslc%2Fcore%2Fexecution%2FDefaultProcess.java;h=30211800fa67b5d164631e906e18949afad0980b;hb=e14154d2baba78852915304d51cbb56bed1d3d3e;hp=0000000000000000000000000000000000000000;hpb=aba0f1135009d9014c42368ecea338088e6d2be1;p=gpl%2Fargeo-slc.git 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 index 000000000..30211800f --- /dev/null +++ b/org.argeo.slc.spring/src/org/argeo/slc/core/execution/DefaultProcess.java @@ -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 steps = new ArrayList(); + private List realizedFlows = new ArrayList(); + + public String getUuid() { + return uuid; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public void addSteps(List steps) { + steps.addAll(steps); + } + + public List getRealizedFlows() { + return realizedFlows; + } + + public List getSteps() { + return steps; + } + + public void setSteps(List steps) { + this.steps = steps; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } + + public void setRealizedFlows(List realizedFlows) { + this.realizedFlows = realizedFlows; + } + +}