SystemCallPreParser

Configuration file

./conf/samples/sample_SystemCallPreParser.properties

Class name

com.ebd.hub.datawizard.parser.SystemCallPreParser

Description


This preparser is able to invoke a system program and direct the input data to its stdin, and the stdout to the profile. It expects a properties file with the following parameters for configuration:

Note: If the stdout should be directed to a Response in phase 6, it is possible to use the PreParserPostExecuter in combination with the SystemCallPreparser.


command

System program to be invoked. Attention should be paid to the fact that the environment variable PATH will not be used, so the whole path has to be specified.

timeout

Timeout limit for the system call in milliseconds. Every transferred byte resets the timer.

directory

The directory, in which the program is executed. The default value is the installation directory of the Integration Server.

charset

Character encoding for error messages from the stderr of the system program. The default value is the encoding used in the profile.

ENV.<VARNAME>

Defines the environment variable VARNAME. If an environment variable of the same name is set at the start of the integration server, it will be overwritten.

Example file



sample_SystemCallPreParser.properties
# sample properties for Preparser: com.ebd.hub.datawizard.parser.SystemCallPreParser
#command is mandatory
#here: call of gpg. Note: PATH is not used to locate the command file.
# for calling a shell script or batch: start command processor (/bin/bash or C:/Windows/cmd.exe) with appropriate syntax
# gpg -d -o - - means: call gpg for decryption, use stdout (-o -) and stdin (-), keystore may not have a password!
command=C:/Program Files/GNU/GnuPG/gpg.exe -d -o - -
#timeout for idle stdout. Each byte from command's stdout will reset the time. Default: 10000 (=10 sec)
#timeout=300000
#current directory for processing command. Default: <IS>
#directory=C:/tmp
#charset for error messages from command's stderr. Default: profile encoding
#charset=8859_1
#additional environment variable (here: HOME) for command. If already set in IS start env, the value is replaced.
#ENV.HOME=C:/users/demo