handleAction(milestoneNode, element, eventType);
}
}
public void writeNode(Node node, StringBuilder xmlDump, boolean includeMeta) {
MilestoneNode milestoneNode = (MilestoneNode) node;
writeNode("milestone", milestoneNode, xmlDump, includeMeta);
String constraint = milestoneNode.getConstraint();
if (constraint != null || milestoneNode.getTimers() != null || milestoneNode.containsActions()) {
xmlDump.append(">\n");
if (constraint != null) {
xmlDump.append(" <constraint type=\"rule\" dialect=\"mvel\" >"
+ XmlDumper.replaceIllegalChars(constraint.trim()) + "</constraint>" + EOL);
}
for (String eventType: milestoneNode.getActionTypes()) {
writeActions(eventType, milestoneNode.getActions(eventType), xmlDump);
}
writeTimers(milestoneNode.getTimers(), xmlDump);
endNode("milestone", xmlDump);
} else {
endNode(xmlDump);
}
}