package org.argeo.slc.core.process;\r
\r
import java.util.List;\r
+import java.util.Map;\r
+import java.util.TreeMap;\r
import java.util.Vector;\r
\r
public class SlcExecution {\r
\r
private String uuid;\r
private String host;\r
- private String path;\r
+ private String user;\r
private String type;\r
private String status;\r
+ private Map<String, String> attributes = new TreeMap<String, String>();\r
\r
private List<SlcExecutionStep> steps = new Vector<SlcExecutionStep>();\r
\r
this.host = host;\r
}\r
\r
- public String getPath() {\r
- return path;\r
+ public String getUser() {\r
+ return user;\r
}\r
\r
- public void setPath(String path) {\r
- this.path = path;\r
+ public void setUser(String path) {\r
+ this.user = path;\r
}\r
\r
public String getType() {\r
this.status = status;\r
}\r
\r
+ public SlcExecutionStep currentStep() {\r
+ if (steps.size() > 0)\r
+ return steps.get(steps.size() - 1);\r
+ else\r
+ return null;\r
+ }\r
+\r
@Override\r
public boolean equals(Object obj) {\r
if (obj instanceof SlcExecution) {\r
return getUuid().hashCode();\r
}\r
\r
+ public Map<String, String> getAttributes() {\r
+ return attributes;\r
+ }\r
+\r
+ public void setAttributes(Map<String, String> attributes) {\r
+ this.attributes = attributes;\r
+ }\r
}\r