[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1594) Collect result pattern no constrained by bounded variables

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Thu May 1 17:47:18 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBRULES-1594?page=comments#action_12411503 ] 
            
Edson Tirelli commented on JBRULES-1594:
----------------------------------------

Yes Ming, thanks for reporting and providing test case. It is solved and committed.

> 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

        



More information about the jboss-jira mailing list