Create a JavaScript Probe activity

Create a JavaScript Probe activity to instruct a MID server to execute server-side javascript.

Before you begin

Role required: activity_creator or workflow_admin

About this task

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.

Procedure

  1. Create a custom activity.
    This action creates a custom activity using a template.
  2. After setting up general properties and creating input variables, configure the JavaScript probe activity Execution Command:
    OptionDescription
    Map the input variables Use the variables you created to configure the command that Orchestration executes on the MID server.
    Script type Select the type of script to include. Available options are:
    • Custom JavaScript
    • MID Server script include
    Script Custom JavaScript to run with this probe.
    Note: This field is available when the Script type selected is Custom JavaScript.
    MID Server script include Script for the MID Server to run with this probe.
    Note: This field is available when the Script type selected is MID Server script include.
    Select MID Server by host MID Server on which the probe runs.
    Required MID Server capabilities MID Server to use, by capabilities.
    Parameters Name-value pairs to pass to the host with this probe. You can create these parameters manually, or drag input variables into the Parameters fields and assign a value.
    Note: You can map parameter values in a test payload to variables in the Outputs tab automatically. See automap output variables.

What to do next

Finish creating your JavaScript probe activity by creating output variables, creating a parsing rule, or creating template conditions. Refer to the create custom activities topic to know your template options.