Configure a Script activity

Use the following procedure to configure a Script activity.

  1. Add an activity to the map.

    By default, the Configuration tab is open in the properties panel of the activity.

  2. Change the default Name of the activity to something meaningful.
  3. On the Type list, select Script > Script.
    If a template script was entered when configuring the scripting settings for the System, the default template script appears in the rule editor under Configuration.
  4. Modify the script or enter the new script as needed. Right-click on the rule editor to use the process variables, or server variables in your script.

    You can reuse the script by copying and pasting it in another script.

  5. To ensure that the script is technically accurate, click Validate.

    A message appears to inform if the script is valid or contains errors. If errors occur, resolve the errors and validate the script.

  6. To set other properties for this activity, see Activity properties.

    • When getting the value of a process variable in a script, assign the variable as an input to the activity.

    • When setting the value of a process variable in a script, assign the variable as an output from the activity.

    • When using decimal variables in script activities, the values are converted to float data type, which results in some loss of precision.

  7. Save the process map.