hasMessages or StepStatusFail?

Hi,

I know there are two OOTB when conditions to check the status (ex. after running Obj-Open method) - hasMessages and StepStatusFail. Both reside @baseclass but are these any different or is one better practice to use over the other?

Thanks,

@CloeW938

hasmessages will just be checking if you have a message on your step page. Nothing else. Where StepStatusFail is checking if your used method on that step has failed or not.

I don’t know if this helps sorry.

@MarcLasserre_GCS

Thank you for the response. If I want to check if Obj-Open method succeeded or failed, then does that mean I should be using StepStatusFail over hasMessages, correct?

@CloeW938

On Out-Of-The-Box activities we usually use StepStatusFail yes: