spring - camel substring operation- n characters from end of message body -
this layup of you, apologize in advance. using apache camel spring dsl. message body has been converted string. want 9th 998th character, preferably using simple expression. have tried
<transform> <simple>${body.substring(8,${body.length}-1)}</simple> </transform>
but camel doesn't recognize subtraction. such, try convert string "1045-2"
integer, , fail. there workaround here?
use groovy, javascript etc more powerful dynamic programming language
<groovy>request.body.substring(8, request.body.length-1)</groovy>
you need add camel-groovy dependency groovy also.
Comments
Post a Comment