As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Attribute 'operation' is not allowed to appear in element 'sendTask'. | com/workflow/process/EmailTest.bpmn20.xml | line 21 | column 90 One of the attributes 'type' or 'operation' is mandatory on sendTask.
I've created a Jira for it, because I suspect a bug: http://jira.codehaus.org/browse/ACT-503
<br> public void parseSendTask(Element sendTaskElement, ScopeImpl scope) {<br> ActivityImpl activity = parseAndCreateActivityOnScopeElement(sendTaskElement, scope);<br><br> System.out.println(BpmnParser.ACTIVITI_BPMN_EXTENSIONS_NS);<br> <br> // for e-mail<br> String type = sendTaskElement.attributeNS(BpmnParser.ACTIVITI_BPMN_EXTENSIONS_NS, "type");<br>// String type = "mail";<br> // for web service<br> String implementation = sendTaskElement.attribute("implementation");<br> String operationRef = this.resolveName(sendTaskElement.attribute("operationRef"));<br><br> // for e-mail<br> if (type != null) {<br> if (type.equalsIgnoreCase("mail")) {<br> parseEmailServiceTask(activity, sendTaskElement, parseFieldDeclarations(sendTaskElement));<br> } else {<br> addError("Invalid usage of type attribute: '" + type + "'", sendTaskElement);<br> }<br> <br> // for web service<br> } else if (implementation != null && operationRef != null && implementation.equalsIgnoreCase("##WebService")) {<br> if (!this.operations.containsKey(operationRef)) {<br> addError(operationRef + " does not exist" , sendTaskElement);<br> } else {<br> Operation operation = this.operations.get(operationRef);<br> WebServiceActivityBehavior webServiceActivityBehavior = new WebServiceActivityBehavior(operation);<br> <br> Element ioSpecificationElement = sendTaskElement.element("ioSpecification");<br> if (ioSpecificationElement != null) {<br> IOSpecification ioSpecification = this.parseIOSpecification(ioSpecificationElement);<br> webServiceActivityBehavior.setIoSpecification(ioSpecification);<br> }<br> <br> for (Element dataAssociationElement : sendTaskElement.elements("dataInputAssociation")) {<br> AbstractDataInputAssociation dataAssociation = this.parseDataInputAssociation(dataAssociationElement);<br> webServiceActivityBehavior.addDataInputAssociation(dataAssociation);<br> }<br> <br> for (Element dataAssociationElement : sendTaskElement.elements("dataOutputAssociation")) {<br> AbstractDataOutputAssociation dataAssociation = this.parseDataOutputAssociation(dataAssociationElement);<br> webServiceActivityBehavior.addDataOutputAssociation(dataAssociation);<br> }<br><br> activity.setActivityBehavior(webServiceActivityBehavior);<br> }<br> } else {<br> addError("One of the attributes 'type' or 'operation' is mandatory on sendTask.", sendTaskElement);<br> }<br> <br> parseExecutionListenersOnScope(sendTaskElement, activity);<br><br> for (BpmnParseListener parseListener: parseListeners) {<br> parseListener.parseSendTask(sendTaskElement, scope, activity);<br> }<br> }<br>