<p>Just thought that rule templates could also be an option for you in Guvnor - they provide the flexibility of DRL and the multiple rules benefit of decision tables</p>
<p>sent on the move</p>
<p>On 3 Sep 2011 21:24, &quot;Michael Anstis&quot; &lt;<a href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>&gt; wrote:<br type="attribution">&gt; Sure, just look at the examples of &quot;collect&quot;.<br>
&gt; <br>&gt; You could use a XLS decision table, or IIRC a guided DRL rule in Guvnor -<br>&gt; just not the web guided decision table.<br>&gt; <br>&gt; 2011/9/3 puja nandamuri &lt;<a href="mailto:med_9501@yahoo.com">med_9501@yahoo.com</a>&gt;<br>
&gt; <br>&gt;&gt; Michael,<br>&gt;&gt;<br>&gt;&gt; ThankYou for your speedy feedback.<br>&gt;&gt;<br>&gt;&gt; Is it possible to count the number of fact types in a drl if not in a<br>&gt;&gt; Guided decision table editor ?<br>
&gt;&gt;<br>&gt;&gt; --- On *Sat, 9/3/11, Michael Anstis &lt;<a href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>&gt;* wrote:<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; From: Michael Anstis &lt;<a href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>&gt;<br>
&gt;&gt; Subject: Re: [rules-users] How to count number of facts of a type in<br>&gt;&gt; memory?<br>&gt;&gt; To: &quot;Rules Users List&quot; &lt;<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>
&gt;&gt; Date: Saturday, September 3, 2011, 11:27 AM<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; It is not possible with the web guided decision table at this stage as you<br>&gt;&gt; need to use &quot;collect&quot; as you rightly suspect.<br>
&gt;&gt;<br>&gt;&gt; We have numerous improvements to complete to make the web editor more<br>&gt;&gt; powerful.<br>&gt;&gt;<br>&gt;&gt; 2011/9/3 puja nandamuri &lt;<a href="mailto:med_9501@yahoo.com">med_9501@yahoo.com</a>&lt;<a href="http://mc/compose?to=med_9501@yahoo.com">http://mc/compose?to=med_9501@yahoo.com</a>&gt;<br>
&gt;&gt; &gt;<br>&gt;&gt;<br>&gt;&gt; Hi,<br>&gt;&gt;<br>&gt;&gt; How can I count the number of facts of a partilcuar type inserted into the<br>&gt;&gt; rules session?<br>&gt;&gt;<br>&gt;&gt; lets say, I insert several instances of fact called Asset into the rules<br>
&gt;&gt; session.<br>&gt;&gt;<br>&gt;&gt; I need to write a web guided decision table that outputs a specifc text<br>&gt;&gt; value in an action column based on the number of assets in memory.<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>
&gt;&gt; numberofAssets      result<br>&gt;&gt;<br>&gt;&gt; 1                            result1<br>&gt;&gt; 2                            result2<br>&gt;&gt; 3                            result3<br>&gt;&gt;<br>&gt;&gt; How can I create a condition column that counts the number of Assets in<br>
&gt;&gt; memory ?<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; question2:<br>&gt;&gt;<br>&gt;&gt; If I want to write a drl  that needs to count number of Assets in memory<br>&gt;&gt; and print that value, can I use a collect from or is it only used with a<br>
&gt;&gt; Collection ?<br>&gt;&gt;<br>&gt;&gt; As always ,<br>&gt;&gt;<br>&gt;&gt;  Thank You all for your fast responses and ideas.<br>&gt;&gt;<br>&gt;&gt; Thanks,<br>&gt;&gt;<br>&gt;&gt; Ram<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&lt;<a href="http://mc/compose?to=rules-users@lists.jboss.org">http://mc/compose?to=rules-users@lists.jboss.org</a>&gt;<br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; -----Inline Attachment Follows-----<br>&gt;&gt;<br>
&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; rules-users mailing list<br>&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&lt;<a href="http://mc/compose?to=rules-users@lists.jboss.org">http://mc/compose?to=rules-users@lists.jboss.org</a>&gt;<br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>&gt;&gt;<br></p>