[rules-users] How to use for loop in drools!!!!

Sumeet Karawal sumeet.karawal at tcs.com
Tue Apr 19 02:13:36 EDT 2011


Hello Everybody,

I am not getting, on how to do for loop functionality in drools.

Like for instance, my functionality has  :

for(i = 0; i<10; i++)
{
   c.setCustomerCount(c.getCustomerCount() + 1);
}

How to translate this code into rule language (.drl).

It would be helpful if anybody could guide me on this.

Thanks and Regards,
Sumeet Karawal
Mailto: sumeet.karawal at tcs.com

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you






More information about the rules-users mailing list