I am using Flowable 6.6.0 and Spring Boot 2.3.9
I would like to leverage processInstanceId in order to query the runtimeService or the historyService to check if a flow has completed or not.
My use case is as follow:
- The client sends a document to a controller in my spring boot application.
- The application gives back a unique id that identifies the process instance.
- The client polls for completion using this id (preferably processInstanceId)
However I start the process programmatically in a controller through processInstanceBuilder.start() before sending the response to the client.
Is there a way to generate an instanceId from within the controller and then passes this instanceID to the processInstanceBuilder?
Thanks for your help.