3 Replies Latest reply on Apr 24, 2013 12:20 PM by Maciej Swiderski

    connection with constraint and jbpm.enable.multi.con

    rigazilla Newbie

      Hi all,

       

      I had some troubles with the configuration in the subject above.

      Shortly: with jbpm.enable.multi.con=true each node at the end of a connection with constraint is triggered two times.

       

      I suspect this is a bug (my quick patch is below), can someone check if I'm correct?

       

      Thanks,

      Vittorio

       

      diff --git a/jbpm-flow/src/main/java/org/jbpm/workflow/instance/impl/NodeInstanceImpl.java b/jbpm-flow/src/main/java/org/jbpm/workflow/instance/impl/NodeInstanceImpl.ja
      index 274c291..25b53c7 100644
      --- a/jbpm-flow/src/main/java/org/jbpm/workflow/instance/impl/NodeInstanceImpl.java
      +++ b/jbpm-flow/src/main/java/org/jbpm/workflow/instance/impl/NodeInstanceImpl.java
      @@ -201,7 +201,8 @@ public abstract class NodeInstanceImpl implements org.jbpm.workflow.instance.Nod
                       }
                       if ( !found ) {
                           throw new IllegalArgumentException( "Uncontrolled flow node could not find at least one valid outgoing connection " + getNode().getName() );
      -                }    
      +                }
      +                return;
                      } else {
                              connections = node.getOutgoingConnections(type);
                      }