handleAction(stateNode, element, eventType);
}
}
public void writeNode(Node node, StringBuilder xmlDump, boolean includeMeta) {
StateNode stateNode = (StateNode) node;
writeNode("state", stateNode, xmlDump, includeMeta);
xmlDump.append(">\n");
for (String eventType: stateNode.getActionTypes()) {
writeActions(eventType, stateNode.getActions(eventType), xmlDump);
}
writeTimers(stateNode.getTimers(), xmlDump);
if (!stateNode.getConstraints().isEmpty()) {
xmlDump.append(" <constraints>" + EOL);
for (Map.Entry<ConnectionRef, Constraint> entry: stateNode.getConstraints().entrySet()) {
ConnectionRef connection = entry.getKey();
Constraint constraint = entry.getValue();
xmlDump.append(" <constraint "
+ "toNodeId=\"" + connection.getNodeId() + "\" ");
String name = constraint.getName();