Hi, problem is activiti:autoStoreVariables="true" in that case Nashorn tries to put in binding variable "nahshorn.global" of type jdk.nashorn.api.scripting.ScriptObjectMirror that is not Serializable see part of stackTrace
Try to remove activiti:autoStoreVariables="true" from diagram definition, that could help.
This block us from migrating to Java 1.8, since we need to upgrade all old process definitions where we use simple Javacsript like
<code>
<script>action=null</script>
</code>
Joram I would it be possible to serialize non Serializable object with JSON, or make special handling "nashorn.global"?
<code>
org.activiti.engine.ActivitiException: couldn't find a variable type that is able to serialize [object global]
at org.activiti.engine.impl.variable.DefaultVariableTypes.findVariableType(DefaultVariableTypes.java:62)
at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.createVariableInstance(VariableScopeImpl.java:690)
at org.activiti.engine.impl.persistence.entity.ExecutionEntity.createVariableInstance(ExecutionEntity.java:1171)
at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.createVariableLocal(VariableScopeImpl.java:604)
at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.createVariableLocal(VariableScopeImpl.java:591)
at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.setVariable(VariableScopeImpl.java:485)
at org.activiti.engine.impl.persistence.entity.VariableScopeImpl.setVariable(VariableScopeImpl.java:442)
at org.activiti.engine.impl.scripting.ScriptBindings.put(ScriptBindings.java:83)
at jdk.nashorn.api.scripting.NashornScriptEngine.getNashornGlobalFrom(NashornScriptEngine.java:394)
at jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:640)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:521)
at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:192)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:233)
at org.activiti.engine.impl.scripting.ScriptingEngines.evaluate(ScriptingEngines.java:87)
</code>