Skip to main content

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

Class CodeActionDefinition

Represent a code action in a process scheme

Inheritance

↳ object

    ↳ BaseDefinition

        ↳ CodeActionDefinition

Inherited Members

BaseDefinition.Name

BaseDefinition.DesignerSettings

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 CodeActionDefinition : BaseDefinition

Properties

OriginalName

If object was inlined, you can get its original name from this property

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

OriginalSchemeCode

The code of the scheme to which the inlined object originally belonged.

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

WasInlined

Return true if the object was inlined.

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

ActionCode

Source code of the code action

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

Type

Type of the code action CodeActionType

Declaration
[JsonConverter(typeof(StringEnumConverter))]
public CodeActionType Type { get; set; }
Property value
TypeDescription
CodeActionType

IsGlobal

If true specifies that the code action stored in global parameters but not in scheme. In this case code action is shared between schemes

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

IsAsync

If true the code action should be called asynchronously

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

Usings

List of usings separated by ;

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

ExcludedUsings

List of usings separated by ;

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

ParameterDefinitions

List of CodeActionParameterDefinition for this code action

Declaration
public List<CodeActionParameterDefinition> ParameterDefinitions { get; set; }
Property value
TypeDescription
List<CodeActionParameterDefinition>

Methods

Create(string, string, string, string, string, string, List<CodeActionParameterDefinition>)

Declaration
[Obsolete]
public static CodeActionDefinition Create(string name, string usings, string actionCode, string isglobal, string type, string isAsync, List<CodeActionParameterDefinition> parameterDefinitions)
Parameters
TypeNameDescription
stringname
stringusings
stringactionCode
stringisglobal
stringtype
stringisAsync
List<CodeActionParameterDefinition>parameterDefinitions
Returns
TypeDescription
CodeActionDefinition

Create(string, string, string, string, string, string, string, List<CodeActionParameterDefinition>)

Create CodeActionDefinition object

Declaration
public static CodeActionDefinition Create(string name, string usings, string excludedUsings, string actionCode, string isglobal, string type, string isAsync, List<CodeActionParameterDefinition> parameterDefinitions)
Parameters
TypeNameDescription
stringnameName of the code action
stringusingsList of usings separated by ;
stringexcludedUsingsList of exluded usings separated by ;
stringactionCodeSource code of the code action
stringisglobalIf true specifies that the code action stored in global parameters but not in scheme. In this case code action is shared between schemes
stringtypeType of the code action <xref href="OptimaJet.Workflow.Core.Model.CodeActionType" data-throw-if-not-resolved="false"></xref>
stringisAsyncif true the code action should be called asynchronously
List<CodeActionParameterDefinition>parameterDefinitionsList of <xref href="OptimaJet.Workflow.Core.Model.CodeActionParameterDefinition" data-throw-if-not-resolved="false"></xref> for this code action
Returns
TypeDescription
CodeActionDefinitionCodeActionDefinition object

Clone()

Declaration
public CodeActionDefinition Clone()
Returns
TypeDescription
CodeActionDefinition

Extension Methods