Got it to work
For those struggling with the same: in order to use scripting engine Python/Jython (or Ruby/JRuby for that matter) on WildFly (Camunda 7.5.0_Alpha + WildFly 10) follow these steps:
- Download jython jar from e.g. Maven (I took
jython-standalone
so I didn’t have to deal with dependencies) - Run
start-camunda
- Run
server\wildfly-XXXversion\bin\jboss-cli
(and typeconnect
after you are in the JBoss shell) - Then run the below for jython (replace
--resources
with correct path)*:
module add --name=org.python.jython --resources=D:\Dev\jython-standalone-2.7.1b3.jar --dependencies=javax.api
- Edit
server\wildfly-XXXversion\org\camunda\bpm\camunda-engine\main\module.xml
and add the following below the line that containsgroovy-all
:
<module name="org.python.jython" services="import"/>
- You can close
jboss-cli
and you’ll have to restart your wildfly server completely, but that should do the trick!
Now since Python/Jython doesn’t return variables from scripts according to @menski, I guess I’ve got to get my JavaScript book off of the top bookshelf
*) for JRuby see here
NOTE: the above should work the same for JBoss (obviously) and is all thanks to @menski answering my Q’s!