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

Ming Fang (JIRA) jira-events at lists.jboss.org
Thu May 1 12:21:18 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBRULES-1594?page=all ]

Ming Fang updated JBRULES-1594:
-------------------------------

    Attachment: collect.drl
                CollectTest.java

> 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: Mark Proctor
>         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