How to automatically generate a workflow when a specific workflow times out

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 {
} catch(ChildWorkflowFailure e) {
   if (e.getCause() is timeout) {
1 Like