]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/msg/process/SlcExecutionStepsRequest.java
Improve logging
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / msg / process / SlcExecutionStepsRequest.java
index 7492338ef340fef27e09b7981ac7cb7ef81a3329..5ae4727fa799f495a2bb0cac50a23f9402cd6dbe 100644 (file)
@@ -19,8 +19,8 @@ package org.argeo.slc.msg.process;
 import java.io.Serializable;\r
 import java.util.ArrayList;\r
 import java.util.List;\r
-import java.util.Vector;\r
 \r
+import org.argeo.slc.execution.ExecutionStep;\r
 import org.argeo.slc.process.SlcExecutionStep;\r
 \r
 public class SlcExecutionStepsRequest implements Serializable {\r
@@ -33,16 +33,17 @@ public class SlcExecutionStepsRequest implements Serializable {
        }\r
 \r
        public SlcExecutionStepsRequest(String slcExecutionUuid,\r
-                       List<SlcExecutionStep> steps) {\r
+                       List<ExecutionStep> steps) {\r
                this.slcExecutionUuid = slcExecutionUuid;\r
-               this.steps = steps;\r
+               for (ExecutionStep step : steps) {\r
+                       this.steps.add((SlcExecutionStep) step);\r
+               }\r
        }\r
 \r
-       public SlcExecutionStepsRequest(String slcExecutionUuid,\r
-                       SlcExecutionStep step) {\r
+       public SlcExecutionStepsRequest(String slcExecutionUuid, ExecutionStep step) {\r
                this.slcExecutionUuid = slcExecutionUuid;\r
-               List<SlcExecutionStep> steps = new Vector<SlcExecutionStep>();\r
-               steps.add(step);\r
+               List<SlcExecutionStep> steps = new ArrayList<SlcExecutionStep>();\r
+               steps.add((SlcExecutionStep) step);\r
                this.steps = steps;\r
        }\r
 \r