Thanks for the quick, clear reply. I had a nagging feeling that this was a common need and there had to be a way around it.
I can see how geting the status values into scope in a Map keyed by a
String with same name of the static var would do the trick.
For what it's worth, it got me to thinking of another possiblity: add some sugar to the status class that will allow bean-style property access for the various static values. For each static instance in the type-safe enum class, I'd add an accompanying boolean getter:
This bit of convenience api will avoid duplicating the mapping of the names (static var in one place, string key to a map in another) , keeping it all within the model's Status class.
The scriptlet code would then be:
This also then allows other bean-style property access usage (eg: velocity).
Thanks!