]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.ws.client/src/main/java/org/argeo/slc/ws/process/WebServiceSlcExecutionNotifier.java
Improve logging
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.ws.client / src / main / java / org / argeo / slc / ws / process / WebServiceSlcExecutionNotifier.java
index f6b9dee14d425c4cf488900a550c0b42cc94d7ff..133033bd1bc6bc16fb86136bf937f4dad15b054a 100644 (file)
@@ -23,6 +23,7 @@ import org.apache.commons.logging.LogFactory;
 import org.argeo.slc.msg.process.SlcExecutionRequest;\r
 import org.argeo.slc.msg.process.SlcExecutionStatusRequest;\r
 import org.argeo.slc.msg.process.SlcExecutionStepsRequest;\r
+import org.argeo.slc.execution.ExecutionStep;\r
 import org.argeo.slc.execution.ExecutionProcess;\r
 import org.argeo.slc.process.SlcExecution;\r
 import org.argeo.slc.process.SlcExecutionNotifier;\r
@@ -40,7 +41,7 @@ public class WebServiceSlcExecutionNotifier implements SlcExecutionNotifier {
        private Boolean cannotConnect = false;\r
 \r
        public void newExecution(ExecutionProcess process) {\r
-               SlcExecution slcExecution= (SlcExecution)process;\r
+               SlcExecution slcExecution = (SlcExecution) process;\r
                if (cannotConnect)\r
                        return;\r
 \r
@@ -78,7 +79,7 @@ public class WebServiceSlcExecutionNotifier implements SlcExecutionNotifier {
 \r
        public void updateStatus(ExecutionProcess process, String oldStatus,\r
                        String newStatus) {\r
-               SlcExecution slcExecution= (SlcExecution)process;\r
+               SlcExecution slcExecution = (SlcExecution) process;\r
                if (cannotConnect)\r
                        return;\r
 \r
@@ -97,20 +98,13 @@ public class WebServiceSlcExecutionNotifier implements SlcExecutionNotifier {
        }\r
 \r
        public void addSteps(ExecutionProcess process,\r
-                       List<SlcExecutionStep> additionalSteps) {\r
-               SlcExecution slcExecution= (SlcExecution)process;\r
+                       List<ExecutionStep> additionalSteps) {\r
+               SlcExecution slcExecution = (SlcExecution) process;\r
                if (cannotConnect)\r
                        return;\r
 \r
-               SlcExecutionStepsRequest req = new SlcExecutionStepsRequest();\r
-               req.setSlcExecutionUuid(slcExecution.getUuid());\r
-               req.setSteps(additionalSteps);\r
-               if (log.isTraceEnabled()) {\r
-                       for (SlcExecutionStep step : additionalSteps) {\r
-                               log.trace("Step " + step.getUuid() + ": " + step);\r
-                       }\r
-               }\r
-\r
+               SlcExecutionStepsRequest req = new SlcExecutionStepsRequest(\r
+                               slcExecution.getUuid(), additionalSteps);\r
                try {\r
                        WebServiceUtils.marshalSendAndReceive(template, req);\r
                        if (log.isTraceEnabled())\r