ocs.org/v2/Expressions.
For example an xpath expression can be defined to pull a message id out of an xml message and use that as the file name -
#[xpath:/message/header/@id]
This parser superseeds the (now removed)
org.mule.transport.file.SimpleFilenameParser
which has been kept in Mule 2 for compatibility. The following demonstrates how to achieve the same results when using the
ExpressionFilenameParser
over the
SimpleFilenameParser
- #[DATE] : #[function:datestamp]
- #[DATE:yy-MM-dd] : #[function:datestamp-yy-MM-dd]
- #[SYSTIME] : #[function:systime]
- #[UUID] : #[function:uuid]
- #[ORIGINALNAME] : #[header:originalFilename]
- #[COUNT] : #[function:count] - note that this is a global counter.
- #[<Message Property Name>] : #[header:<Message Property Name>]