You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Unable to get current rule name in groovy

Accepted answer
34
Views
2
Comments

Summary:

Trying to get the name of the current rule in groovy. Getting generic error: Script failed on line: 522, with error: An error occurred while processing this page.

Content (required):

I can get the "currentRule" (also "rule" works). But cannot get any properties from it. Getting the generic error above. Anyone know why or have code that works?

Version (include the version you are using, if applicable):

PBCS

Code Snippet (add any code snippets that support your topic, if applicable):

both fail:

println currentRule.name

println currentRule.getName

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!