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;h=f6b9dee14d425c4cf488900a550c0b42cc94d7ff;hb=2491290303da15a1ff1f8b56348ad06481646a0e;hp=58f9a10be86b157a34bbb59638571d2af9d53d6b;hpb=98500115f04e889f5caade4e8e72dc11d2d76b84;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 58f9a10be..f6b9dee14 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 @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2010 Mathieu Baudier + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.argeo.slc.ws.process; import java.util.List; @@ -7,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.ExecutionProcess; import org.argeo.slc.process.SlcExecution; import org.argeo.slc.process.SlcExecutionNotifier; import org.argeo.slc.process.SlcExecutionStep; @@ -22,7 +39,8 @@ public class WebServiceSlcExecutionNotifier implements SlcExecutionNotifier { private Boolean cannotConnect = false; - public void newExecution(SlcExecution slcExecution) { + public void newExecution(ExecutionProcess process) { + SlcExecution slcExecution= (SlcExecution)process; if (cannotConnect) return; @@ -58,8 +76,9 @@ public class WebServiceSlcExecutionNotifier implements SlcExecutionNotifier { } } - public void updateStatus(SlcExecution slcExecution, String oldStatus, + public void updateStatus(ExecutionProcess process, String oldStatus, String newStatus) { + SlcExecution slcExecution= (SlcExecution)process; if (cannotConnect) return; @@ -77,8 +96,9 @@ public class WebServiceSlcExecutionNotifier implements SlcExecutionNotifier { } } - public void addSteps(SlcExecution slcExecution, + public void addSteps(ExecutionProcess process, List additionalSteps) { + SlcExecution slcExecution= (SlcExecution)process; if (cannotConnect) return;