Class ExecutionRequestParameters
OptimaJet.Workflow.Core.Execution.ExecutionRequestParameters
Contains the ConditionDefinition and ActionDefinitionReference instances, together with transition context, for a single execution request.
Namespace: OptimaJet.Workflow.Core.Execution
public sealed class ExecutionRequestParametersProperties
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
transitionTransitionDefinitionThe TransitionDefinition whose TransitionDefinition.To and TransitionDefinition.Conditions values are used.
Returns
Type
Description
ExecutionRequestParametersAn 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
transitionTransitionDefinitionThe TransitionDefinition whose TransitionDefinition.To and TransitionDefinition.Conditions values are used.
isPreExecutionBooleantrue to select ActivityDefinition.PreExecutionImplementation; false to select ActivityDefinition.Implementation.
Returns
Type
Description
ExecutionRequestParametersAn 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
conditionsList<ConditionDefinition>The ConditionDefinition instances to associate with the execution parameters.
Returns
Type
Description
ExecutionRequestParametersAn 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
conditionsList<ConditionDefinition>The ConditionDefinition instances to associate with the execution parameters.
isPreExecutionBooleantrue to select ActivityDefinition.PreExecutionImplementation; false to select ActivityDefinition.Implementation.
Returns
Type
Description
ExecutionRequestParametersAn ExecutionRequestParameters populated from the supplied arguments.