How to terminate workflow

hello guys,
In my web app if my element exist “geterror” is true then terminate or close my work flow the else part is working correctly…
red circle highlighted where i want terminate my workflow…

pls suggest me which activity should i use and how ?

1 Like

Hi @Assetsoft,

if you are using re-framework then redirect the process state to end process state by throwing an exception called business exception

Though this is not an optimal usage of terminate workflow activity as this does an abrupt ending of the process:-
you can also use terminate workflow and give the exception as New exception (“exception message write here”) in the properties of the terminate workflow activity
also give the reason for terminating

hey @srishsai thanks for replay urgently…
its working and it showing error message…

but is there any option to hide message or it will not appear…

i didnot get the exact requirement , can you please elaborate

below exception message is displaying

so my question is their any way to hide this msgbox and close directly…

Hope this would help you

Cheers @Assetsoft

thanks @Palaniyappan

it looks great…

bt i dont know how i can use try catch in my workflow…