Create a JavaScript Probe activity
Create a JavaScript Probe activity to instruct a MID server to execute server-side javascript.
시작하기 전에
Role required: activity_creator or workflow_admin
이 태스크 정보
The JavascriptProbe activity has the same functionality as making ‘Packages’ calls into standard Java libraries. It allows you to have more control over the Java libraries on the MID Server. You can load your own JAR files on the MID Server and have the JavascriptProbe make Package calls into those java files.
프로시저
다음에 수행할 작업
Finish creating your JavaScript probe activity by creating output variables, creating a parsing rule, or Conditions. Refer to the create custom activities topic to know your template options.
JavaScript probe template execution parameters
You use execution parameters to create the input process script in the Preprocessing form of the activity designer.
executionParam. prefix with all variables in
this table.| Name | Variable | Type | Usage |
|---|---|---|---|
| Script Type | script_type | Enumerated | Type of script to run. The possible types are:
|
| 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: |
| ValueCapabilities | valueCapabilities | Array of hashmap | Capability values used to select the MID Server. For more information, see
MID Server capabilities. If there are additional capabilities that are assigned by value, use this
example to customize the MID Server
selection: |
JavaScript probe template post-processing parameters
Use these parameters to create a post-processing script.
| Name | Variable | Type | Usage |
|---|---|---|---|
| Payload | payload | String | Contains raw payload returned from the JavaScript Probe. |
| Output | output | String | Contains output data returned from the JavaScript Probe. |
| EccSysId | eccSysId | String | Contains the reference ID associated with the ECC Queue input message. |
| Error Messages | errorMessages | String | Contains the error messages returned from the JavaScript probe. If no error messages are returned, this value is null. |
Configure the JavaScript Probe execution command
Use the input variables you created to configure the command that Orchestration executes on the JavaScript Probe target host.
시작하기 전에
Role required: activity_creator, admin