Hi all,
I would like to write the following DSL route in XML fashion, but I don't
find how to specify the end() tag.

public void configure() throws Exception {
ZipFileDataFormat zipFile = new ZipFileDataFormat();
zipFile.setUsingIterator(true);
from("file://" + dir + "?delete=true&moveFailed=" + errorDir +
"&include=.*.zip")
.split(new ZipSplitter())
    .streaming()
    .to("file://" + dir + "?include=.*.zip")
    *.end()*
.process(proc)
.choice()
.when(header("result").isEqualTo("true")).to("file://" + archiveDirectory)
.when(header("result").isEqualTo("false")).to("file://" + errorDirectory)
.endChoice();
}

There is a way to do this in XML?
Thanks a lot,

Matteo

Reply via email to