Hi guys,
I have a BPMN file with a flow that calls a java delegate class in a service task.
I would like to know if there is a way to deploy at runtime this java class in addition to the BPMN file.
I’m running Camunda 7.11 CE embedded in a Spring Boot application.
It’s mandatory for us to deploy the java class at runtime (and not a compilation time), in the same manner as performing a war deployment in a shared camunda tomcat container: in this way the BPMN deployment is totally indipendent from the Spring Boot application.
Thanks
Kind regards
Hi @devDared90,
this it not possible. The delegate has to be part of the classpath: https://docs.camunda.org/manual/7.11/user-guide/process-engine/delegation-code/.
But you can try external service tasks to decouple the engine from the service code: https://docs.camunda.org/manual/7.11/user-guide/process-engine/external-tasks/.
Hope this helps, Ingo
@devDared90,
One option might be for you to use either Groovy - which can be written like Java in most cases - or JavaScript within Script Tasks. Note that you can use either inline scripts or external files with the Script Tasks, and both can be deployed along with your process models.
You could also use other JSR-223 compliant scripting engines, including Kotlin, which I’ve confirmed can work easily with Camunda Script Tasks.
-Ryan