I am calling setVariable(...) using a POGO, it does not raised any err, but later, when my BPMN reaches a Service Task I get the following err :
java.lang.ClassNotFoundException: <MyClass> at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedWebappClassLoader.loadClass(TomcatEmbeddedWebappClassLoader.java:74) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName0(Class.java:348) at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:291) at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:68) at org.activiti.engine.impl.variable.SerializableType$1.resolveClass(SerializableType.java:124)
Is there a way to make Activiti aware of this POGO ? I am already loading a custom JAR into my GroovyScriptingEngine, but it does not seem enough.
Same topic on stackoverflow : https://stackoverflow.com/questions/56395310/activiti-setvariable-with-custom-pogos
Please share your POJO.
Have you implemented the Serializable interface? it is mandatory to implement, for acitiviti to persist data in DB
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.