[jboss-jira] [JBoss JIRA] Created: (JBRULES-2054) XOR Split not working properly inside CompositeNode

Marko Strukelj (JIRA) jira-events at lists.jboss.org
Fri Apr 10 13:33:22 EDT 2009


XOR Split not working properly inside CompositeNode
---------------------------------------------------

                 Key: JBRULES-2054
                 URL: https://jira.jboss.org/jira/browse/JBRULES-2054
             Project: JBoss Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: drools-core (flow)
    Affects Versions: 5.0.0.CR1, 5.0.0.M5
         Environment: java.version = 1.6.0_11
java.vm.name = Java HotSpot(TM) Client VM
Windows Vista Service Pack 1
            Reporter: Marko Strukelj
            Assignee: Mark Proctor



If XOR Split node is used inside CompositeNode the following exception occurs regardless of the fact that at least one outgoing condition _is_ fulfilled:

java.lang.IllegalArgumentException: XOR split could not find at least one valid outgoing connection for split Split
	at org.drools.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:72)
	at org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:111)
	at org.drools.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:141)
	at org.drools.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:128)
	at org.drools.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:62)
	at org.drools.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:58)
	at org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:111)

The accompanying attachment 'drools-xor-bug.zip' contains an example that reproduces the problem. 

Zip file contains the eclipse project - simply import it in Eclipse and run com.sample.RuleFlowTest.java.

There are two .rf files. normalXOR.rf contains a working process, using XOR Split outside of CompositeNode. weirdXOR.rf contains the same XOR Split branching and outgoing constraints, but is positioned within CompositeNode.

RuleFlowTest first successfully executes normalXOR flow, then fails while executing weirdXOR flow.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list