private boolean isParentEventSubprocess(FlowElement fe) { if (fe.eContainer() instanceof SubProcess && ((SubProcess) fe.eContainer()).isTriggeredByEvent()){ return true; } return false; }
private boolean isParentEventSubprocess(FlowElement fe) { if (fe.eContainer() instanceof SubProcess && ((SubProcess) fe.eContainer()).isTriggeredByEvent()){ return true; } return false; }
public BpmnNode convertSubProcess(SubProcess subProcess) { BpmnNode subProcessRoot; if (subProcess instanceof org.eclipse.bpmn2.AdHocSubProcess) { subProcessRoot = convertAdHocSubProcess((org.eclipse.bpmn2.AdHocSubProcess) subProcess); } else if (subProcess.getLoopCharacteristics() != null) { subProcessRoot = convertMultInstanceSubprocessNode(subProcess); } else if (subProcess.isTriggeredByEvent()) { subProcessRoot = convertEventSubprocessNode(subProcess); } else { subProcessRoot = convertEmbeddedSubprocessNode(subProcess); } Map<String, BpmnNode> nodes = delegate.convertChildNodes(subProcessRoot, subProcess.getFlowElements(), subProcess.getLaneSets()); delegate.convertEdges(subProcessRoot, Stream.concat(subProcess.getFlowElements().stream(), subProcess.getArtifacts().stream()).collect(Collectors.toList()), nodes); return subProcessRoot; }
} else if (fElement instanceof EventSubprocess || ((fElement instanceof SubProcess) && ((SubProcess) fElement).isTriggeredByEvent())) { readFlowElements((FlowElementsContainer)fElement, catchingEvents);
} else if (fElement instanceof EventSubprocess || ((fElement instanceof SubProcess) && ((SubProcess) fElement).isTriggeredByEvent())) { readFlowElements((FlowElementsContainer)fElement, catchingEvents);
"AdHocSubprocess"); } else { if (subProcess.isTriggeredByEvent()) { generator.writeObjectField("id", "EventSubprocess");