Configure a Script activity

  1. Add a Script activity to the map. See Add an activity.
  2. On the Extended Properties page of the Script activity, click the Configuration tab.
    If a template script was entered when configuring the scripting settings for the System, a default template script appears in the box. Change the script as needed.
    Note You can reuse the script by copying and pasting it in another script.
  3. To ensure that the script is technically accurate, click Validate.

    A message appears and informs you if the script is valid or contains errors.

    Before continuing, resolve errors and validate the script.

  4. To set other properties for this activity, see Configure the properties of an activity.

    Note the following:

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

    • When setting a 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.

  5. Click Save.