X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.support.ws.client%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fws%2Fprocess%2FWebServiceSlcExecutionNotifier.java;fp=runtime%2Forg.argeo.slc.support.ws.client%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fws%2Fprocess%2FWebServiceSlcExecutionNotifier.java;h=133033bd1bc6bc16fb86136bf937f4dad15b054a;hb=4acaa7b3eca85263027b1a8875cf0b1971a09c7b;hp=f6b9dee14d425c4cf488900a550c0b42cc94d7ff;hpb=0e2ff188c2e8ffac85739cccc3925e8bd82d7be9;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.support.ws.client/src/main/java/org/argeo/slc/ws/process/WebServiceSlcExecutionNotifier.java b/runtime/org.argeo.slc.support.ws.client/src/main/java/org/argeo/slc/ws/process/WebServiceSlcExecutionNotifier.java index f6b9dee14..133033bd1 100644 --- a/runtime/org.argeo.slc.support.ws.client/src/main/java/org/argeo/slc/ws/process/WebServiceSlcExecutionNotifier.java +++ b/runtime/org.argeo.slc.support.ws.client/src/main/java/org/argeo/slc/ws/process/WebServiceSlcExecutionNotifier.java @@ -23,6 +23,7 @@ import org.apache.commons.logging.LogFactory; import org.argeo.slc.msg.process.SlcExecutionRequest; import org.argeo.slc.msg.process.SlcExecutionStatusRequest; import org.argeo.slc.msg.process.SlcExecutionStepsRequest; +import org.argeo.slc.execution.ExecutionStep; import org.argeo.slc.execution.ExecutionProcess; import org.argeo.slc.process.SlcExecution; import org.argeo.slc.process.SlcExecutionNotifier; @@ -40,7 +41,7 @@ public class WebServiceSlcExecutionNotifier implements SlcExecutionNotifier { private Boolean cannotConnect = false; public void newExecution(ExecutionProcess process) { - SlcExecution slcExecution= (SlcExecution)process; + SlcExecution slcExecution = (SlcExecution) process; if (cannotConnect) return; @@ -78,7 +79,7 @@ public class WebServiceSlcExecutionNotifier implements SlcExecutionNotifier { public void updateStatus(ExecutionProcess process, String oldStatus, String newStatus) { - SlcExecution slcExecution= (SlcExecution)process; + SlcExecution slcExecution = (SlcExecution) process; if (cannotConnect) return; @@ -97,20 +98,13 @@ public class WebServiceSlcExecutionNotifier implements SlcExecutionNotifier { } public void addSteps(ExecutionProcess process, - List additionalSteps) { - SlcExecution slcExecution= (SlcExecution)process; + List additionalSteps) { + SlcExecution slcExecution = (SlcExecution) process; if (cannotConnect) return; - SlcExecutionStepsRequest req = new SlcExecutionStepsRequest(); - req.setSlcExecutionUuid(slcExecution.getUuid()); - req.setSteps(additionalSteps); - if (log.isTraceEnabled()) { - for (SlcExecutionStep step : additionalSteps) { - log.trace("Step " + step.getUuid() + ": " + step); - } - } - + SlcExecutionStepsRequest req = new SlcExecutionStepsRequest( + slcExecution.getUuid(), additionalSteps); try { WebServiceUtils.marshalSendAndReceive(template, req); if (log.isTraceEnabled())