Mark Workflow as failed

How can i mark a workflow as a failed one by hard coded as per if condition inside my code. is some cases workflow executed successfully with all activities but i want to mark it as a failed workflow according if condition logic in my code, it could possible ?

you can throw ApplicationFailure from workflow code to fail it, or a custom exception which you set in WorkflowImplementationOptions->setFailWorkflowExceptionTypes

also please dont ping people directly on questions if possible. thanks!

1 Like

@tihomir Thanks.