- SlcExecutionStepsRequest msg = (SlcExecutionStepsRequest) requestObject;
- String uuid = msg.getSlcExecutionUuid();
- SlcExecution slcExecution = slcExecutionDao.getSlcExecution(uuid);
-
- slcExecution.getSteps().addAll(msg.getSteps());
-
- slcExecutionDao.update(slcExecution);
- log.debug("Added " + msg.getSteps().size()
- + "steps to SlcExecution with uuid " + slcExecution.getUuid());
- return null;
+ String uuid = null;
+ try {
+ SlcExecutionStepsRequest msg = (SlcExecutionStepsRequest) requestObject;
+ uuid = msg.getSlcExecutionUuid();
+ if (log.isTraceEnabled()) {
+ log.trace("Trying to add additional steps to SLC execution #"
+ + uuid + ":");
+ for (SlcExecutionStep step : msg.getSteps()) {
+ log.trace("Step " + step.getUuid() + " (in SLC execution #"
+ + uuid + ")");
+ }
+ log.trace("Adding " + msg.getSteps().size()
+ + " steps to SLC execution #" + uuid);
+ }
+
+ slcExecutionDao.addSteps(uuid, msg.getSteps());
+ return null;
+ } catch (Exception e) {
+ log.error("Could not update SLC execution #" + uuid
+ + " with additional steps", e);
+ throw e;
+ }