Configure a C# 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 > C# .

    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.