JavaScript probe template execution parameters

You use execution parameters to create the input process script in the Preprocessing tab of the activity designer.

For descriptions of the JavaScript Probe input fields, see the table in JavaScript probe template inputs.
Note: You must use the executionParam. prefix with all variables in this table.
Table 1. JavaScript template execution parameters
Name Variable Type Usage
Script Type script_type Enumerated Type of script to run. The possible types are:
  • custom_javascript_typ
  • mid_script_include_type
Script script String Script that runs custom JavaScript when the script_type is custom_javascript_type.
Mid script include mid_script_include Reference The sys_id reference associated with the MID Server script include to call, when the script_type is mid_script_include_type.
Source source String Target host on which to run the script.
MidCapabilities midCapabilities String (comma separated) List of required MID Server capabilities.
Parameters parameters Array of JavaScript object Array of JavaScript objects, expressed with the executionParam. prefix. To add more name-value pairs to the parameters array, append them to the existing array. Create a JavaScript object with the following syntax, and add it to the executionParam.parameter array. This assigns additional parameters to the message:
var newParameter = {"name":"parameterName","value":"parameterValue"};
executionParam.parameters.push(newParameter);
ValueCapabilities valueCapabilities Array of hashmap Capability values used to select the MID Server. For more information, see Scripted capability value matching for MID Servers. If there are additional capabilities that are assigned by value, use this example to customize the MID Server selection:
var valueCapability = {'NEW_MID_CAPABIILTY':'NEW_MID_CAPABILITY_VALUE'};
executionParam.valueCapabilities.push(valueCapability);