You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Goyal, Arpit" <ar...@sap.com> on 2016/10/12 17:02:54 UTC

Possible to identify previous step & configuration?

Hi Colleagues,

We have the following route. Is it possible in 'MyPostProcessor' to get the information of the previous step - toD in this case, but it could be different in different case.

from("direct:begin")
.process(new MyInboundProcessor())
.process(new MyTransformer())
.toD("xxxx")
.process(new MyPostProcessor())

Regards,
Arpit.

Re: Possible to identify previous step & configuration?

Posted by fabryprog <fa...@bizmate.it>.
Yes, it is possible but into your steps you must use exchange properties.
Input Message and Output Message are designed to change values into every
step / processor.





--
View this message in context: http://camel.465427.n5.nabble.com/Possible-to-identify-previous-step-configuration-tp5788697p5788699.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Possible to identify previous step & configuration?

Posted by Claus Ibsen <cl...@gmail.com>.
Yes see the message history EIP
http://camel.apache.org/eip

On Wed, Oct 12, 2016 at 7:02 PM, Goyal, Arpit <ar...@sap.com> wrote:
> Hi Colleagues,
>
> We have the following route. Is it possible in 'MyPostProcessor' to get the information of the previous step - toD in this case, but it could be different in different case.
>
> from("direct:begin")
> .process(new MyInboundProcessor())
> .process(new MyTransformer())
> .toD("xxxx")
> .process(new MyPostProcessor())
>
> Regards,
> Arpit.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2