Assembly: OptimaJet.Workflow.Core

Class ActionDefinitionReference

OptimaJet.Workflow.Core.Model.ActionDefinitionReference

Represents a named reference to an action or to the condition logic evaluated for a ConditionType.Action condition.

public class ActionDefinitionReference

Properties

public string ActionName { get; set; } #
Gets or sets the name used to resolve the referenced action or the condition logic evaluated for a ConditionType.Action condition.
public int Order { get; set; } #
Gets or sets the order in which Workflow Engine executes an ActionDefinitionReference in ActivityDefinition.Implementation or ActivityDefinition.PreExecutionImplementation.

Remarks

Workflow Engine executes those references in ascending ActionDefinitionReference.Order order. This value does not affect the order in which conditions are evaluated when the reference is assigned to ConditionDefinition.Action.
public string ActionParameter { get; set; } #
Gets or sets the parameter supplied to the referenced action or to the condition logic evaluated for a ConditionType.Action condition.

Remarks

Workflow Engine applies parameter substitutions before invoking logic supplied by an IWorkflowActionProvider implementation or a matching CodeActionDefinition.
public bool IsSystem { get; set; } #
Gets or sets a value indicating whether Workflow Engine resolves the reference as a built-in system action during activity execution.

Remarks

This value does not affect a reference assigned to ConditionDefinition.Action.

Methods

public static ActionDefinitionReference Create(string actionName, string order, string parameter) #
Creates an ActionDefinitionReference by parsing order as an int.

Parameters

Name
Type
Description
actionName
String
order
String
The text parsed and assigned to ActionDefinitionReference.Order.
parameter
String

Returns

Type
Description
ActionDefinitionReference
A new ActionDefinitionReference initialized from the supplied values.

Exceptions

Type
Description
ArgumentNullException
order is null.
FormatException
order is not in a valid integer format.
OverflowException
order represents a number outside the range of int.
public ActionDefinitionReference Clone() #
Creates a shallow copy of this ActionDefinitionReference.

Remarks

ActivityDefinition.Implementation and ActivityDefinition.PreExecutionImplementation contain action references for normal execution and pre-execution simulation, respectively. ConditionDefinition.Action contains the reference evaluated for a ConditionType.Action condition.