<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>I have resolved this problem using the following approach</span></div><div><br><span></span></div><div><span>Create a Class with a method (say) <br></span></div><div><span class="tab">&nbsp;&nbsp;&nbsp; </span><span>PrintRuleName(KContext kcontext) { System.out.println(kcontext.getRuleName());}<br></span></div><div><br></div><div>In the decision table in the action Create an Instance of this class and call this method by passing kcontext. Action would look like</div><div>( Action for each row in decision table will have this)<br></div><div>PrintClass ThePrintClass = new PrintClass();</div><div>ThePrintClass.setPrintRuleName(kcontext);</div><div><br></div><div>SA<br></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new
 york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> srinivasasanda &lt;srinivasasanda@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> rules-users@lists.jboss.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, April 5, 2012 8:56 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> [rules-users] Return List of Fired Rule Name from Decision table<br> </font> </div> <br>
Hi,<br><br>when a rule fires i am storing the rule name in Result field of type list as <br>result.add(drools.getRule().getName())&nbsp; -- in 'part' of a normal rule.<br><br>Now i am using decision table,how can i get the rule names fired. <br>I am not able to give java statement in action or in row contain field.Where<br>to write that Java statement in Decison Table?Can you suggest me please.<br><br>Thanks<br>Srinivasa Sanda<br><br>--<br>View this message in context: http://drools.46999.n3.nabble.com/Return-List-of-Fired-Rule-Name-from-Decision-table-tp3887158p3887158.html<br>Sent from the Drools: User forum mailing list archive at <a target="_blank" href="http://Nabble.com">Nabble.com</a>.<br>_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" 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><br> </div> </div>  </div></body></html>