public void read(Element actionElement, JpdlXmlReader jpdlReader) { timerName = actionElement.attributeValue("name"); if (timerName == null) { jpdlReader.addWarning("timer name not specified on cancel timer: " + actionElement.getPath()); } }
public void read(Element actionElement, JpdlXmlReader jpdlReader) { timerName = actionElement.attributeValue("name"); if (timerName == null) { jpdlReader.addWarning("timer name not specified on cancel timer: " + actionElement.getPath()); } }
public void resolveActionReferences() { for (Iterator iter = unresolvedActionReferences.iterator(); iter.hasNext();) { Object[] unresolvedActionReference = (Object[]) iter.next(); Element actionElement = (Element) unresolvedActionReference[0]; Action refAction = processDefinition.getAction(actionElement.attributeValue("ref-name")); if (refAction == null) { addWarning("referenced action not found: " + actionElement.getPath()); } else { Action action = (Action) unresolvedActionReference[1]; action.setReferencedAction(refAction); } } }
public List readVariableAccesses(Element element) { List variableAccesses = new ArrayList(); for (Iterator iter = element.elementIterator("variable"); iter.hasNext();) { Element variableElement = (Element) iter.next(); // name String variableName = variableElement.attributeValue("name"); if (variableName == null) { addWarning("variable name not specified: " + variableElement.getPath()); } // access String access = variableElement.attributeValue("access", "read,write"); // mapped name String mappedName = variableElement.attributeValue("mapped-name"); // variable access variableAccesses.add(new VariableAccess(variableName, access, mappedName)); } return variableAccesses; }
public void resolveActionReferences() { for (Iterator iter = unresolvedActionReferences.iterator(); iter.hasNext();) { Object[] unresolvedActionReference = (Object[]) iter.next(); Element actionElement = (Element) unresolvedActionReference[0]; Action refAction = processDefinition.getAction(actionElement.attributeValue("ref-name")); if (refAction == null) { addWarning("referenced action not found: " + actionElement.getPath()); } else { Action action = (Action) unresolvedActionReference[1]; action.setReferencedAction(refAction); } } }
public void read(Element actionElement, JpdlXmlReader jpdlReader) { timerName = actionElement.attributeValue("name"); timerAction = jpdlReader.readSingleAction(actionElement); dueDate = actionElement.attributeValue("duedate"); if (dueDate == null) { jpdlReader.addWarning("due date not specified on create timer: " + actionElement.getPath()); } repeat = actionElement.attributeValue("repeat"); if (jpdlReader.readBoolean(repeat, false)) { repeat = dueDate; } transitionName = actionElement.attributeValue("transition"); if (transitionName != null && repeat != null) { repeat = null; jpdlReader.addWarning("ignoring repeat on create timer with transition: " + actionElement.getPath()); } }
public List readVariableAccesses(Element element) { List variableAccesses = new ArrayList(); for (Iterator iter = element.elementIterator("variable"); iter.hasNext();) { Element variableElement = (Element) iter.next(); // name String variableName = variableElement.attributeValue("name"); if (variableName == null) { addWarning("variable name not specified: " + variableElement.getPath()); } // access String access = variableElement.attributeValue("access", "read,write"); // mapped name String mappedName = variableElement.attributeValue("mapped-name"); // variable access variableAccesses.add(new VariableAccess(variableName, access, mappedName)); } return variableAccesses; }
public void read(Element actionElement, JpdlXmlReader jpdlReader) { timerName = actionElement.attributeValue("name"); timerAction = jpdlReader.readSingleAction(actionElement); dueDate = actionElement.attributeValue("duedate"); if (dueDate == null) { jpdlReader.addWarning("due date not specified on create timer: " + actionElement.getPath()); } repeat = actionElement.attributeValue("repeat"); if (jpdlReader.readBoolean(repeat, false)) { repeat = dueDate; } transitionName = actionElement.attributeValue("transition"); if (transitionName != null && repeat != null) { repeat = null; jpdlReader.addWarning("ignoring repeat on create timer with transition: " + actionElement.getPath()); } }
public void read(Element delegateElement, JpdlXmlReader jpdlReader) { processDefinition = jpdlReader.getProcessDefinition(); className = delegateElement.attributeValue("class"); if (className == null) { jpdlReader.addWarning("no class specified in delegation: " + delegateElement.getPath()); } configType = delegateElement.attributeValue("config-type"); if (delegateElement.hasContent()) { configuration = jpdlReader.writeElementContent(delegateElement); } }
public void read(Element delegateElement, JpdlXmlReader jpdlReader) { processDefinition = jpdlReader.getProcessDefinition(); className = delegateElement.attributeValue("class"); if (className == null) { jpdlReader.addWarning("no class specified in delegation: " + delegateElement.getPath()); } configType = delegateElement.attributeValue("config-type"); if (delegateElement.hasContent()) { configuration = jpdlReader.writeElementContent(delegateElement); } }
public void verifySwimlaneAssignments() { TaskMgmtDefinition taskMgmtDefinition = processDefinition.getTaskMgmtDefinition(); Map swimlanes; if (taskMgmtDefinition != null && (swimlanes = taskMgmtDefinition.getSwimlanes()) != null) { Task startTask = taskMgmtDefinition.getStartTask(); Swimlane startTaskSwimlane = startTask != null ? startTask.getSwimlane() : null; for (Iterator iter = swimlanes.values().iterator(); iter.hasNext();) { Swimlane swimlane = (Swimlane) iter.next(); if (swimlane.getAssignmentDelegation() == null && swimlane != startTaskSwimlane) { addWarning("swimlane '" + swimlane.getName() + "' does not have an assignment"); } } } }
public void verifySwimlaneAssignments() { TaskMgmtDefinition taskMgmtDefinition = processDefinition.getTaskMgmtDefinition(); Map swimlanes; if (taskMgmtDefinition != null && (swimlanes = taskMgmtDefinition.getSwimlanes()) != null) { Task startTask = taskMgmtDefinition.getStartTask(); Swimlane startTaskSwimlane = startTask != null ? startTask.getSwimlane() : null; for (Iterator iter = swimlanes.values().iterator(); iter.hasNext();) { Swimlane swimlane = (Swimlane) iter.next(); if (swimlane.getAssignmentDelegation() == null && swimlane != startTaskSwimlane) { addWarning("swimlane '" + swimlane.getName() + "' does not have an assignment"); } } } }
String swimlaneName = swimlaneElement.attributeValue("name"); if (swimlaneName == null) { addWarning("unnamed swimlane detected"); Task startTask = taskMgmtDefinition.getStartTask(); if (startTask == null || startTask.getSwimlane() != swimlane) { addWarning("swimlane '" + swimlaneName + "' does not have an assignment");
String swimlaneName = swimlaneElement.attributeValue("name"); if (swimlaneName == null) { addWarning("unnamed swimlane detected"); Task startTask = taskMgmtDefinition.getStartTask(); if (startTask == null || startTask.getSwimlane() != swimlane) { addWarning("swimlane '" + swimlaneName + "' does not have an assignment");
public void read(Element actionElement, JpdlXmlReader jpdlReader) { String expression = actionElement.attributeValue("expression"); if (expression != null) { actionExpression = expression; } else if (actionElement.attribute("ref-name") != null) { jpdlReader.addUnresolvedActionReference(actionElement, this); } else if (actionElement.attribute("class") != null) { actionDelegation = new Delegation(); actionDelegation.read(actionElement, jpdlReader); } else { jpdlReader.addWarning("action does not have class nor ref-name attribute: " + actionElement.getPath()); } }
public void read(Element actionElement, JpdlXmlReader jpdlReader) { String expression = actionElement.attributeValue("expression"); if (expression != null) { actionExpression = expression; } else if (actionElement.attribute("ref-name") != null) { jpdlReader.addUnresolvedActionReference(actionElement, this); } else if (actionElement.attribute("class") != null) { actionDelegation = new Delegation(); actionDelegation.read(actionElement, jpdlReader); } else { jpdlReader.addWarning("action does not have class nor ref-name attribute: " + actionElement.getPath()); } }
addWarning("node '" + node.getFullyQualifiedName() + "' has a transition without a 'to'-attribute"); Node to = parent.findNode(toName); if (to == null) { addWarning("failed to resolve destination '" + toName + "' of transition '" + transitionName + "' leaving from " + node);
addWarning("node '" + node.getFullyQualifiedName() + "' has a transition without a 'to'-attribute"); Node to = parent.findNode(toName); if (to == null) { addWarning("failed to resolve destination '" + toName + "' of transition '" + transitionName + "' leaving from " + node);
Swimlane swimlane = taskMgmtDefinition.getSwimlane(swimlaneName); if (swimlane == null) { addWarning("task references unknown swimlane: " + taskElement.getPath());
Swimlane swimlane = taskMgmtDefinition.getSwimlane(swimlaneName); if (swimlane == null) { addWarning("task references unknown swimlane: " + taskElement.getPath());