The Execute Command line Transport – Converts an incoming XML message to a command line and executes it.
Configure the Transport Name as desired.
On the Basic configuration tab, you will see the Command Source drop-down menu. Here you’ll select the source of the command to execute:
- Transaction data gets the command from the current data stream;
- Simple Config allows a simple command to be configured in the UI;
- Script File allows for the execution of a command script file.
The Command field is used for providing the command to execute when this transport runs.
The Script File is the path to the command script to execute. This script needs to be in the appropriate Format.
The Params is used to provide parameters to the command to be executed. Each parameter will be used in its entirety, even if it has multiple elements.
The Command timeout is time to wait for the command to complete – in seconds.
The Advanced tab configuration
If the system command will return data that will be used to invoke another interface, specify the CallBack Listener. This Listener name should match the Programmatic or Triggerable Listener name of the route that you wish to invoke. For this example, the name given was: SomeProcessListener.
The Pipe Data checkbox allows the users to pipe the transaction data into the standard input stream of the process started by the command. the command must support reading data from standard in.
The Allow Failure checkbox can log the command failing (if selected) and the transaction will be continued with the failure message in the data, in this case. Otherwise if the command fails, an exception will be thrown and the route will terminate.