Yet another attempt to use WorkFlows is blowing up in my face and before I ignore the feature for another year I wanted to confirm the following are true:
[LIST=1]
[*]A WorkFlow that executes a Custom Action will not trigger the SuiteScrpt debugger for that action. So I have a scheduled workflow and I've been observing it's execution schedule. About 3-4 minutes before it's going to run next I launch the script debugger on the Custom Action being called by the workflow. WorkFlow runs, debugger never breaks into code.
[*]Custom Actions scripts that have calls to nlapiLogExecution() will not actually log anything. - I have a WorkFlow that is calling a Custom Action to update some fields, it was not working (no errors, nothing - just not doing anything). Due to issue #1 above I resorted to littering my Action code with debug statements to trace how far the execution was getting to try to pinpoint the offending section. Nothing at all is logged into the Execution Log on the script record.
[*]Throwing an unhandled exception from a Custom Action will NOT interupt the WorkFlow and will not log anything at all. Further more it will not send the script owner or admins an email about the exception. As a result of #1 and #2 above I resorted to throwing bombs all over my code to try to find where things were going wrong, however even throw statements seem to be ignored.
[/LIST]
All of this suggests that my Action is not ACTUALLY being executed, yet it's in the log, it IS being executed.
You couple all of this with the lack of a Save & Run option for a scheduled WorkFlow and you have an incredibly frustrating, time wasting technology to try to work with. I have no debugging and no logging which means I have to take guesses about would could possibly be going wrong, then wait 30 minutes for the WorkFlow to run.
Yes, I know I can change to to Event Based but that isn't a true test. I also have executed my Custom Action code through a SuiteLet and it works perfectly. The real problem here is the black hole that is WorkFlows and how there is NO feedback on what's going on with the custom Action.
I want to use Workflows, I really do which is why I come back and try them out ever 8-12 months but I can't handle this being in the dark on what's going on (or NOT going on!).
Can anyone confirm if the three issues I raise above are indeed the way things are or do I have something else going on here?