Asynchronous after as a plugin

Hello !

I have a pretty annoying issue regarding an activity call. I would like to do it synchronously while being able to relaunch it at first. This was done by adding asynchronous before on the activity call and an end-event listener and semaphores to get back the main thread after the whole process has finished.

It works pretty good but when we want to call another microservice BPMN (which don’t share same classes / deployment), it works only when we check the box “Asynchronous After” on the activity call through the Camunda Modeler.

I wanted to add it as a plugin as I did with asynchronous before but it doesn’t work as intended.

With only the plugin being active, I don’t get back to my main thread when the activity call is finished.

Do you have an idea of why it doesn’t work ?

Thanks forward !