Message configuration tasks To use a RedirectOUT Process to redirect input files, you use an Event to extract the value of the field and store it in a variable. A script, either before or after the RedirectOUT Process, is used to select the output connector corresponding to the extracted value. Configuring the Event In the Message, configure an Event that extracts the value to be used for selecting the output connector, and store the value in a variable. Creating a RedirectOUT Process In the Message, create a RedirectOUT Process. A RedirectOUT Process has no user interface, and does not require any configuration. Creating a script to select the output connector Create a Before or After Process script that uses the value of the extracted field in the Event to identify the appropriate output connector. You must specify a connector for each value. Example 1 Before RedirectOUT Process script A language code is used to select the appropriate output connector in a Before Process script for the RedirectOUT Process. if ($language = "SWE") { $connector = "HTTP(S)_swe"; } else if ($language = "ENG") { $connector = "HTTP(S)_eng"; }
if ($language = "SWE") { $connector = "HTTP(S)_swe"; } else if ($language = "ENG") { $connector = "HTTP(S)_eng"; }