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.
Exclusive Gateway 'exclusivegateway3' has outgoing sequence flow 'XXX' which is the default flow but has a condition too. | diagrams/XXX.bpmn20.xml | line 0 | column 0
com.activiti.engine.impl.parser.BpmnParser.validateExclusiveGateway(ActivityImpl activity)
<br>/**<br> * Remove 'default' attribute on 'exclusiveGateway' nodes.<br> * @param bytes xml binary data<br> * @return correct binary data<br> * @throws SAXException exception<br> * @throws IOException exception<br> * @throws ParserConfigurationException exception<br> */<br> private byte[] removeExclusiveGatewaysDefaultAttribute(byte[] bytes) throws SAXException, IOException, ParserConfigurationException {<br> ByteArrayInputStream inputStream = new ByteArrayInputStream(bytes);<br> Reader reader = new InputStreamReader(inputStream, "UTF-8");<br> InputSource is = new InputSource(reader);<br> is.setEncoding("UTF-8");<br> <br> DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder(); <br> Document document = db.parse(is);<br> <br> NodeList exclusiveGateways = document.getElementsByTagName("exclusiveGateway");<br> for (int i = 0; i < exclusiveGateways.getLength(); i++) {<br> Node node = exclusiveGateways.item(i);<br> if (node.getAttributes().getNamedItem("default") != null) {<br> node.getAttributes().removeNamedItem("default");<br> }<br> }<br> return getStringFromDoc(document).getBytes("UTF-8");<br> }<br><br> /**<br> * Serialize a Document to String.<br> * @param doc doc to serialize<br> * @return serialized doc<br> * @throws IOException exception<br> */<br> private String getStringFromDoc(org.w3c.dom.Document doc) throws IOException {<br> StringWriter sw = new StringWriter();<br> OutputFormat format = new OutputFormat(doc);<br> format.setIndenting(true);<br><br> XMLSerializer serializer = new XMLSerializer(sw, format);<br><br> serializer.serialize(doc);<br> return sw.getBuffer().toString(); <br> }<br>
generated_ = false and name_ like '%.xml'