Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20607

camel-core - Using variableReceive should only set result if exchange was process succesfully

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.4.0, 4.5.0
    • 4.6.0
    • camel-core
    • None
    • Unknown

    Description

      Users may use onException to handle failures during processing, and want the exchange to break out and return the built response as-is, just like without using variables.

      So variables will store the result only if success, like a programming like

      var foo = callMyFunction(exchange);

      Here foo is only assigned a variable if callMyFunction completed and returned a value, if an exception was thrown then foo is not assigned anything.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: