<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=466253004-12082009><FONT face=Arial 
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=466253004-12082009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=466253004-12082009><FONT face=Arial size=2>I have the following 
scenario which i want to implement as rules</FONT></SPAN></DIV>
<DIV><SPAN class=466253004-12082009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=466253004-12082009><FONT face=Arial size=2>a) List = get the 
list of bean through hibernate&nbsp; ---&gt; this is not an 
issue</FONT></SPAN></DIV>
<DIV><SPAN class=466253004-12082009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=466253004-12082009><FONT face=Arial size=2>b) for each bean 
found in "a" -- iterate over and fire hibernate query to retrieve another bean 
based on the&nbsp;query parameter&nbsp;from first bean</FONT></SPAN></DIV>
<DIV><SPAN class=466253004-12082009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=466253004-12082009><FONT face=Arial size=2>c) break the for 
loop of "b" as sson as we found there is no result from the 
query.</FONT></SPAN></DIV>
<DIV><SPAN class=466253004-12082009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=466253004-12082009><FONT face=Arial size=2>I am having issue in 
getting the short circuit in there ? Is this achievable through the use of from, 
collect or accumulate ? </FONT></SPAN></DIV>
<DIV><SPAN class=466253004-12082009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=466253004-12082009><FONT face=Arial size=2>As soon the rule 
meets the short circuit --&nbsp;i dont want to execute "n" number of other 
queries unecessary.</FONT></SPAN></DIV>
<DIV><SPAN class=466253004-12082009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=466253004-12082009><FONT face=Arial size=2>Thanks for the 
help.</FONT></SPAN></DIV>
<DIV><SPAN class=466253004-12082009><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=466253004-12082009><FONT face=Arial 
size=2>Vijay</FONT></SPAN></DIV></BODY></HTML>