I have the same Problem. Is there anythinh new?
My understanding is that these scripts are Groovy DSL and not pure Groovy. I would not expect them to work in Active Choices, unless the appropriate DSL libraries are included. Have you tried that?