When I submit a workflow, I would like to have another workflow to be submitted when the first workflow times out. How can I do that?
Create a workflow that invokes two child workflows. When the first times out start the second one.
Great. It’d be really helpful if you can provide a reference to related documents or example code for submitting a second workflow if the first one times tout? Thanks
try {
execute1();
} catch(ChildWorkflowFailure e) {
if (e.getCause() is timeout) {
execute2();
}
}
1 Like