# Class FormBaseFromConditionAsync OptimaJet.Workflow.Plugins.Activity.FormBaseFromConditionAsync Namespace: [OptimaJet.Workflow.Plugins.Activity](https://api.workflowengine.io/core/OptimaJet.Workflow.Plugins.Activity/) ```csharp public sealed class FormBaseFromConditionAsync : FormBase ``` ## Type Hierarchy - [FormBase](https://api.workflowengine.io/core/OptimaJet.Workflow.Core/FormBase/) - FormBaseFromConditionAsync Current type ## Properties `public override bool Disabled { get; set; }` Gets or sets a value indicating whether this form is excluded from the custom activity or condition metadata exposed to the workflow designer. `public override List Parameters { get; set; }` Gets or sets the form parameter definitions. ## Methods `public static FormBase Create(TEnum conditionName, string template, ConditionAsyncDelegate actionAsync, Func> formats, IDisableProvider disableProvider) where TEnum : struct` ### Parameters | Name | Type | Description | | --- | --- | --- | | `conditionName` | `{TEnum}` | | | `template` | `String` | | | `actionAsync` | `ConditionAsyncDelegate` | | | `formats` | `Func` | | | `disableProvider` | `IDisableProvider` | | ### Returns | Type | Description | | --- | --- | | `FormBase` | | `public override Task ExecutionAsync(WorkflowRuntime runtime, ProcessInstance processInstance, Dictionary parameters, CancellationToken token)` Executes the form operation during normal workflow execution. ### Parameters | Name | Type | Description | | --- | --- | --- | | `runtime` | `WorkflowRuntime` | The [WorkflowRuntime](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/WorkflowRuntime/) invoking the execution. | | `processInstance` | `ProcessInstance` | The current [ProcessInstance](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ProcessInstance/). | | `parameters` | `Dictionary` | Runtime parameter values for the executed form operation, keyed by parameter name. | | `token` | `CancellationToken` | The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) passed from the execution pipeline. | ### Returns | Type | Description | | --- | --- | | `Task` | A [Task](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task) that represents the asynchronous execution. | `public override Task PreExecutionAsync(WorkflowRuntime runtime, ProcessInstance processInstance, Dictionary parameters, CancellationToken token)` Executes the form operation during pre-execution simulation. ### Parameters | Name | Type | Description | | --- | --- | --- | | `runtime` | `WorkflowRuntime` | The [WorkflowRuntime](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/WorkflowRuntime/) invoking the simulation. | | `processInstance` | `ProcessInstance` | The current [ProcessInstance](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ProcessInstance/). | | `parameters` | `Dictionary` | Runtime parameter values for the simulated operation, keyed by parameter name. | | `token` | `CancellationToken` | The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) passed from the execution pipeline. | ### Returns | Type | Description | | --- | --- | | `Task` | A [Task](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task) that represents the asynchronous simulation. | [Previous ActivityBaseFromActionAsync](https://api.workflowengine.io/core/OptimaJet.Workflow.Plugins.Activity/ActivityBaseFromActionAsync/) [Next ActionsApprovalPlugin](https://api.workflowengine.io/core/OptimaJet.Workflow.Plugins.ApprovalsPlugin/ActionsApprovalPlugin/)