Shared process engine


#1

How Camunda process initiated from external JEE application in shared process engine approach?


#2

Hi @jigneshpurohit,

have a look at this example class: https://github.com/ingorichtsmeier/ingo-camunda-examples/blob/master/process-applications/webservice-example/src/main/java/com/camunda/consulting/webservice/ProcessEngineAccess.java

Hope this helps, Ingo


#3

Thanks Ingo for your quick replay.
My requirement is to initiate process from separate independent JEE project assuming the process is already deployment on camudna engine. will it be possible without Rest API? if yes can you let me know the respective example or docs?


#4

Hi @jigneshpurohit,

if both applications (existing and camunda) run on the same appserver, you just have to add the camunda-engine-cdi module to your existing application and start a process like I did it in the example.

Have a look at these docs: https://docs.camunda.org/manual/7.9/user-guide/cdi-java-ee-integration/

Hope this helps, Ingo


#5

Hello Ingo,

Thanks a lot for your references. I will consider it in my design and implementation. As part of external integration, I would like to use Camunda REST API and for that when we have used spring boot example - https://docs.camunda.org/get-started/spring/project-setup/ for server side application and deployed the loanApproval process and used Postman as client. we couldn’t get the result and the out put is as follows. -

{
“type”: “RestException”,
“message”: “Cannot instantiate process definition loanApproval:3:8b0e127e-7b08-11e8-93db-507b9d08390a: Unknown property used in expression: ${calculateInterestService}. Cause: Cannot resolve identifier ‘calculateInterestService’”
}

if you have any idea than can you help me on this?


#6

Hello Ingo,

Can you please let me know if Camunda engine is on different tomcat or jboss server and my application is on separate tomcat server? can let me know if we have any similar example of reference ?


#7

Hi @jigneshpurohit,

my first guess it to add an annotation @Component to the CalculateInterestService.

Does it help?


#8

Hi @jigneshpurohit,

the engine is the same on tomcat or jboss. But the integration is different. On JBoss you can use JavaEE CDI to connect to other java components, on tomcat you can use Spring for this.

Hope this helps, Ingo


#9

Hello Ingo,

The webservice-example is set for Wildfly/JBoss so if i need to follow camunda configuration of this exmaple in tomcat than does it requried any additional configuration or and changes in it due to Tomcat ? Or I can follow the same for tomcat?