On 8 May 2011 19:05, harishtejwani <span dir="ltr"><<a href="mailto:harish@htejwani.com">harish@htejwani.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks everyone for the replies.<br>
<br>
Wolfgang, as a note - in JavaDocs the method getMetaData("attribute") is<br>
deprecated<br>
<a href="http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/apidocs/index.html" target="_blank">http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/apidocs/index.html</a><br>
<br>
Does anyone-know why?<br></blockquote><div><br>The return type String is too narrow. The intent is to make this work like Java annotations.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hopefully - getMetaData() would be here to stay!<br></blockquote><div><br>Looks like it. Depending on usage, it might not only return a String but also a Map, but that's not your concern.<br><br>-W<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I think the suggestion to use ID meta-data attribute on rule is the best and<br>
most stable!!<br>
<br>
Thanks again<br>
<br>
Harish<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Rule-Id-for-a-Drools-Rule-tp2914385p2915766.html" target="_blank">http://drools.46999.n3.nabble.com/Rule-Id-for-a-Drools-Rule-tp2914385p2915766.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<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>
</font></blockquote></div><br>