DNM Scripting

Got it to work :tada:

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:

  1. Download jython jar from e.g. Maven (I took jython-standalone so I didn’t have to deal with dependencies)
  2. Run start-camunda
  3. Run server\wildfly-XXXversion\bin\jboss-cli (and type connect after you are in the JBoss shell)
  4. 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
  1. Edit server\wildfly-XXXversion\org\camunda\bpm\camunda-engine\main\module.xml and add the following below the line that contains groovy-all:
<module name="org.python.jython" services="import"/>
  1. 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 :expressionless:

*) for JRuby see here

NOTE: the above should work the same for JBoss (obviously) and is all thanks to @menski answering my Q’s!

2 Likes