# Class ExecutionRequestParameters OptimaJet.Workflow.Core.Execution.ExecutionRequestParameters Contains the [ConditionDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ConditionDefinition/) and [ActionDefinitionReference](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ActionDefinitionReference/) instances, together with transition context, for a single execution request. Namespace: [OptimaJet.Workflow.Core.Execution](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Execution/) ```csharp public sealed class ExecutionRequestParameters ``` ## Properties `public ActionDefinitionReference[] Methods { get; set; }` Gets or sets the [ActionDefinitionReference](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ActionDefinitionReference/) instances to execute for [ExecutionRequestParameters.Activity](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Execution/ExecutionRequestParameters/). `public ConditionDefinition[] Conditions { get; set; }` Gets or sets the [ConditionDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/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](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ConcatenationType/) used to combine [ConditionType.Action](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ConditionType/) and [ConditionType.Expression](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ConditionType/) condition results. `public ActivityDefinition Activity { get; }` Gets the [ActivityDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ActivityDefinition/) to execute. `public bool IsAlways { get; }` Gets a value indicating whether any condition has [ConditionDefinition.Type](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ConditionDefinition/) set to [ConditionType.Always](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ConditionType/). `public bool IsOtherwise { get; }` Gets a value indicating whether any condition has [ConditionDefinition.Type](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ConditionDefinition/) set to [ConditionType.Otherwise](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ConditionType/). `public bool IsConditionOrExpression { get; }` Gets a value indicating whether all conditions, if any, have [ConditionDefinition.Type](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ConditionDefinition/) set to [ConditionType.Action](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ConditionType/) or [ConditionType.Expression](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ConditionType/). `public bool HasExpression { get; }` Gets a value indicating whether any condition has [ConditionDefinition.Type](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ConditionDefinition/) set to [ConditionType.Expression](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ConditionType/). ## Methods `public static ExecutionRequestParameters Create(TransitionDefinition transition)` Creates parameters for evaluating the conditions of `transition` and executing its destination activity with [ActivityDefinition.Implementation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ActivityDefinition/). ### Parameters | Name | Type | Description | | --- | --- | --- | | `transition` | `TransitionDefinition` | The [TransitionDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/TransitionDefinition/) whose [TransitionDefinition.To](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/TransitionDefinition/) and [TransitionDefinition.Conditions](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/TransitionDefinition/) values are used. | ### Returns | Type | Description | | --- | --- | | `ExecutionRequestParameters` | An [ExecutionRequestParameters](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Execution/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` | The [TransitionDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/TransitionDefinition/) whose [TransitionDefinition.To](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/TransitionDefinition/) and [TransitionDefinition.Conditions](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/TransitionDefinition/) values are used. | | `isPreExecution` | `Boolean` | [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) to select [ActivityDefinition.PreExecutionImplementation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ActivityDefinition/); [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) to select [ActivityDefinition.Implementation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ActivityDefinition/). | ### Returns | Type | Description | | --- | --- | | `ExecutionRequestParameters` | An [ExecutionRequestParameters](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Execution/ExecutionRequestParameters/) populated from `transition`. | `public static ExecutionRequestParameters Create(ActivityDefinition activityToExecute, List conditions)` Creates parameters that use [ActivityDefinition.Implementation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ActivityDefinition/) to execute `activityToExecute` with the supplied conditions. ### Parameters | Name | Type | Description | | --- | --- | --- | | `activityToExecute` | `ActivityDefinition` | The [ActivityDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ActivityDefinition/) to execute. | | `conditions` | `List` | The [ConditionDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ConditionDefinition/) instances to associate with the execution parameters. | ### Returns | Type | Description | | --- | --- | | `ExecutionRequestParameters` | An [ExecutionRequestParameters](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Execution/ExecutionRequestParameters/) populated from the supplied arguments. | `public static ExecutionRequestParameters Create(ActivityDefinition activityToExecute, List conditions, bool isPreExecution)` Creates parameters for executing `activityToExecute` with the supplied conditions and the selected implementation. ### Parameters | Name | Type | Description | | --- | --- | --- | | `activityToExecute` | `ActivityDefinition` | The [ActivityDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ActivityDefinition/) to execute. | | `conditions` | `List` | The [ConditionDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ConditionDefinition/) instances to associate with the execution parameters. | | `isPreExecution` | `Boolean` | [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) to select [ActivityDefinition.PreExecutionImplementation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ActivityDefinition/); [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) to select [ActivityDefinition.Implementation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ActivityDefinition/). | ### Returns | Type | Description | | --- | --- | | `ExecutionRequestParameters` | An [ExecutionRequestParameters](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Execution/ExecutionRequestParameters/) populated from the supplied arguments. | [Previous WorkflowFormEntity](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Entities/WorkflowFormEntity/) [Next ParameterMapping](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Execution/ParameterMapping/)