[rules-users] short circuit in Drools from or collect or accumulate

Vijay K Pandey VPandey at mdes.ms.gov
Wed Aug 12 00:37:23 EDT 2009


Hi,

I have the following scenario which i want to implement as rules

a) List = get the list of bean through hibernate  ---> this is not an issue

b) for each bean found in "a" -- iterate over and fire hibernate query to retrieve another bean based on the query parameter from first bean

c) break the for loop of "b" as sson as we found there is no result from the query.

I am having issue in getting the short circuit in there ? Is this achievable through the use of from, collect or accumulate ?

As soon the rule meets the short circuit -- i dont want to execute "n" number of other queries unecessary.

Thanks for the help.

Vijay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090811/f41a120b/attachment.html 


More information about the rules-users mailing list