Upgrade to Pro — share decks privately, control downloads, hide ads and more …

When Until Successful Fails

When Until Successful Fails

An investigation into Error Handling when the Until Successful scope fails in the MuleSoft Anypoint Platform

Avatar for MuleChampion1234

MuleChampion1234

June 30, 2017
Tweet

More Decks by MuleChampion1234

Other Decks in Technology

Transcript

  1. DEFAULT SETUP • Asynchronous • Must configure object store first

    • Otherwise set to Synchronous, which cannot be used with an object store • In following tests, set to Synchronous
  2. TEST I: SETUP • Success Flow (returns 200) • Fail

    Flow (returns 400) • Call Each to prove response
  3. TEST II: SETUP • Call the success endpoint, wrapped in

    processor chain & Synchronous Until Successful scope • Catch Errors and set payload to “Error has been caught” if there is an error
  4. TEST III: SETUP • Call the fails endpoint, wrapped in

    processor chain & Synchronous Until Successful scope • Catch Errors and set payload to “Error has been caught” if there is an error
  5. TEST IV: SETUP • Common Context: Orchestration Strategy in Process

    API, when calling system APIs • Call Retry Success, log output • Call Retry Fail, log output • Attempt to set Payload (do more work) after failing endpoint • What do you think the response will be?
  6. TEST IV: RESULTS - LOGS • Logs consistent as before,

    • Payload returned with error handling
  7. TEST IV: RESULTS - RESPONSE • Processing Continues as the

    error was handled downstream in the flow. • Key Takeaway: • When work fails with Until Successful scope downstream, must handle the response explicitly if you want processing to stop!