[rules-users] "Rule-Id" for a Drools Rule
Wolfgang Laun
wolfgang.laun at gmail.com
Sun May 8 11:39:04 EDT 2011
On 8 May 2011 16:48, drdaveg <drdaveg at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110508/af3ad344/attachment.html
More information about the rules-users
mailing list