How to get List<Object> as response from worker service-Camunda 8

As is mentioned in your other thread it’s difficult to go from async to sync responses.

It’s generally not a good idea to create multiple threads on the same topic, without at least mentioning that you have other threads on the topic on the go. Conversations on the topic get mixed up, and you’ll get different recommendations on different threads, which will cause you confusion.

After your newCreateInstanceCommand, you can poll the Zeebe engine in a while loop to find the status of your process before returning the response to your UI client. I’d recommend some sort of sleep in that loop, so that you’re not hammering the gateway.

As mentioned in my prior reply, if you expect your process to return back in under 10s, then what you are doing should be fine… if you have your worker set up correctly. Which brings us back to the prior request - please post the test2.bpmn