stop workflow in specifc case

Hi @mokrani -

You are posing some interesting questions! I talked to one of the devs, and there a couple of options here.

  1. Use the --launcher.suppressErrors option, and remove the -noexit option, on the original workflow in batch mode. Even if the workflow encounters the Fail In Execution node, the popup error dialog will not appear. This has the downside of suppressing any other errors that may occur, though.

  2. Create a separate workflow, and use the Call Local Workflow node (see attached example). This node will execute successfully even if it encounters an error in the workflow that it calls.

CallLocalWorkflowExample.knwf (6.3 KB)

Try these out and let us know what you think!

3 Likes