Configure a .NET activity

  1. Add a .NET activity to the map. See Add an activity.
  2. On the Extended Properties page of the .NET activity, click the Configuration tab.
  3. Consume the assembly in the Assembly File Path box.
  4. To load a .NET object from the Global Assembly Center (GAC), using the display name of the .NET assembly object, click Yes for Load Assembly Using Full Name.
  5. On the Class list, select the class.
  6. On the Method list, select the method.

    A list of associated parameters appears.

    • If a .NET call contains classes within classes, all available levels of classes appear.

    • If the classes are recursive, only three levels of classes appear.

    • If a .NET call contains arrays within arrays, all available levels of arrays appear.

  7. Map variables to the parameters using dynamic or static values.
    Note
    • You can only provide static values for an input variable.

    • A parameter type containing a question mark (for example, Boolean?) indicates the parameter is nullable.

    • TotalAgility does not support Dynamic Complex variable mappings on more than two levels.

    • The Dynamic Complex variables are always passed as an object to the custom .NET method. For example, a String array (public boolean methodName (string[][] StringArray) as an input parameter on your custom dll does not work as TotalAgility passes a Dynamic Complex variable as an object. Instead, use public boolean methodName (object StringArray,) and then convert the object to string[][] in your method.

    • To help transfer asset binary data, map string variables as an input or output to byte[] array type parameter. The variable must contain asset ID as value. If mapped to output variable, this value can be empty.

  8. Click Save.

    All the parameters must be mapped; otherwise, a message indicates that the parameters list is incomplete.