How to complete the process if there are no unread messages. You need to complete with the status "Success"
Do you want to close the program ? @Leonid_Bernatskikh
Yes, but no error
In Else part, just use Log Message or Write Line Activity and write like “Unread mails not found”.
Hmmm its perfect you are using reframe work. you can use Throw Activities.
new Exception("Throwing an exception because something went wrong")
new BusinessRuleException("Throwing an exception because this transaction needs to be referred back to the business")
Use Terminate workflow activity to stop process.