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 ?
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
@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
get the exact requireme
below exception message is displaying
so my question is their any way to hide this msgbox and close directly…
it looks great…
bt i dont know how i can use try catch in my workflow…
You could try and use a Flow Chat and a Decision Flow. If everything is ok (true), go to the next flow. Otherwise (false) just show a message and nothing else will happen, teminating the workflow
Yes, I am also looking for the same solution, I want to have silent stop the work flow, not any dialog pop up and click ok button. Any one will shred the light?
Use Throw Activity brother
You need to give like this in Exception filed in the properties
New BussinessRuleException(“Your Termination message”)
Hope this will help you
It works well! Thank you!