You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Roman Kalukiewicz (JIRA)" <ji...@apache.org> on 2008/02/29 21:27:18 UTC
[jira] Resolved: (CAMEL-343) Inconsistent exchange properties
propagation
[ https://issues.apache.org/activemq/browse/CAMEL-343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roman Kalukiewicz resolved CAMEL-343.
-------------------------------------
Fix Version/s: 1.3.0
Resolution: Fixed
Properties are propagated back to super/sub flows. If property gets changed or removed in subflow it is also propagated back to original flow.
> Inconsistent exchange properties propagation
> --------------------------------------------
>
> Key: CAMEL-343
> URL: https://issues.apache.org/activemq/browse/CAMEL-343
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Roman Kalukiewicz
> Assignee: Roman Kalukiewicz
> Fix For: 1.3.0
>
>
> There is an inconsistency in exchange properties propagation. To show few examples:
> ||code||{{test}} property value at {{mock:test}} || due to ||
> |{code}
> from("direct:start")
> .setProperty("test", "inStart")
> .to("direct:subflow")
> .to("mock:test");
> from("direct:subflow")
> .setBody("test")
> .setProperty("test", "inSubflow");
> {code} | inStart | properties are not propagated \\ back if they were set in super flow |
> |{code}
> from("direct:start")
> .setProperty("test", "inStart")
> .to("direct:subflow")
> .to("mock:test");
> from("direct:subflow")
> .setProperty("test", "inSubflow")
> .setBody("test");
> {code} | inSubflow | property is set to new value as \\ pipeline sends original \\ exchange to first step of pipeline |
> |{code}
> from("direct:start")
> .to("direct:subflow")
> .to("mock:test");
> from("direct:subflow")
> .setBody("test")
> .setProperty("test", "inSubflow");
> {code} | inSubflow | properties are propagated \\ back by default |
> I believe we should clearly define how properties should be propagated:
> * should they be kept for the whole flow and every change is visible to sub/super flows, or
> * should they be visible only in scope of *current* flow and interaction with sub-flows (invoked by and endpoint) should be done with headers.
> I believe that first is easier for users as they have a way to hold some data for further processing (while they are not exposed as protocol specific headers).
> If you have another ideas - please advice.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.