DNM Scripting

Hi @menski

Thanks for those Wildfly links, got to read up on it…

Indeed the Javascript works out of the box, great!

I am using JDK 1.8.0_92 and Camunda 7.5.0_a4 (indeed bleeding edge ) on Wildfly 10

Regarding use of Jython:
Does this mean I have to re-compile camunda-engine myself with the added dependencies you mention above or can I ‘reuse’ an existing Camunda distro and run e.g. jboss-cli:

jboss-cli   (to get JBoss shell)
$ connect
$ module add --name=org.python.jython --resources=D:\Dev\jython-standalone-2.7.1b3.jar --dependencies=javax.api

(this still gives the error below btw)

An error happend while submitting the task form :
Cannot submit task form 967abd42-1dd3-11e6-b0b1-22c9d095bc69: Can’t find scripting engine for ‘jython’: scriptEngine is null

With accompanying CLI error:

17:09:01,011 ERROR [org.camunda.bpm.engine.context] (default task-11) ENGINE-16004 Exception while closing command context: Can’t find scripting engine for ‘jython’: scriptEngine is null: org.camunda.bpm.engine.exception.NullValueException: Can’t find scripting engine for ‘jython’: scriptEngine is null
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

17:09:01,026 WARNING [ExceptionHandler] (default task-11) org.camunda.bpm.engine.rest.exception.RestException: Cannot submit task form 967abd42-1dd3-11e6-b0b1-22c9d095bc69: Can’t find scripting engine for ‘jython’: scriptEngine is null
at org.camunda.bpm.engine.rest.sub.task.impl.TaskResourceImpl.submit(TaskResourceImpl.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

Caused by: org.camunda.bpm.engine.exception.NullValueException: Can’t find scripting engine for ‘jython’: scriptEngine is null
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

Am 99.9% sure the error is triggered by this DMN in my process flow:

decisions_1.dmn (2.0 KB)

Thanks for your advice!