[rules-users] "Rule-Id" for a Drools Rule

Wolfgang Laun wolfgang.laun at gmail.com
Sun May 8 13:48:46 EDT 2011


On 8 May 2011 19:05, harishtejwani <harish at htejwani.com> wrote:

> Thanks everyone for the replies.
>
> Wolfgang, as a note - in JavaDocs the method getMetaData("attribute") is
> deprecated
> http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/apidocs/index.html
>
> Does anyone-know why?
>

The return type String is too narrow. The intent is to make this work like
Java annotations.


> Hopefully - getMetaData() would be here to stay!
>

Looks like it. Depending on usage, it might not only return a String but
also a Map, but that's not your concern.

-W


>
> I think the suggestion to use ID meta-data attribute on rule is the best
> and
> most stable!!
>
> Thanks again
>
> Harish
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Rule-Id-for-a-Drools-Rule-tp2914385p2915766.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110508/f6b9168a/attachment.html 


More information about the rules-users mailing list