[
http://jira.jboss.com/jira/browse/JBRULES-1594?page=comments#action_12411502 ]
Ming Fang commented on JBRULES-1594:
------------------------------------
it looks like SingleBetaConstraints is incorrectly indexed.
As a test, commenting out the this.indexed check in the method isAllowedCachedLeft() make
things work as expected.
Collect result pattern no constrained by bounded variables
----------------------------------------------------------
Key: JBRULES-1594
URL:
http://jira.jboss.com/jira/browse/JBRULES-1594
Project: JBoss Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 5.0.0-M1
Reporter: Ming Fang
Assigned To: Edson Tirelli
Fix For: 5.0.0-M1, 4.0.7
Attachments: collect.drl, CollectTest.java
For a rule like this
rule "example"
when
Integer(count:intValue)
doubles: ArrayList(size == count) from collect(Double())
then
System.out.println(doubles);
end
If I insert an Integer(2), I expect to have to insert 2 Doubles for the rule to fire.
But this rule fires even with only one Double.
However this rule behaves correctly.
rule "example"
when
Integer(count:intValue)
doubles: ArrayList(size == 2) from collect(Double())
then
System.out.println(doubles);
end
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira