hi,
i have multiple pdf files in there in “INPUT” folder.
once i read directory pdf files in for each loop if there are pdfs it will read all files. and move to success folder
if No Pdf files in there in directory . i want to show error and send email to use TRY catch activity
If the condition is true , then in then section loop through all files using for each activitiy
If the condition is false , then in else section u can use mail message activitiy to send email
Or
if u want to use try catch too, then in else section use throw activity to throw a New BusinessRuleException and in catch section corresponding to that exception use mail message activitiy to send an email regarding no files found
i tried 1st method its working
but second method using try catch activity in catch block it doesn’t catch error and mail activity … how to use in catch block ?
Can u share screenshot of how u did for 2nd method
2 ND method is same as first one but difference is that u need to surround ur Workflow sequence in try catch
and in else section add business rule exception by using throw activity and in catch section add business exception and in corresponding section use mail message activitiy