Workflow Soluiton

 View Only
  • 1.  Critical Errors

    Posted Dec 01, 2011 02:17 PM

    When doing the install for 7.1, it asks if I want Critical Errors to be logged with Process Manger.   I understand from the release notes:

    The critical errors model runs when any errors

    in the workflow happen that are not handled by

    exception triggers. The default behavior of this

    model is to log the error to the Process Manager

    database.

     

    But what happens when there is a critical error and I don't have this checked?   Nothing?   Just trying to find out why I would not want to do it.



  • 2.  RE: Critical Errors
    Best Answer

    Posted Dec 01, 2011 03:01 PM

    The purpose of the Critical Errors model is to provide a model, out-of-the-box, where the user can implement rudimentary error handling. In my opinion, it was added to gently nudge users, saying "hey, error handling in workflows is fairly important to have, so you don't tear your hair out wondering why your flow is broke". The lone component in the flow does the logging... you can easily replace this with an email to an admin if you like.

    Basically anytime an unhandled exception gets thrown, the Critical Error model takes over... unless you have an exception component handling your error in the controlling model.

    The Critical Errors model is by no means required; you can delete the entire Critical Errors model and your flow will still function. If you don't have an exception component OR this model, your flow would just abort upon hitting an unhandled exception.



  • 3.  RE: Critical Errors

    Posted Dec 01, 2011 03:07 PM

    Thanks.  I require error handling in all our models, so not a big deal for us I guess.  Makes sense to try and nudge people in the right direction though.