This is from the documentation of the file2 component: Use Expression such as File Language to dynamically set the filename. For consumers, it's used as a filename filter. For producers, it's used to evaluate the filename to write. If an expression is set, it take precedence over the CamelFileName header. (Note: The header itself can also be an Expression). The expression options support both String and Expression types. *If the expression is a String type, it is always evaluated using the File Language. If the expression is an Expression type, the specified Expression type is used* - this allows you, for instance, to use OGNL expressions.
I'd like to be able to use a groovy expression, but for the life of me can't figure out how to do it. Can anyone provide an example, or have I misunderstood the documentation? -- View this message in context: http://camel.465427.n5.nabble.com/use-of-expression-in-file-name-tp5731154.html Sent from the Camel - Users mailing list archive at Nabble.com.
