I'm on camel 2.15
I am using parameter file   - ./etc/parameterFile.cfg
inside I have a key=value pair - groupBy=10
in my camel context I am pulling in the parameter, however, it is a string.
I need to convert it to int. is there such a utility?  thank you,  I am
using it for the tokenize token group for splitting. 

            <route id="inRoutemt1" routePolicyRef="startPolicy" 
            <from id="mainProcessingRoute" ref="AsciiGatewayBackfill" />
            <convertBodyTo type="java.lang.String" />
            <log message="File ${file:name} was received for ASCII Splitter."/>
            <setHeader headerName="messageDateTime">
            <split streaming="true" >
                <tokenize token="\n" group="{{groupBy}}"/>  
                <log message="Split line Body: ${body}"/>
                <process ref="asciiSplitterProcessor" />
                <log loggingLevel="INFO" message="Successfully sent 
${file:name} to
MT1 Core for Analytics Observation." />
                <to id="windowsShareTarget" uri="file://{{target.folder}}" />  
            <process ref="asciiCleanUp" />

Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1:
'{{groupBy}}' is not a valid value for 'integer'.

View this message in context: 
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to