[ https://issues.apache.org/jira/browse/CAMEL-20607 ]
Claus Ibsen deleted comment on CAMEL-20607:
-------------------------------------
was (Author: davsclaus):
TODO: should variableReceive force creating a child exchange to fully control
that changes to body/header does not affect the outcome
> camel-core - Using variableReceive should only set result if exchange was
> process succesfully
> ---------------------------------------------------------------------------------------------
>
> Key: CAMEL-20607
> URL: https://issues.apache.org/jira/browse/CAMEL-20607
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 4.4.0, 4.5.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.6.0
>
>
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)