Configure a VB.Net script activity
Set up a VB.Net Script activity in either of the following ways:
-
Manually: Assign a resource to initialize the activity.
-
Automatically: Configure the .Net Script activities to run automatically once the job is created.
Ensure that Microsoft .NET Framework is installed on your machine. For manual .Net Script activities, install .NET Framework on a client machine; for automatic .NET Script activities, install .NET Framework on a server.
To use an external assembly component with a .Net Script activity, add a .Net reference in TotalAgility. See Add a .Net assembly.
-
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
.
The default script appears in the rule editor.
-
Modify the existing template script or enter a new script. Right-click on the rule editor to use the process or server
variables in your script.
When you manually enter the variables, such as ["FirstName"], or select a variable by right clicking on the rule editor, such as S1 (Process variable), for the script to be valid, you must insert the quotes around the variable. For example, ["Firstname"] or ["S1 (Process variable)"].
-
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.
- Save the process map.