]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/ExecutionThread.java
Improve logging
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / core / execution / ExecutionThread.java
index c81e8b1a0d64eecfa2b13bd5a2a3349d1024ed2a..db289b4a5c6bf878788e9ea5ff7d6a8fa7d566c2 100644 (file)
@@ -1,14 +1,9 @@
 package org.argeo.slc.core.execution;
 
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.argeo.slc.execution.ExecutionFlowDescriptor;
 import org.argeo.slc.process.RealizedFlow;
-import org.argeo.slc.process.SlcExecutionNotifier;
 import org.argeo.slc.process.SlcExecutionStep;
 
 /** Thread of a single execution */
@@ -63,15 +58,8 @@ public class ExecutionThread extends Thread {
                }
        }
 
-       public void dispatchAddStep(SlcExecutionStep step) {
-               processThread.getSlcProcess().getSteps().add(step);
-               List<SlcExecutionStep> steps = new ArrayList<SlcExecutionStep>();
-               steps.add(step);
-               for (Iterator<SlcExecutionNotifier> it = processThread
-                               .getExecutionModulesManager().getSlcExecutionNotifiers()
-                               .iterator(); it.hasNext();) {
-                       it.next().addSteps(processThread.getSlcProcess(), steps);
-               }
+       private void dispatchAddStep(SlcExecutionStep step) {
+               processThread.getProcessThreadGroup().dispatchAddStep(step);
        }
 
 }