AnsweredAssumed Answered

Changing an Object's Status Based on Conditions

Question asked by Matt_Woelfel_1344 on Jul 1, 2014
Latest reply on Jul 7, 2014 by Mark_Hadler_430

Very simple question, I am curious if there is a function for changing an object's status (e.g. from ENDED_OK to ENDED_NOT_OK) within the post process tab of that object. For example, when executing tasks in another MFT tool (Cleo) by inserting the command in the process tab of a Job, a File not Found can occur. In Automic, there is a warning in the Last Report saying no file was found, but still returns 0 for the return code. I am wondering if, after processing the Job report using PREP_PROCESS_REPORT, is there a way to tell Automic "Hey, there was a File Not Found message in this object, I would like to set the end status to ENDED_NOT_OK instead of ENDED_OK." I am not sure if, since the object has already ran and a report has been created, it is too late to change the objects end status or not. I know it is possible to use the MODIFY_STATE function to change the status TEXT, but not the actual status.

Thank you in advance for your help!

- Matt Woelfel