Re: .toUpperCase() doesn't work in the simple expression below.

2014-11-17 Thread scottdawson
I use toUpperCase within a simple expression:
setHeader
headerName=flutypesimple${in.header.flutype.toString().toUpperCase().charAt(0)}/simple/setHeader

Try calling toString before toUpperCase.

Regards,
Scott



--
View this message in context: 
http://camel.465427.n5.nabble.com/toUpperCase-doesn-t-work-in-the-simple-expression-below-tp5759065p5759212.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: .toUpperCase() doesn't work in the simple expression below.

2014-11-13 Thread Willem Jiang
I think you can consider to set exchange property by using some other script 
which supports toUpperCase(). Then reference it in the simple expression.

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On November 14, 2014 at 3:04:04 AM, rajivgup...@gmail.com 
(rajivgup...@gmail.com) wrote:
 '{{mainframe.filename}}.$simple{$simple{file:onlyname.noext}.toUpperCase()}.$simple{date:now:'D'yyMMdd}.$simple{date:now:'T'HHmmsss}'
   
 I need to send a upper cased file name to mainframe and the expression above
 throws the following error.
 Is there a work around for this issue ?
  
 org.apache.camel.language.simple.types.SimpleIllegalSyntaxException: Unknown  
 function: mediacashpaid.toUpperCase() at location 26
 'DDSTEST.SAP.ZBTO.SAPFILE.$simple{$simple{file:onlyname.noext}.toUpperCase()}.$simple{date:now:'D'yyMMdd}.$simple{date:now:'T'HHmmsss}'
   
  
  
  
 --
 View this message in context: 
 http://camel.465427.n5.nabble.com/toUpperCase-doesn-t-work-in-the-simple-expression-below-tp5759065.html
   
 Sent from the Camel - Users mailing list archive at Nabble.com.