It is not possible with the web guided decision table at this stage as you need to use &quot;collect&quot; as you rightly suspect.<br><br>We have numerous improvements to complete to make the web editor more powerful.<br><br>
<div class="gmail_quote">2011/9/3 puja nandamuri <span dir="ltr">&lt;<a href="mailto:med_9501@yahoo.com">med_9501@yahoo.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">Hi,<div><br></div><div>How can I count the number of facts of a partilcuar type inserted into the rules session?</div><div>
<br></div><div>lets say, I insert several instances of fact called Asset into the rules session.</div><div><br></div><div>I need to write a web guided decision table that outputs a specifc text value in an action column based on the number of assets in memory.</div>
<div><br></div><div><br></div><div><br></div><div>numberofAssets      result</div><div><br></div><div>1                            result1</div><div>2                            result2</div><div>3                          
  result3</div><div><br></div><div>How can I create a condition column that counts the number of Assets in memory ?</div><div><br></div><div><br></div><div><br></div><div>question2:</div><div><br></div><div>If I want to write a drl  that needs to count number of Assets in memory and print that value, can I use a collect from or is it only used with a Collection ?</div>
<div><br></div><div>As always ,</div><div><br></div><div> Thank You all for your fast responses and ideas.</div><div><br></div><div>Thanks,</div><div><br></div><div>Ram</div></td></tr></tbody></table><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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>