public void doValidation() { if (gateway.isEventBasedGateway()) return; // they are validated by a more specialized validator checkForNeedlessness(); checkForOutgoingConditionalFlows(); validateOutgoingDefaultFlow(); }
private void checkForOutgoingConditionalFlows() { if (gateway.isEventBasedGateway()) { return; } Set<EdgeAdaptor> conditionalFlows = new HashSet<EdgeAdaptor>(); for (EdgeAdaptor edge : gateway.getOutgoingSequenceFlow()) { if (edge.isConditionalSequenceFlow()) { conditionalFlows.add(edge); } } if (!conditionalFlows.isEmpty()) { String messageID = gateway.isDecisionGateway() ? "conditionalFlowFromDecisionGateway" : "conditionalFlowFromParallelGateway"; validator.addMessage(messageID, gateway, conditionalFlows); } }