My use case is: ParentWorkflow creates and starts retryable ChildWorkflow async, I want to get the execution result of the ChildWorkflow async when the ChildWorkflow completed or timed out (workflowExecutionTimeout reached)
Method #1
This code works fine if the ChildWorkflow completed; i.e., ChildWorkflow returns a value (even after exception thrown once and it’s retried):
WorkflowStub childWorkflowStub = workflowClient.newUntypedWorkflowStub(childWorkflowId);
childWorkflowStub
.getResultAsync(String.class)
.thenApply(
result -> {
log.info("getResultAsync: " + result);
return result;
});
However, no result if the ChildWorkflow failed with exception thrown and no value returned.
Method #2
I try getResultAsync with timeout provided but I also don’t get any result/exception.
Is this known issue or not expected?
I can upload the sample program is needed.