How to complete the process if there are no unread messages. You need to complete with the status "Success"

2 Likes

Do you want to close the program ? @Leonid_Bernatskikh

cheers:D

Happy learning :smiley:

1 Like

Yes, but no error

1 Like

@Leonid_Bernatskikh

In Else part, just use Log Message or Write Line Activity and write like “Unread mails not found”.

1 Like

Yes, it is easy. But he continues to work further, but needs to be stopped.

1 Like

Hmmm its perfect you are using reframe work. you can use Throw Activities.

new Exception("Throwing an exception because something went wrong")
OR
new BusinessRuleException("Throwing an exception because this transaction needs to be referred back to the business")

image

@Leonid_Bernatskikh

cheers :smiley:
Happy learning :smiley:

1 Like

@Leonid_Bernatskikh

Use Terminate workflow activity to stop process.

1 Like

What parameters should be entered in the Expection or in the Reason so that there is no “Error”?