Search code examples
flowgear

Error not throwing in workflow


Although an error is being thrown in the child workflow (intended), the parent workflow logs show otherwise. I need that error to be thrown and stop validation so I can display an error message to the user in an external system. Parent Workflow Logs Child Workflow logs


Solution

  • Errors don't propagate up from iterators. In your example you have regexmatcher which is an iterator (it fires for every match). If you don't need it to fire for every match and just want the first match, use regexmatchone.

    If you do need to propagate an error up past an iterator, here's an example of how to do that: http://flowgear.me/s/3Q2N7Wv

    Also, although this doesn't directly address your question, http://developers.flowgear.net/kb/Error_Handling is worth looking at.