You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2024/03/23 13:35:00 UTC
[jira] [Resolved] (CAMEL-20607) camel-core - Using variableReceive should only set result if exchange was process succesfully
[ https://issues.apache.org/jira/browse/CAMEL-20607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-20607.
---------------------------------
Resolution: Fixed
> 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)