[ 
https://issues.apache.org/jira/browse/CAMEL-20607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17830037#comment-17830037
 ] 

Claus Ibsen edited comment on CAMEL-20607 at 3/23/24 9:25 AM:
--------------------------------------------------------------

TODO: only set variable if success *DONE*
TODO: upgrade guide *DONE*
TODO: unit test for throw exception *DONE*
TODO: unit test for onException / errorHandler handleded true|false *DONE*
TODO: unit test for stop *DONE*
TODO: unit test for rollback / rollback-last *DONE*




was (Author: davsclaus):
TODO: only set variable if success *DONE*
TODO: upgrade guide *DONE*
TODO: unit test for throw exception
TODO: unit test for onException / errorHandler handleded true|false
TODO: unit test for stop
TODO: unit test for rollback / rollback-last



> 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)

Reply via email to