Is there a way to mark a function as “ERROR” when it completes successfully? I have a process that runs, but because of business logic, there are some errors I report in the SysMonitor
I’d like the function to return “Error” even though it completed successfully. I don’t want to raise an exception because some of the processing still needs to happen. Is this possible? Or would it require some kind of EpiMagic behind the scenes?
I ended up having to do a Data Directive. It was simple, I was just hoping to be able to do so from the function. I think the process writes the COMPLETE/ERROR after everything else is done. Hooking into it via the DD did the trick.