Re: Implementing a counter in XML DSL and Simple

2015-05-15 Thread Andrew Block
Dan, Each exchange executing within the split is independent of each other. Incrementing the value of a header on one split exchange will have no effect on another.  If you want to get the number of split items, it is available after the split in Exchange.CamelSplitSize header.  In addition,

Implementing a counter in XML DSL and Simple

2015-05-15 Thread Davis, Daniel
>From Claus' 2011 blog I tried to implement a counter but I cannot get it to work inside a splitter (I need a count of only a subset of items). The example code is: ${header.myCounter}++ By itself this code fails because myCounter is not a number. So I initialized it outside the Split bu