1 Reply Latest reply on Jun 10, 2011 5:17 AM by richie hao

    Inclusive gateway doesn't support converging direction

    Francesco Pietrobelli Newbie


      I have a problem that look like a bug, but before to report the issue i want to know if any other have the same problem.


      It seems that inclusive gateway element doesn't supports the "Converging" direction.


      To reproduce the problem is sufficent to:

      1- create a bpmn2 process with a inclusive gateway with gatewayDirection set to "Converging"

      2- create a KnowledgeBuilder and add it

      At this point the following Exception is thrown:


      java.lang.IllegalArgumentException: Unknown gateway direction: Converging

          at org.jbpm.bpmn2.xml.InclusiveGatewayHandler.createNode(InclusiveGatewayHandler.java:34)

          at org.jbpm.bpmn2.xml.AbstractNodeHandler.start(AbstractNodeHandler.java:73)

          at org.drools.xml.ExtensibleXmlParser.startElement(ExtensibleXmlParser.java:382)



      I also attach a simple bpmn2 process definition and the relative junit test case.




        • 1. Re: Inclusive gateway doesn't support converging direction
          richie hao Newbie

          I think it's not a bug, you can find this in org.jbpm.bpmn2.xml.InclusiveGatewayHandler:

          protected Node createNode(Attributes attrs) {

              final String type = attrs.getValue("gatewayDirection");

              if ("Diverging".equals(type)) {

                  Split split = new Split();


                  String isDefault = attrs.getValue("default");

                  split.setMetaData("Default", isDefault);

                  return split;

              } else {

                  throw new IllegalArgumentException(

               "Unknown gateway direction: " + type);




          That's to say, if the direction of inclusive gateway is not "Diverging", the exception will be thrown.



          I am wondering whether they will support it in the future.