Sep 5, 2013
How to use BPMN 2.0 ScriptTask with Groovy in JBoss
Note: this blogpost only applies to camunda BPM version < 7.1.0. Starting from camunda BPM 7.2.0 we ship Groovy as part of the pre-packaged distribution. Recently at a customer we added a ScriptTask to a process and wanted to run a Groovy script. Pretty easy with camunda BPM – but in the JBoss environment you have to know how to correctly put Groovy on the classpath – as we correctly use the JSR 223 stuff to recognize existing Scripting Languages. To help others and to remind myself I quickly wanted to blog how to do this. 1.) Add groovy module to your JBoss Download latest groovy-all.jar and copy it to JBOSS_HOME/modules/groovy/main/groovy-all.jar. Create JBOSS_HOME/modules/groovy/main/module.xml with the following content: <?xml version="1.0" encoding="UTF-8"?> <module…