[rules-users] Access to currently executing rule in consequence?

rrogers at us.imshealth.com rrogers at us.imshealth.com
Fri Apr 11 11:04:14 EDT 2008


Is there an easy way to access information about the currently executing
rule (e.g. Name, salience, group) within a rule consequence?  E.g.
 
rule "Sample Rule"
    salience = 100
when
        $v : Fact(name == "Test")
then
    System.out.println("The currently executing rule is " +
<???>.getName());
end
 
I could copy the name into the print but of course then I have it in two
places I need to keep in sync. I know I can get the full log but that's
not what I'm interested in. 
 
-Russ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080411/ca0a6d69/attachment.html 


More information about the rules-users mailing list