I have a bpmn process definition that has a service task that references a class that implements JavaDelegate. If I deploy it to my Tomcat instance through a .war file it is deployed successfully and I can run it successfully. However, if I deploy it through the REST API it does get deployed, but when I run it the service task fails because the engine cannot load the referenced class. In both cases the same class file is available in the same place in the file system. Is it possible to deploy a process definition through the REST API that has service tasks?
Hi,
do you include your delegate class in your WAR file? If so, I suspect he class will be resolved via the app classloader associated with the WAR file deployment. If you are using say Tomcat, if you package your class into a jar file and install the jar file into the classpath, ie in the Tomcat lib folder for example, the clas should be resolved…
regards
Rob
2 Likes
Hi,
These two posts cover the same problem:
- Delegates from ServiceTasks are not found if started from Camunda TaskList
- Register process application for process definitions deployed by REST API
Cheers,
Thorben