- if (msg.getNewStatus().equals(SlcExecution.STATUS_FINISHED))
- slcExecution.getSteps().add(
- new SlcExecutionStep(SlcExecutionStep.TYPE_END,
- "Process finished."));
+ if (msg.getNewStatus().equals(SlcExecution.STATUS_FINISHED)) {
+ List<SlcExecutionStep> steps = new ArrayList<SlcExecutionStep>();
+ steps.add(new SlcExecutionStep(SlcExecutionStep.END,
+ "Process finished."));
+ slcExecutionDao.addSteps(slcExecution.getUuid(), steps);
+ }