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.

Note 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.

  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 > VB.Net.

    The default script appears in the rule editor.

  4. Modify the existing template script or enter a new script. Right-click on the rule editor to use the process variables, or server variables in your script.
    Important 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)"].
  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. Save the process map.