Configure a Script activity
Use the following procedure to configure a Script activity.
-
Add an activity to the map.
By default, the Configuration tab is open in the properties panel of the activity.
- Change the default Name of the activity to something meaningful.
-
On the
Type list, select
.
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.
-
Modify the script or enter the new script as needed. Right-click on the rule editor to use the process or server
variables in your script.
You can reuse the script by copying and pasting it in another script.
-
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.
-
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.
-
- Save the process map.