You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Claus Ibsen <cl...@gmail.com> on 2011/03/24 11:32:27 UTC

Re: Camel-Tracer - Valid Case ID

Hi

You should generally use the user mailing list for questions on Camel.
Do you mind posting your mail again there?



On Tue, Mar 22, 2011 at 8:50 PM, Thomas Neuböck
<Th...@infor.com> wrote:
> Hello,
>
> I'd like to use the camel tracer functionality - in our application -  to produce logging data, which I'd like to take as input data for a process mining tool.
> For this it's basically necessary to produce per event an entry in the protocol structure (works as shown in the trace example). Per Case, each event should get the same(!!!) CaseID and some event dependent information.
>
> My first thought was to use the provided Exchange-ID as my valid case-id. But as my tests has shown, the exchange id is not stable in one single case (e.g. using a splitter and aggregator). Now I'm wondering if camel is able to provide me a valid case-id for the events of an case?
>
> Could anyone gives me a hint?
>
> Actually I've implemented a appropriate  TraceEventHandler and TraceEventMessage. As temporary solution I've implemented a routine which puts a case-id in the header of the message if no correlation-id is known or use the case-id if there is a correlation-id. My tests has shown that the first message has no correlation-id (incrementing a class variable), all following has one. I'm not sure if this rule for every possible situation holds.
>
>
> Thank you in advance.
> Thomas
>
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/