On 8 May 2011 16:48, drdaveg <[email protected]> wrote:

> Is the reply correct?


Yes.


>  There are obvious mechanisms to create metadata on the
> object model in Drools and while there are data structures in the rules to
> store metadata setting user-defined metadata on rules does not seem to have
> supporting predicates.


I beg your pardon?


>   I would be interested in seeing a rule metadata
> example.
>

rule "some rule"
    @ID( theid )
when
   ...
then
   System.out.println( "@ID: " + drools.getRule().getMetaData().get( "ID" )
);
end

Running in 5.2.x, but should also work with 5.1.1.

-W
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to