Sorry for opening this old post.

you can call your function with your simple.body?
/simple("${body.getAttribute(levelIdentifier)}/

/You can call a bean in the setHeader so the result of the bean is the
header value. /


That I do :

.setHeader(Exchange.FILE_NAME).simple("bean://Mymethod?method=getAttribute('test')")
.to('file://path)

public String getAttribute(String key){
                String res = key
                int nb = 0;
                nb++
                return res +"${nb};
        }

it doesn't work :/



-----
regards,
Bovas
--
View this message in context: 
http://camel.465427.n5.nabble.com/Assigning-File-names-to-exchanges-generated-from-split-tp5715603p5736270.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to