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
Solved! Go to Solution.
Hi!
In: tomcat/webapps/activiti-app/WEB-INF/classes/activiti/whitelisted-scripts.conf remove the comment character where you need.
Regards
Hi!
In: tomcat/webapps/activiti-app/WEB-INF/classes/activiti/whitelisted-scripts.conf remove the comment character where you need.
Regards
It works. Thx.
thanks !! why would they disable it for initial setup?
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.