Getting rule name in rule

  1. As mentioned, the dummy Item and conditional statements that exit your Rule is your only option with Rules DSL.

  2. It might be helpful to describe in a little more detail what you are trying to accomplish. Since you can’t actually call another Rule from a Rule (in Rules DSL) what good would getting the name of a Rule do for you?

However, if you do want to call a Rule from another Rule, see Design Pattern: Separation of Behaviors.

I’ll note that both of these are features that will be available in the Experimental Rules Engine. And 2 I believe is available in JSR223 as Scott mentions.