I have a Service Task implemented as a Java Delegate class, which means the service task is attached to a java class implementing
org.camunda.bpm.engine.delegate.JavaDelegate class within the process engine service.
Can I complete this task from outside using some REST API? Think about User Task, which is started by the process engine, but someone from outside completes it using the REST API call.
Actually, I want to have a Java Delegate Class, which will call a REST API of another service. Now that microservice will perform the job (which is supposed by this Service Task) asynchronously.
I know if I just call this REST API in delegate class then that task will finish and move ahead in the process. But I want to stay within the task and want to wait unless that microservice callbacks to complete this Service Task.
In summary, I want to call a REST API within Java Delegate class implementation and then go in Waiting State, And then the Other microservice (which is called) will callback to complete the task. Is there any possible solution for this?