X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Fexecution%2FExecutionThread.java;h=db289b4a5c6bf878788e9ea5ff7d6a8fa7d566c2;hb=17ffc9fdb8f3a490881e540db8ff81655308233e;hp=c81e8b1a0d64eecfa2b13bd5a2a3349d1024ed2a;hpb=6ae0527d7e2999cf8d943c7bb11070fbd3d1248a;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/ExecutionThread.java b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/ExecutionThread.java index c81e8b1a0..db289b4a5 100644 --- a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/ExecutionThread.java +++ b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/ExecutionThread.java @@ -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 steps = new ArrayList(); - steps.add(step); - for (Iterator it = processThread - .getExecutionModulesManager().getSlcExecutionNotifiers() - .iterator(); it.hasNext();) { - it.next().addSteps(processThread.getSlcProcess(), steps); - } + private void dispatchAddStep(SlcExecutionStep step) { + processThread.getProcessThreadGroup().dispatchAddStep(step); } }