Deploy Camunda rest api on other server

Hi,

I have a Wilfdly server with camunda enabled (with process engine in standalone.xml).
On this server, I deployed several “process” war’s (so war with bpmn and cdi controllers - bpmn calls cdi controllers as services tasks). I also deployed camunda rest api.

On other server, I have a “front” application. This application uses camunda rest api to retrieve and complete tasks.

→ Ok, perfect. Everything is ok.

Now, I tried this :

  • Wildfly server with my “process” war’s but I deployed camunda-rest-api on other wildfly server (with also process engine in standalone.xml and linked to the same database).

In my “front” application. I can retrieve tasks with camunda-rest-api but it doesn’t work to complete a task because I have this error
org.camunda.bpm.engine.ProcessEngineException: Unknown property used in expression: ${cdiController.doSomething(execution)}. Cause: Cannot resolve identifier ‘cdiController’

This is the step after the user task in my process (service task).

In fact, it’s quite logic because the process is deployed on other server but how I can solve that easily (without deploy camunda-rest-api on all servers)?

Thanks a lot !

Hi @sugus,

you built a heterogenous cluster. Have a look at this video, where Abhishek explains all the pitfalls and how to avoid them: https://www.youtube.com/watch?v=Nx4I8lNMUs0

His tips work for the wildfly server as well.

Hope this helps, Ingo

This is exactly what I wanted to know.

Thanks a lot !