Just added this point to the wiki on usage patterns:<div><br></div><div><a href="http://www.jboss.org/community/wiki/UsagePatterns">http://www.jboss.org/community/wiki/UsagePatterns</a></div><div><br><br><div class="gmail_quote">
On Fri, Dec 4, 2009 at 8:09 PM, Ross H <span dir="ltr">&lt;<a href="mailto:rossh00@gmail.com">rossh00@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;">
Thanks Thomas, you&#39;ve added a very important category to my thoughts: what does and what doesn&#39;t work easily in drools. I think this is the most important category. Every framework has a degree of flexibility and whilst drools is extremely flexible, the consequences may not be that pleasant.<br>

<br><div class="gmail_quote">2009/12/4 Swindells, Thomas <span dir="ltr">&lt;<a href="mailto:TSwindells@nds.com" target="_blank">TSwindells@nds.com</a>&gt;</span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div lang="EN-GB" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">I’d agree, and to join up with the other thread is the exact reason why we need some decent ‘design pattern’ documentation to explain what does and doesn’t
 easily work in drools.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Depending what you are trying to do you may be able to use eval to perform the logic for you, though this will probably involve you writing the logic manually
 in java. See the thread Re: [rules-users] Can we use &#39;from&#39; CE in Decision Tables ? for details.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Thomas</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt">From:</span></b><span lang="EN-US" style="font-size:10.0pt"> <a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a> [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>]
<b>On Behalf Of </b>Ross H<br>
<b>Sent:</b> 04 December 2009 08:18<br>
<b>To:</b> Rules Users List<br>
<b>Subject:</b> Re: [rules-users] Need help related to collection of data accessingin rule file.</span></p>
</div>
</div><div><div></div><div>
<p class="MsoNormal"> </p>
<p class="MsoNormal">In my limited experience, I&#39;m not sure you can do this in decision tables, but given the flexibility of Drools there may be a way, but I&#39;m not sure this is a good thing. </p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">I suspect the rules you create will be really ugly and not support your longer term goals of flexibility. It might be better to transform your data into a better fact model that gives you the ability to create real business rules that are
 understandable.</p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">It appears that it is better to create a fact model that is more shallow and uses almost relational concepts to relate the facts together rather than a deeply nested model (I suspect you are getting this from
 some really ugly xml structure). So whilst it&#39;s a pain, I would reconsider your core domain/fact model.</p>
<div>
<p class="MsoNormal">On Fri, Dec 4, 2009 at 4:08 PM, Pritam &lt;<a href="mailto:infinity2heaven@gmail.com" target="_blank">infinity2heaven@gmail.com</a>&gt; wrote:</p>
<p class="MsoNormal"><br>
I have the same problem as I&#39;m trying to create a decision table via excel<br>
where the fact is a root object A where A has a collection B, and B has a<br>
collection C. My rules are based out of the instance A, loop for each object<br>
in B, and within that, loop each object in C. Not sure how I can write an<br>
expression for the same.<br>
<br>
&gt;From the examples, I see that one can access a particular element in A by<br>
$a.listname[1] but in my case, I need to access all elements in the loop.<br>
<br>
Any suggestions?<br>
<br>
<br>
prasad raju sagi wrote:<br>
&gt;<br>
&gt; Hi ,<br>
&gt;<br>
&gt; I am trying to create rule  on a fact , which contains arraylist of<br>
&gt; collection and the object in the collection internally contains an<br>
&gt; arraylist of another collection of objects.<br>
&gt;<br>
&gt; This looks like  object A contains collection of objects B and B contains<br>
&gt; collection object C<br>
&gt;<br>
&gt; A -&gt;  blist ( Arraylist )<br>
&gt;<br>
&gt; B -&gt; clist (ArrayList&lt;C&gt; )<br>
&gt;<br>
&gt; C-&gt; dlist( ArrayList&lt;D&gt;)<br>
&gt;<br>
&gt; D-&gt; type ( string)<br>
&gt;<br>
&gt; I am inseting A as fact to the working memory.<br>
&gt;<br>
&gt; I am in confusion state like how to write the rule to place conditions  on<br>
&gt; collection C.<br>
&gt;<br>
&gt; Can I use from in the form of nested from in rule statment.<br>
&gt; Thanks<br>
&gt; Prasad Raju Sagi<br>
&gt; Mobile: 847-644-4103<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ________________________________<br>
&gt; From: Aziz Boxwala &lt;<a href="mailto:boxwala@yahoo.com" target="_blank">boxwala@yahoo.com</a>&gt;<br>
&gt; To: <a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
&gt; Sent: Thursday, June 11, 2009 1:58:28 PM<br>
&gt; Subject: [rules-users] process order example not working fully<br>
&gt;<br>
&gt;<br>
&gt; I am trying to execute a ruleflow and use rules to assign tasks within the<br>
&gt; ruleflow in Drools 5.0.1. I have a drl file included in my knowledge base<br>
&gt; that tries to assign a task to a user when a new human task is created.<br>
&gt; This is based on the example in org.drools.example.process.order. I can&#39;t<br>
&gt; get my code to work. I don&#39;t the rules in the example are working either<br>
&gt; (dslr for the task assignment or the drl for dynamic logging). After some<br>
&gt; attempts, I found that this condition<br>
&gt;     WorkItemNodeInstance()<br>
&gt; does not evaluate to true ever.<br>
&gt;<br>
&gt; Do I have to do anything special to make the WorkItemNodeInstance appear<br>
&gt; in working memory?<br>
&gt;<br>
&gt; Thanks for any help.<br>
&gt;<br>
&gt; --Aziz<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
<span style="color:#888888"><br>
--<br>
View this message in context: <a href="http://n3.nabble.com/Re-Need-help-related-to-collection-of-data-accessing-in-rule-file-tp60311p67858.html" target="_blank">
http://n3.nabble.com/Re-Need-help-related-to-collection-of-data-accessing-in-rule-file-tp60311p67858.html</a><br>
Sent from the Drools - User mailing list archive at Nabble.com.<br>
<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></span></p>
</div>
<p class="MsoNormal"> </p>
</div>
</div></div></div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
**************************************************************************************<br>
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the <a href="mailto:postmaster@nds.com" target="_blank">postmaster@nds.com</a> and delete it from your system as well as any copies. The content of e-mails as well as traffic data
 may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.<br>
<br>
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00<br>
**************************************************************************************<br>
</font><br>
<hr>
<font face="Arial" color="Gray" size="1">This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the <a href="mailto:postmaster@nds.com" target="_blank">postmaster@nds.com</a> and delete it from your system as well as any copies. The
 content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes.<br>
To protect the environment please do not print this e-mail unless necessary.<br>
<br>
An NDS Group Limited company. <a href="http://www.nds.com" target="_blank">www.nds.com</a><br>
</font>
</div>

<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>
<br></blockquote></div></div></div><br>
</blockquote></div><br></div>