From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of rrogers@us.imshealth.com
Sent: 11 April 2008 16:04
To: rules-users@lists.jboss.org
Subject: [rules-users] Access to currently executing rule in consequence?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 = 100when$v : Fact(name == "Test")thenSystem.out.println("The currently executing rule is " + <???>.getName());endI 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