]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/ExecutionThread.java
Add resource as stdin
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / core / execution / ExecutionThread.java
index 08dfca28b7df73eea616c779e07caa436bce7734..3c85055f816dfa8efcda98a93677085e170ef27e 100644 (file)
@@ -28,6 +28,13 @@ public class ExecutionThread extends Thread {
        }
 
        public void run() {
+               if (getContextClassLoader() != null) {
+                       if (log.isTraceEnabled())
+                               log.debug("Context class loader set to "
+                                               + getContextClassLoader());
+               }
+
+               // Retrieve execution flow descriptor
                ExecutionFlowDescriptor executionFlowDescriptor = realizedFlow
                                .getFlowDescriptor();
                String flowName = executionFlowDescriptor.getName();
@@ -43,6 +50,7 @@ public class ExecutionThread extends Thread {
                        log.error(msg, e);
                        dispatchAddStep(processThread.getSlcProcess(),
                                        new SlcExecutionStep(msg + " " + e.getMessage()));
+                       processThread.notifyError();
                } finally {
                        processThread.flowCompleted();
                        dispatchAddStep(processThread.getSlcProcess(),
@@ -62,5 +70,4 @@ public class ExecutionThread extends Thread {
                        it.next().addSteps(slcExecution, steps);
                }
        }
-
 }