How can terminate/stop workflow when some error occur

Hi Team,

I am use three workflow:

  1. Create folder of no. of year(Consider any 10 years).
  2. Create folder of current month.
  3. Create folder of current date.

image

if error occur in ‘invoke current month workflow’ so BOT can stop process and do not to create another year folder. I am using try catch activity but can’t stop process.
How can I terminate/stop workflow.

Thanks
Minal Patil

Hi @minal.patil

You can use Throw activity or Terminate workflow activity

Note: You can use what ever exception you want like new BusinessRuleException,new SystemException,new ApplicationException

Regards
Sudharsan

Thanks it’s work

Great @minal.patil

Kindly mark the appropriate post as solution

Happy Automation!!

Regards
Sudharsan

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.