Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This language is an extension the to the Simple language so the Simple syntax applies also.
All the file tokens uses the same as the method on the java.io.File object, for instance file:absolute refers to the java.io.File.getAbsolute() method.

...

Expression

Description

file:name

refers to the file name

file:name.noext

refers to the file name with no extension

file:parent

refers to the file parent

file:path

refers to the file path

file:absolute

refers to the absolute file

file:canonical.path

refers to the canonical path

date:command:pattern

for date formatting using the java.text.SimepleDataFormat patterns. Supported commands are: now for current timestamp, Is an extension to the Simple language. Additional command is: file for the last modified timestamp of the file. in.header.xxx or header.xxx to use the Date object in the IN header with the key xxx. out.header.xxx to use the Date object in the OUT header with the key xxx.

bean:bean expression

invoking a bean expression using the Bean language.

simple:simple expression

to invoke the simple expression, however simple: can be omitted as this language extends the simple language

Samples

Lets assume we use the file consumer to read files and want to move the read files to backup folder with the current date as a sub folder. This can be archived using an expression like:

...