@SuppressWarnings("unchecked") private void writeSLARegistrationForAllActions( String wfXml, String user, String group, String strConf) throws CommandException { try { Element eWfJob = XmlUtils.parseXml(wfXml); Configuration conf = new XConfiguration(new StringReader(strConf)); for (Element action : (List<Element>) eWfJob.getChildren("action", eWfJob.getNamespace())) { Element eSla = action.getChild("info", Namespace.getNamespace(SchemaService.SLA_NAME_SPACE_URI)); if (eSla != null) { String slaXml = resolveSla(eSla, conf); eSla = XmlUtils.parseXml(slaXml); String actionId = Services.get() .get(UUIDService.class) .generateChildId(jobId, action.getAttributeValue("name") + ""); SLADbXOperations.writeSlaRegistrationEvent( eSla, actionId, SlaAppType.WORKFLOW_ACTION, user, group); } } } catch (Exception e) { throw new CommandException(ErrorCode.E1007, "workflow:Actions " + jobId, e); } }