I am trying to find a word in a PDF (the word is Previous) and if that word exists, continue the process. If that word does not exist, end the process. I have an activity to open up the PDF and my though is, use an assign to find the word, then use an IF and create a condition stating If the variable is true (meaning the word exists) then use continue activity, else send out an email alert and terminate workflow.
I’m not sure how to do this the right way or if this is the right way to handle.
Put this in a flowchart instead of a sequence. In the else assign an integer to something like success|1 or something like that and take the send email message out of the else. Then use a flow decision with a condition if success = 1 then send an email. The process will stop after that.
If you are using a state machine then you can add a throw with a new business rule exception with your message and have a business rule exception isNot Nothing path to the end state and your automation will stop