]
Mark Proctor updated JBRULES-1594:
----------------------------------
Assignee: Edson Tirelli (was: Mark Proctor)
Fix Version/s: 5.0.0-M1
4.0.7
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: 4.0.7, 5.0.0-M1
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: