have a look at the Scipt class. it should not be too hard to write something similar for delegating to rihno. then you only need to update the XML parsing and the hibernate mappings to accomodate for your new class.
in the "for what's it's worth" category we were using Groovy for a bunch of scripting work around jBPM - using beanshell only for decision expressions.
we actually switched to beanshell for everything just to keep process devs from having to make the mental context switch... Tom's right though - should be easy enough to do, and with a bit of creativity you ought to be able to host a number of different scripts in the same process.
Cool. Thanks. Does JSR 223 have any impact here? The java 6 JRE has interfaces for plugging in script engines.
Does one imagine that JBPM will use JSR 223 rather than just beanshell?