AnsweredAssumed Answered

How to set classpath for activiti-engine ?

Question asked by louisp on Mar 18, 2019



I am running activiti inside a Spring container, in order to run Groovy scripts.


In my scripts, I would like to add import statements to some other Groovy classes of mine, but the underlying GroovyScriptEngineImpl is not capable of resolving the imports at runtime.


I am pretty sure this because the classpath is not set in Activiti and I am struggling to find a way to specify that.


I already opened a thread on stackoverflow: How to load Groovy classes into the Groovy script engine of Activiti? - Stack Overflow 


How can I set this classpath once and for all ?


Thanks in advance