Oops, forgot the return type and a typo:<br><br> function    boolean    isYafterX( List list, Object    x   , Object y)<br><br><br><div class="gmail_quote">On 20 July 2012 22:29, Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Determining the truth value of a complex property is best done by writing a<br>function, e.g.<br><br>   function isYafterX( List list, Object y, Object y)<br>
<br>and by calling this function in an eval() conditional element.<span class="HOEnZb"><font color="#888888"><br>
<br>-W</font></span><div class="HOEnZb"><div class="h5"><br><br><br><br><div class="gmail_quote">On 20 July 2012 22:18, salt <span dir="ltr">&lt;<a href="mailto:writemesaltworth@gmail.com" target="_blank">writemesaltworth@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi,<br>
<br>
Please let me know nested loops are possible in drools or not..<br>
<br>
Scenario like this needs to be developed<br>
<br>
 list  values : A,B,C,D,E,F..<br>
<br>
Need to set 1 in Action if D is after C.<br>
<br>
So here i need to loook for D and if got again that list will be iterated<br>
and will check for C.<br>
<br>
Have tried this logic without nested loops and it works fine but performance<br>
wise its hitting.<br>
<br>
So Kindy let me know whether Nested loops are possible or not..<br>
<br>
Thanks<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/NESTED-LOOPS-Possible-tp4018811.html" target="_blank">http://drools.46999.n3.nabble.com/NESTED-LOOPS-Possible-tp4018811.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br>