package org.argeo.slc.runtime; import java.util.ArrayList; import java.util.List; import java.util.UUID; import org.argeo.api.slc.execution.ExecutionProcess; import org.argeo.api.slc.execution.ExecutionStep; import org.argeo.api.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; } }