nodeProperties.put("node.type", "ExclusiveGateway");
} else if (flowElement instanceof ParallelGateway) {
nodeProperties.put("node.type", "ParallelGateway");
} else if (flowElement instanceof BoundaryEvent) {
BoundaryEvent boundaryEvent = (BoundaryEvent) flowElement;
List<EventDefinition> defs = boundaryEvent.getEventDefinitions();
String eventDef = "";
if (defs != null && defs.size() > 0) {
eventDef = getEventDefinitionAsString(defs.get(0));
}
nodeProperties.put("node.type", "BoundaryEvent:"+eventDef);
} else if (flowElement instanceof IntermediateCatchEvent) {
IntermediateCatchEvent boundaryEvent = (IntermediateCatchEvent) flowElement;
List<EventDefinition> defs = boundaryEvent.getEventDefinitions();
String eventDef = "";
if (defs != null && defs.size() > 0) {
eventDef = getEventDefinitionAsString(defs.get(0));
}
nodeProperties.put("node.type", "IntermediateCatchEvent:"+eventDef);
} else if (flowElement instanceof IntermediateThrowEvent) {
IntermediateThrowEvent boundaryEvent = (IntermediateThrowEvent) flowElement;
List<EventDefinition> defs = boundaryEvent.getEventDefinitions();
String eventDef = "";
if (defs != null && defs.size() > 0) {
eventDef = getEventDefinitionAsString(defs.get(0));
}
nodeProperties.put("node.type", "IntermediateThrowEvent:"+eventDef);
} else if (flowElement instanceof StartEvent) {
StartEvent boundaryEvent = (StartEvent) flowElement;
List<EventDefinition> defs = boundaryEvent.getEventDefinitions();
String eventDef = "";
if (defs != null && defs.size() > 0) {
eventDef = getEventDefinitionAsString(defs.get(0));
}
nodeProperties.put("node.type", "StartEvent:"+eventDef);
} else if (flowElement instanceof EndEvent) {
EndEvent boundaryEvent = (EndEvent) flowElement;
List<EventDefinition> defs = boundaryEvent.getEventDefinitions();
String eventDef = "";
if (defs != null && defs.size() > 0) {
eventDef = getEventDefinitionAsString(defs.get(0));
}