[rules-users] Is there anything exists in drools rule template for looping of a row in compiled rule template

Wolfgang Laun wolfgang.laun at gmail.com
Tue Feb 11 05:34:09 EST 2014


See below.

On 11/02/2014, Soumya.plavaga <soumya.bose at plavaga.in> wrote:
> Is there anything exists in drools rule template for looping of a row in
> compiled rule template? As example if I have a rule like -
>
> rule "rule 1"
>
> when
> $p: Person(age == @{age})
>
> then
>
> System.out.println("person is eligible");
>
> end
>
> If I want to repeat the line '$p: Person(age == @{age})' in a loop in the
> compiled drl, is there any ready made component within drools rule template
> to achieve that?

No there isn't, but what would you achieve with a repetition of
    $p: Person(age == @{age})
anyway? It's syntactically incorrect.

-W

>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Is-there-anything-exists-in-drools-rule-template-for-looping-of-a-row-in-compiled-rule-template-tp4028059.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list