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