The end() is just the corresponding XML end tag, eg </split> or </choice> etc

On Sun, May 21, 2017 at 10:32 AM, Matteo Cusmai <cusmaimat...@gmail.com> wrote:
> 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



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to