How to create syncronous process and get response syncronously in camunda 7

As per our requirement we have to create process having three sequential task (which is created using service task with java delegate ) which should return response after completing whole process.
Note- We using Camunda &7 and all task are very small will be finished quickly.

Please suggest the way how we can start process using API or through JAVA.

Hi @akmmis193,

you can follow this getting started guide: Get Started with Camunda and Java EE 7 | docs.camunda.org.

Especially the sections “Model a Process” and “EJB Service Task”.

Just leave out the user tasks. And don’t use any asynchronous continuation.

Hope this helps, Ingo

1 Like

Hi @Ingo_Richtsmeier ,

Thanks for your response.

I am able to create task synchronous. But my requirement is to convert my whole process synchronous.
and also want response after process is completed.

@akmmis193 To execute the process synchronously, your process should not have any wait states like (async continuations, user task, receive task, etc…)

1 Like

Hi @akmmis193,

additional to @aravindhrs comment, if you use the Start process instance API and provide the parameter withVariablesInReturn you will get the result of the finished process instance: Start Process Instance | docs.camunda.org.

There is a Java API available as well: ProcessInstantiationBuilder (Camunda Platform Javadocs 7.18.4-ee)

Hope this helps, Ingo

2 Likes

Hi @aravindhrs and @Ingo_Richtsmeier ,

Thanks for your suggestion. If works now.