Class CodeActionDefinition
Represent a code action in a process scheme
Inheritance
↳ object
↳ BaseDefinition
↳ CodeActionDefinition
Inherited Members
BaseDefinition.DesignerSettings
Equals(object)
Equals(object, object)
GetHashCode()
GetType()
MemberwiseClone()
ReferenceEquals(object, object)
ToString()
Namespace: OptimaJet.Workflow.Core.Model
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic class CodeActionDefinition : BaseDefinition
Properties
OriginalName
If object was inlined, you can get its original name from this property
Declarationpublic string OriginalName { get; set; }
Type | Description |
---|---|
string |
OriginalSchemeCode
The code of the scheme to which the inlined object originally belonged.
Declarationpublic string OriginalSchemeCode { get; set; }
Type | Description |
---|---|
string |
WasInlined
Return true if the object was inlined.
Declarationpublic bool WasInlined { get; set; }
Type | Description |
---|---|
bool |
ActionCode
Source code of the code action
Declarationpublic string ActionCode { get; set; }
Type | Description |
---|---|
string |
Type
Type of the code action CodeActionType
Declaration[JsonConverter(typeof(StringEnumConverter))]
public CodeActionType Type { get; set; }
Type | Description |
---|---|
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
Declarationpublic bool IsGlobal { get; set; }
Type | Description |
---|---|
bool |
IsAsync
If true the code action should be called asynchronously
Declarationpublic bool IsAsync { get; set; }
Type | Description |
---|---|
bool |
Usings
List of usings separated by ;
Declarationpublic string Usings { get; set; }
Type | Description |
---|---|
string |
ExcludedUsings
List of usings separated by ;
Declarationpublic string ExcludedUsings { get; set; }
Type | Description |
---|---|
string |
ParameterDefinitions
List of CodeActionParameterDefinition for this code action
Declarationpublic List<CodeActionParameterDefinition> ParameterDefinitions { get; set; }
Type | Description |
---|---|
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)
Type | Name | Description |
---|---|---|
string | name | |
string | usings | |
string | actionCode | |
string | isglobal | |
string | type | |
string | isAsync | |
List<CodeActionParameterDefinition> | parameterDefinitions |
Type | Description |
---|---|
CodeActionDefinition |
Create(string, string, string, string, string, string, string, List<CodeActionParameterDefinition>)
Create CodeActionDefinition object
Declarationpublic static CodeActionDefinition Create(string name, string usings, string excludedUsings, string actionCode, string isglobal, string type, string isAsync, List<CodeActionParameterDefinition> parameterDefinitions)
Type | Name | Description |
---|---|---|
string | name | Name of the code action |
string | usings | List of usings separated by ; |
string | excludedUsings | List of exluded usings separated by ; |
string | actionCode | Source code of the code action |
string | 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 |
string | type | Type of the code action <xref href="OptimaJet.Workflow.Core.Model.CodeActionType" data-throw-if-not-resolved="false"></xref> |
string | isAsync | if true the code action should be called asynchronously |
List<CodeActionParameterDefinition> | parameterDefinitions | List of <xref href="OptimaJet.Workflow.Core.Model.CodeActionParameterDefinition" data-throw-if-not-resolved="false"></xref> for this code action |
Type | Description |
---|---|
CodeActionDefinition | CodeActionDefinition object |
Clone()
Declarationpublic CodeActionDefinition Clone()
Type | Description |
---|---|
CodeActionDefinition |