AnsweredAssumed Answered

Not allowed to execute 'groovy' scripts

Question asked by mlagneaux on Nov 23, 2017
Latest reply on Nov 23, 2017 by mlagneaux

Hello,

 

I've made a process starting with a script task. In this script task, I've put a really simple groovy script. When I start my process, I'm getting an error. I've got the following logs :

11:02:24,986 [http-apr-8080-exec-1] WARN  org.activiti.engine.impl.bpmn.behavior.ScriptTaskActivityBehavior  - Exception while executing initialisationVariables : You are not allowed to execute 'groovy' scripts.
11:02:24,988 [http-apr-8080-exec-1] ERROR org.activiti.engine.impl.interceptor.CommandContext  - Error while closing command context
org.activiti.engine.ActivitiException: You are not allowed to execute 'groovy' scripts.
        at com.activiti.scripting.ActivitiCustomScriptingEngines.evaluate(ActivitiCustomScriptingEngines.java:44)
        at org.activiti.engine.impl.scripting.ScriptingEngines.evaluate(ScriptingEngines.java:73)
        at org.activiti.engine.impl.bpmn.behavior.ScriptTaskActivityBehavior.execute(ScriptTaskActivityBehavior.java:78)
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60)
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)

...

 

In my activiti-app.properties file, I've enabled script tasks and groovy script tasks thanks to the following parameters :

validator.editor.bpmn.disable.scripttask=false
validator.editor.bpmn.disable.scripttask.groovy=false

 

Is there another parameter to change to enable groovy scripts ?

Is there a specific permission to set ?

 

Thanks in advance for your help. Felle free to ask further details.

 

Regards,

Mickaël

Outcomes