protected List<SequenceFlow> getOutgoing(FlowElement element) { List<SequenceFlow> outgoing = null; if (element instanceof StartEvent) { outgoing = ((StartEvent) element).getOutgoing(); } else if (element instanceof SubProcess) { SubProcess subProcess = ((SubProcess) element); outgoing = subProcess.getOutgoing(); } else if (element instanceof Event) { outgoing = ((Event) element).getOutgoing(); } else if (element instanceof Activity) { outgoing = ((Activity) element).getOutgoing(); } else if (element instanceof EndEvent) { outgoing = ((EndEvent) element).getOutgoing(); } else if (element instanceof Gateway) { Gateway gateway = ((Gateway) element); outgoing = gateway.getOutgoing(); } return outgoing; }
protected List<SequenceFlow> getOutgoing(FlowElement element) { List<SequenceFlow> outgoing = null; if (element instanceof StartEvent) { outgoing = ((StartEvent) element).getOutgoing(); } else if (element instanceof SubProcess) { SubProcess subProcess = ((SubProcess) element); outgoing = subProcess.getOutgoing(); } else if (element instanceof Event) { outgoing = ((Event) element).getOutgoing(); } else if (element instanceof Activity) { outgoing = ((Activity) element).getOutgoing(); } else if (element instanceof EndEvent) { outgoing = ((EndEvent) element).getOutgoing(); } else if (element instanceof Gateway) { Gateway gateway = ((Gateway) element); outgoing = gateway.getOutgoing(); } return outgoing; }
protected List<SequenceFlow> getOutgoing(FlowElement element) { List<SequenceFlow> outgoing = null; if (element instanceof StartEvent) { outgoing = ((StartEvent) element).getOutgoing(); } else if (element instanceof SubProcess) { SubProcess subProcess = ((SubProcess) element); outgoing = subProcess.getOutgoing(); } else if (element instanceof Event) { outgoing = ((Event) element).getOutgoing(); } else if (element instanceof Activity) { outgoing = ((Activity) element).getOutgoing(); } else if (element instanceof EndEvent) { outgoing = ((EndEvent) element).getOutgoing(); } else if (element instanceof Gateway) { Gateway gateway = ((Gateway) element); outgoing = gateway.getOutgoing(); } return outgoing; }
Gateway gateway = (Gateway) fe; int incoming = gateway.getIncoming() == null ? 0 : gateway.getIncoming().size(); int outgoing = gateway.getOutgoing() == null ? 0 : gateway.getOutgoing().size(); if (incoming <= 1 && outgoing > 1) { gateway.setGatewayDirection(GatewayDirection.DIVERGING);
if (provider != null) { double probability = 0; for (SequenceFlow sq : ((Gateway) fe).getOutgoing()) { if (provider instanceof BPMN2SimulationDataProvider) { probability += (Double)((BPMN2SimulationDataProvider)provider).getSimulationDataForNode(sq.getId()).get(SimulationConstants.PROBABILITY);
if (provider != null) { double probability = 0; for (SequenceFlow sq : ((Gateway) fe).getOutgoing()) { if (provider instanceof BPMN2SimulationDataProvider) { probability += (Double)((BPMN2SimulationDataProvider)provider).getSimulationDataForNode(sq.getId()).get(SimulationConstants.PROBABILITY);