X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Fprocess%2FFileSlcExecutionNotifier.java;h=e1fb3e361164af397a14bac634f3d552d234c377;hb=7ffec52c590ce511b476f55be4ad123418268aa0;hp=1bf4156727032de969c9b3b2cc28db7af380636d;hpb=07315a82eb7fa5b84db60209dbf03bd94568321c;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.core/src/main/java/org/argeo/slc/core/process/FileSlcExecutionNotifier.java b/org.argeo.slc.core/src/main/java/org/argeo/slc/core/process/FileSlcExecutionNotifier.java index 1bf415672..e1fb3e361 100644 --- a/org.argeo.slc.core/src/main/java/org/argeo/slc/core/process/FileSlcExecutionNotifier.java +++ b/org.argeo.slc.core/src/main/java/org/argeo/slc/core/process/FileSlcExecutionNotifier.java @@ -13,6 +13,7 @@ import javax.xml.transform.stream.StreamResult; import org.springframework.oxm.Marshaller; import org.apache.commons.io.IOUtils; +import org.apache.commons.logging.LogFactory; import org.argeo.slc.core.SlcException; @@ -45,6 +46,11 @@ public class FileSlcExecutionNotifier implements SlcExecutionNotifier { writeSlcExecution(slcExecution); } + public void updateStatus(SlcExecution slcExecution, String oldStatus, + String newStatus) { + writeSlcExecution(slcExecution); + } + protected void writeSlcExecution(SlcExecution slcExecution) { FileWriter out = null; try { @@ -75,6 +81,5 @@ public class FileSlcExecutionNotifier implements SlcExecutionNotifier { public void setMarshaller(Marshaller marshaller) { this.marshaller = marshaller; } - - + }