/** * Process StepFinishedEvent. Change last added to stepStorage step * and add it as child of previous step. * * @param event to process */ public void fire(StepFinishedEvent event) { Step step = stepStorage.adopt(); event.process(step); notifier.fire(event); }
public void fire(StepFinishedEvent event) { Step step = stepStorage.pollLast(); event.process(step); stepStorage.getLast().getSteps().add(step); }