Ejemplo n.º 1
0
 public void doValidation() {
   if (gateway.isEventBasedGateway()) return;
   // they are validated by a more specialized validator
   checkForNeedlessness();
   checkForOutgoingConditionalFlows();
   validateOutgoingDefaultFlow();
 }
Ejemplo n.º 2
0
 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);
   }
 }