Assembly: OptimaJet.Workflow.Core

Class ExecutionRequestParameters

OptimaJet.Workflow.Core.Execution.ExecutionRequestParameters

Contains the ConditionDefinition and ActionDefinitionReference instances, together with transition context, for a single execution request.

public sealed class ExecutionRequestParameters

Properties

public ActionDefinitionReference[] Methods { get; set; } #
Gets or sets the ActionDefinitionReference instances to execute for ExecutionRequestParameters.Activity.
public ConditionDefinition[] Conditions { get; set; } #
Gets or sets the ConditionDefinition instances to evaluate for the request.
public string TransitionName { get; set; } #
Gets or sets the name of the transition associated with the request.
public string ActivityName { get; set; } #
Gets or sets the name of the activity to execute.
public ConcatenationType ConditionsConcatenationType { get; set; } #
Gets or sets the ConcatenationType used to combine ConditionType.Action and ConditionType.Expression condition results.
public ActivityDefinition Activity { get; } #
Gets the ActivityDefinition to execute.
public bool IsAlways { get; } #
Gets a value indicating whether any condition has ConditionDefinition.Type set to ConditionType.Always.
public bool IsOtherwise { get; } #
Gets a value indicating whether any condition has ConditionDefinition.Type set to ConditionType.Otherwise.
public bool IsConditionOrExpression { get; } #
Gets a value indicating whether all conditions, if any, have ConditionDefinition.Type set to ConditionType.Action or ConditionType.Expression.
public bool HasExpression { get; } #
Gets a value indicating whether any condition has ConditionDefinition.Type set to ConditionType.Expression.

Methods

public static ExecutionRequestParameters Create(TransitionDefinition transition) #
Creates parameters for evaluating the conditions of transition and executing its destination activity with ActivityDefinition.Implementation.

Parameters

Name
Type
Description
transition
TransitionDefinition

Returns

Type
Description
ExecutionRequestParameters
An ExecutionRequestParameters populated from transition.
public static ExecutionRequestParameters Create(TransitionDefinition transition, bool isPreExecution) #
Creates parameters for evaluating the conditions of transition and executing its destination activity.

Parameters

Name
Type
Description
transition
TransitionDefinition

Returns

Type
Description
ExecutionRequestParameters
An ExecutionRequestParameters populated from transition.
public static ExecutionRequestParameters Create(ActivityDefinition activityToExecute, List<ConditionDefinition> conditions) #
Creates parameters that use ActivityDefinition.Implementation to execute activityToExecute with the supplied conditions.

Parameters

Name
Type
Description
activityToExecute
ActivityDefinition
The ActivityDefinition to execute.
conditions
List<ConditionDefinition>
The ConditionDefinition instances to associate with the execution parameters.

Returns

Type
Description
ExecutionRequestParameters
An ExecutionRequestParameters populated from the supplied arguments.
public static ExecutionRequestParameters Create(ActivityDefinition activityToExecute, List<ConditionDefinition> conditions, bool isPreExecution) #
Creates parameters for executing activityToExecute with the supplied conditions and the selected implementation.

Parameters

Name
Type
Description
activityToExecute
ActivityDefinition
The ActivityDefinition to execute.
conditions
List<ConditionDefinition>
The ConditionDefinition instances to associate with the execution parameters.

Returns

Type
Description
ExecutionRequestParameters
An ExecutionRequestParameters populated from the supplied arguments.