Solved it myself:
expression: ${variables.counter1}++
ચિરાગ/चिराग/Chirag
------------------------------------------
Sent from My Gmail Account
On Sun, Mar 17, 2024 at 10:59 PM Chirag <[email protected]> wrote:
> I want to build a counter in a route,
>
> Reading
> https://camel.apache.org/components/4.4.x/languages/simple-language.html
> [image: image.png]
> It says that ++ can be used with a function.
>
> Can someone help with an example?
>
> ચિરાગ/चिराग/Chirag
> ------------------------------------------
> Sent from My Gmail Account
>