Assembly: OptimaJet.Workflow.Core

Class CodeActionDefinition

OptimaJet.Workflow.Core.Model.CodeActionDefinition

Represents the source code and compilation settings for a Code Action that Workflow Engine invokes as an action, condition, or rule.

public class CodeActionDefinition : BaseDefinition

Type Hierarchy

Properties

public string OriginalName { get; set; } #

Gets or sets the Code Action name before this Code Action was first inlined into another process scheme.

public string OriginalSchemeCode { get; set; } #

Gets or sets the code of the process scheme from which this Code Action was first inlined.

public bool WasInlined { get; set; } #

Gets or sets a value indicating whether scheme inlining copied this Code Action from another process scheme.

public string ActionCode { get; set; } #

Gets or sets the C# method body compiled for this Code Action.

[JsonConverter(typeof(StringEnumConverter))] [JsonConverter(typeof(SystemStringEnumConverter<CodeActionType>))] public CodeActionType Type { get; set; } #

Gets or sets the CodeActionType that determines how this Code Action is compiled and invoked.

public bool IsGlobal { get; set; } #

Gets or sets a value indicating whether this Code Action is stored in Workflow Engine global parameters and made available across process schemes.

public bool IsAsync { get; set; } #

Gets or sets a value indicating whether this Code Action is compiled and invoked asynchronously.

public string Usings { get; set; } #

Gets or sets the semicolon-separated namespace imports added when this Code Action is compiled.

public string ExcludedUsings { get; set; } #

Gets or sets the semicolon-separated namespace imports excluded when this Code Action is compiled.

public List<CodeActionParameterDefinition> ParameterDefinitions { get; set; } #

Gets or sets the ordered CodeActionParameterDefinition form-field definitions used by Workflow Designer to build the structured editor for this Code Action's parameter.

Remarks

A nonempty collection takes precedence over the format supplied by IDesignerParameterFormatProvider for the matching Code Action.

Methods

public CodeActionDefinition Clone() #

Creates a copy of this CodeActionDefinition.

Returns

Type
Description
CodeActionDefinition

Exceptions

Type
Description
NullReferenceException

Remarks

The returned CodeActionDefinition.ParameterDefinitions list is empty when this instance's CodeActionDefinition.ParameterDefinitions value is null.