For the list of all supported Decision Insight downloads and releases, see the Downloads page.

Exec

The Exec component is for executing system commands. Learn how to use the Exec component.

Library

Create a new library with the following jars (in this order):

See also How to retrieve the Camel version of Decision Insight.

Route sample (Windows)

This example will print the files and directories name present in C:\ :

<routes xmlns:u="http://www.systar.com/aluminium/camel-util" xmlns="http://camel.apache.org/schema/spring">
    <route>
        <from uri="timer://foo?repeatCount=1"/>
        <to uri="exec://c:/windows/system32/cmd.exe?args=/c dir /b c:\"/>
        <setBody>
            <simple>${body.getStdout}</simple>
        </setBody>
        <split>
            <tokenize token="\r\n">${body}</tokenize>
            <to uri="log:testExec"/>
        </split>
    </route>
</routes> 

Related Links