View Javadoc
1   package org.argeo.slc.core.execution;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   import java.util.UUID;
6   
7   import org.argeo.slc.execution.ExecutionProcess;
8   import org.argeo.slc.execution.ExecutionStep;
9   import org.argeo.slc.execution.RealizedFlow;
10  
11  /** Canonical implementation of an {@link ExecutionProcess} as a bean. */
12  public class DefaultProcess implements ExecutionProcess {
13  	private String uuid = UUID.randomUUID().toString();
14  	private String status = ExecutionProcess.NEW;
15  
16  	private List<ExecutionStep> steps = new ArrayList<ExecutionStep>();
17  	private List<RealizedFlow> realizedFlows = new ArrayList<RealizedFlow>();
18  
19  	public String getUuid() {
20  		return uuid;
21  	}
22  
23  	public String getStatus() {
24  		return status;
25  	}
26  
27  	public void setStatus(String status) {
28  		this.status = status;
29  	}
30  
31  	public void addSteps(List<ExecutionStep> steps) {
32  		steps.addAll(steps);
33  	}
34  
35  	public List<RealizedFlow> getRealizedFlows() {
36  		return realizedFlows;
37  	}
38  
39  	public List<ExecutionStep> getSteps() {
40  		return steps;
41  	}
42  
43  	public void setSteps(List<ExecutionStep> steps) {
44  		this.steps = steps;
45  	}
46  
47  	public void setUuid(String uuid) {
48  		this.uuid = uuid;
49  	}
50  
51  	public void setRealizedFlows(List<RealizedFlow> realizedFlows) {
52  		this.realizedFlows = realizedFlows;
53  	}
54  
55  }