01-15-2013 05:17 AM
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
Fine… I corrected definitions, re-deployed and now everything works fine with new executions.com.activiti.engine.impl.parser.BpmnParser.validateExclusiveGateway(ActivityImpl activity)
, which seems to be new in 5.11.01-15-2013 05:57 AM
01-30-2013 09:56 AM
/**
* Remove 'default' attribute on 'exclusiveGateway' nodes.
* @param bytes xml binary data
* @return correct binary data
* @throws SAXException exception
* @throws IOException exception
* @throws ParserConfigurationException exception
*/
private byte[] removeExclusiveGatewaysDefaultAttribute(byte[] bytes) throws SAXException, IOException, ParserConfigurationException {
ByteArrayInputStream inputStream = new ByteArrayInputStream(bytes);
Reader reader = new InputStreamReader(inputStream, "UTF-8");
InputSource is = new InputSource(reader);
is.setEncoding("UTF-8");
DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder();
Document document = db.parse(is);
NodeList exclusiveGateways = document.getElementsByTagName("exclusiveGateway");
for (int i = 0; i < exclusiveGateways.getLength(); i++) {
Node node = exclusiveGateways.item(i);
if (node.getAttributes().getNamedItem("default") != null) {
node.getAttributes().removeNamedItem("default");
}
}
return getStringFromDoc(document).getBytes("UTF-8");
}
/**
* Serialize a Document to String.
* @param doc doc to serialize
* @return serialized doc
* @throws IOException exception
*/
private String getStringFromDoc(org.w3c.dom.Document doc) throws IOException {
StringWriter sw = new StringWriter();
OutputFormat format = new OutputFormat(doc);
format.setIndenting(true);
XMLSerializer serializer = new XMLSerializer(sw, format);
serializer.serialize(doc);
return sw.getBuffer().toString();
}
generated_ = false and name_ like '%.xml'
The orm-dao layer is really easy to implement, that's why I don't provide it here…03-25-2013 05:23 PM
03-26-2013 09:58 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.