public Class generateNodeFor() {
return Split.class;
}
public void writeNode(Node node, StringBuilder xmlDump, boolean includeMeta) {
Split split = (Split) node;
switch (split.getType()) {
case Split.TYPE_AND:
writeNode("parallelGateway", node, xmlDump, includeMeta);
break;
case Split.TYPE_XOR:
writeNode("exclusiveGateway", node, xmlDump, includeMeta);
for (Map.Entry<ConnectionRef, Constraint> entry: split.getConstraints().entrySet()) {
if (entry.getValue().isDefault()) {
xmlDump.append("default=\"" +
XmlBPMNProcessDumper.getUniqueNodeId(split) + "-" +
XmlBPMNProcessDumper.getUniqueNodeId(node.getNodeContainer().getNode(entry.getKey().getNodeId())) +
"\" ");
break;
}
}
break;
case Split.TYPE_OR:
writeNode("inclusiveGateway", node, xmlDump, includeMeta);
for (Map.Entry<ConnectionRef, Constraint> entry: split.getConstraints().entrySet()) {
if (entry.getValue().isDefault()) {
xmlDump.append("default=\"" +
XmlBPMNProcessDumper.getUniqueNodeId(split) + "-" +
XmlBPMNProcessDumper.getUniqueNodeId(node.getNodeContainer().getNode(entry.getKey().getNodeId())) +
"\" ");