Unable to fetch task by taskId using ReST API

Hi community!

Below is my sample BPMN

In the above model,when I start the process,when the user task is created I have a listener which passes the taskId to UI which then immediately invoke GET task ReST API
But this requests throws 404 saying task not found.
And when I call this second time ,it is working fine.
This happens only on Solution User Task.

Configurations done:
1)The parallel gateway are marked asynchronus and exclusive
2)All the user task has same listener
3)The only difference is Solution user task has output variable defined in input/output.

What am I doing wrong here?

Any help is highly appreciated!
Thanks

1 Like

@Mass_Shake your bpmn model has some design issues like, whenever you fork happened in the parallel gateway it must be joined for same number of execution tokens. Otherwise synchronization will not happen.

https://docs.camunda.org/manual/7.13/reference/bpmn20/gateways/parallel-gateway/

@aravindhrs Will this be fine ,if I add a end event ?
As I don’t want to wait till the mail sending and rabbitmq notification

How can this process be improved?