Hi Team, we want to wait and get workflow status on it’s completion. We have this block of code -
workflowStub
.getResultAsync(String.class)
.whenComplete(
(response, ex) -> {
//handleWorkflowState
});
With this logic, most of the times we were able to get response on workflow completion used to go into handleWorkflowState block. But sometimes we are seeing even if workflow is completed, it’s not going into handleWorkflowState. We want to understand more about getResultAsync if it needs to handled differently for any specific exceptions(like timeout) or will it get passed to whenComplete as expected? or is there any other recommendation to get workflow status on completion.