I need to fail the child workflow if it throw specific error

i have a parent workflow and it has multiple child workflows, some time child workflow throw error.
so it should fail the child workflow without failing parent workflow. other child workflow should execute.

i added this: WorkflowImplementationOptions workflowImplementationOptions =
WorkflowImplementationOptions.newBuilder()
.setFailWorkflowExceptionTypes(MMLCommandExecutionException.class)
.build();
which is failing both child and parent workflow, due to which other child workflow are terminating.
is there any solution to this?

1 Like

Do you catch the ChildWorkfowFailure in the parent workflow code? If it is not handled the parent workflow fails.

thank, its working now.