Skip to main content

Invoke Code

Description

This Activity compiles and executes the specified Code under a selected Language.

Properties

Input

  • Arguments – Specify the collection of parameters to pass to the Code. Clicking on the ellipsis button beside this property will pop up the Argument grid. The Argument grid has the following columns:
FieldDescription
NameThe name of your argument.
DirectionSelect the direction of your argument. You can select from the following options:
  • In: argument will be used to pass input to Code
  • Out: argument will be used to pass output from Code
  • In/Out: argument can be used to pass input to and receive output from Code
  • Property: not used
    This is a mandatory field
Argument typeEnables you to choose the type of your argument. The drop-down has the following options:
  • Boolean
  • Int32
  • String
  • Object
  • Array of [T]
  • Browse for Types
You can select a .Net type from the Browse dialog, it will be added to Argument type drop-down list.
This is a mandatory field.
ValueBind a value to this argument. You can bind local variables to send dynamic input and receive dynamic output to and from the executed Code.
  • Code – Specify the Code to execute. If Code has any errors and warnings, the Activity will have validation errors specifying the line number and position of errors and warnings.

  • Language – The Language of the Code.

    note

    The Language currently supported is C#.

  • Continue On Error – Specifies if the automation should continue even when the Activity throws an error. This field only supports Boolean values (True, False). The default value is False.

    note

    Catches no error if this Activity is present inside the Try-Catch block and the value of this property is True.

Misc

  • DisplayName – Add a display name to your Activity.
  • Private – By default, Activity will log the values of your properties inside your workflow. If private is selected, then it stops logging.

Example

Download Example

Analyze Form