- if (slcProcess instanceof SlcExecution)
- ((SlcExecution) slcProcess).getSteps().add(step);
- executionModulesManager.dispatchAddStep(slcProcess, step);
+ List<ExecutionStep> steps = new ArrayList<ExecutionStep>();
+ steps.add(step);
+ // TODO clarify why we don't dispatch steps, must be a reason
+ // dispatchAddSteps(steps);
+ slcProcess.addSteps(steps);
+ this.steps.add(step);
+ }
+
+ public void dispatchAddSteps(List<ExecutionStep> steps) {
+ ExecutionProcess slcProcess = processThread.getProcess();
+ executionModulesManager.dispatchAddSteps(slcProcess, steps);
+ }
+
+ public BlockingQueue<ExecutionStep> getSteps() {
+ return steps;