Customer Portal

Ensuring graph exceptions/errors 'bubble up' to a JobFlow

Comments 3

  • Avatar
    imriskal
    0
    Comment actions Permalink
    Hi,

    The described behavior already is the default one, this is how the jobflow is supposed to work. So the question is what is different on your side.

    1) Jobflow is automatically stopped when a child graph ends with error. If you want to change this default behavior, you can set "Stop processing on fail" property to true.
    2) Error message in a child graph is automatically propagated into the parent jobflow. There are settings which prevent this from happening but they have to be set manually.

    Could you please send me the jobflow and the graph? I would like to see the settings you used.

    Thanks.
  • Avatar
    flagellum
    0
    Comment actions Permalink
    Thanks for responding, Lubos.

    I believe the problem we were having is that we believed we needed to use the Fail component inside our Graphs. All we had to do was remove the Fail components from inside the graphs and the errors bubbled up as expected!

    However, some of our graphs apply business rules which require us to throw an exception (via a Fail component) when those rules have been broken. I'll spend a few days reproducing my issue before wasting your time on my jobflow and graphs. For now, we can work around this if we edit the JobFlow's Fail component's mapping like so:

    ExecuteGraph_RunStatus.errMessage --> Fail.errorMessage
    (these aren't automatically mapped as we expected them to be)

    I'll get back to you early next week with a sample jobflow/graph.
    Thanks,
    -- flag
  • Avatar
    flagellum
    0
    Comment actions Permalink
    After a little more experimentation, we determined we do get teh desired behavior when configured properly.

    Thanks again!
    -- flag

Please sign in to leave a comment.