Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

Class CodeActionParameterDefinition

Represents a parameter for code action

Inheritance

↳ object

    ↳ CodeActionParameterDefinition

Inherited Members

Equals(object)

Equals(object, object)

GetHashCode()

GetType()

MemberwiseClone()

ReferenceEquals(object, object)

ToString()

Namespace: OptimaJet.Workflow.Core.Model

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public class CodeActionParameterDefinition

Constructors

CodeActionParameterDefinition()

Declaration
public CodeActionParameterDefinition()

Properties

Title

Title of the parameter

Declaration
public string Title { get; set; }
Property value
TypeDescription
string

Name

Name of the parameter

Declaration
public string Name { get; set; }
Property value
TypeDescription
string

Type

Type of the parameter ParameterType

Declaration
[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
public ParameterType Type { get; set; }
Property value
TypeDescription
ParameterType

IsRequired

If false specifies that the parameter is optional

Declaration
public bool IsRequired { get; set; }
Property value
TypeDescription
bool

DropdownValues

A list of DropdownValue for a ParameterType.Dropdown parameter

Declaration
public List<DropdownValue> DropdownValues { get; set; }
Property value
TypeDescription
List<DropdownValue>

DefaultValue

A default value of the parameter

Declaration
[JsonConverter(typeof(DefaultValueJsonConverter))]
public string DefaultValue { get; set; }
Property value
TypeDescription
string

Comment

Comment of the parameter

Declaration
public string Comment { get; set; }
Property value
TypeDescription
string

CustomName

Name of the custom implementation to bind. This field is only used for ParameterType.Custom type

Declaration
public string CustomName { get; set; }
Property value
TypeDescription
string

Methods

Clone()

Creates a copy of the parameter definition

Declaration
public CodeActionParameterDefinition Clone()
Returns
TypeDescription
CodeActionParameterDefinitionA copy of parameter definition

CreateTextParameter(string, string, bool, string, string)

Declaration
public static CodeActionParameterDefinition CreateTextParameter(string name, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Parameters
TypeNameDescription
stringname
stringtitle
boolisRequired
stringdefaultValue
stringcomment
Returns
TypeDescription
CodeActionParameterDefinition

CreateNumberParameter(string, string, bool, string, string)

Declaration
public static CodeActionParameterDefinition CreateNumberParameter(string name, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Parameters
TypeNameDescription
stringname
stringtitle
boolisRequired
stringdefaultValue
stringcomment
Returns
TypeDescription
CodeActionParameterDefinition

CreateCheckboxParameter(string, string, bool, string, string)

Declaration
public static CodeActionParameterDefinition CreateCheckboxParameter(string name, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Parameters
TypeNameDescription
stringname
stringtitle
boolisRequired
stringdefaultValue
stringcomment
Returns
TypeDescription
CodeActionParameterDefinition

CreateDropdownParameter(string, Dictionary<string, string>, string, bool, string, string)

Declaration
public static CodeActionParameterDefinition CreateDropdownParameter(string name, Dictionary<string, string> values, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Parameters
TypeNameDescription
stringname
Dictionary<string, string>values
stringtitle
boolisRequired
stringdefaultValue
stringcomment
Returns
TypeDescription
CodeActionParameterDefinition

CreateMultiSelectParameter(string, Dictionary<string, string>, string, bool, List<string>, string)

Declaration
public static CodeActionParameterDefinition CreateMultiSelectParameter(string name, Dictionary<string, string> values, string title = null, bool isRequired = false, List<string> defaultValue = null, string comment = "")
Parameters
TypeNameDescription
stringname
Dictionary<string, string>values
stringtitle
boolisRequired
List<string>defaultValue
stringcomment
Returns
TypeDescription
CodeActionParameterDefinition

CreateDateTimeParameter(string, string, bool, string, string)

Declaration
public static CodeActionParameterDefinition CreateDateTimeParameter(string name, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Parameters
TypeNameDescription
stringname
stringtitle
boolisRequired
stringdefaultValue
stringcomment
Returns
TypeDescription
CodeActionParameterDefinition

CreateDateParameter(string, string, bool, string, string)

Declaration
public static CodeActionParameterDefinition CreateDateParameter(string name, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Parameters
TypeNameDescription
stringname
stringtitle
boolisRequired
stringdefaultValue
stringcomment
Returns
TypeDescription
CodeActionParameterDefinition

CreateTimeParameter(string, string, bool, string, string)

Declaration
public static CodeActionParameterDefinition CreateTimeParameter(string name, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Parameters
TypeNameDescription
stringname
stringtitle
boolisRequired
stringdefaultValue
stringcomment
Returns
TypeDescription
CodeActionParameterDefinition

CreateJsonParameter(string, string, bool, string, string)

Declaration
public static CodeActionParameterDefinition CreateJsonParameter(string name, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Parameters
TypeNameDescription
stringname
stringtitle
boolisRequired
stringdefaultValue
stringcomment
Returns
TypeDescription
CodeActionParameterDefinition

CreateTextAreaParameter(string, string, bool, string, string)

Declaration
public static CodeActionParameterDefinition CreateTextAreaParameter(string name, string title = null, bool isRequired = false, string defaultValue = "", string comment = "")
Parameters
TypeNameDescription
stringname
stringtitle
boolisRequired
stringdefaultValue
stringcomment
Returns
TypeDescription
CodeActionParameterDefinition

Extension Methods