# Class RuntimeApiExtensions OptimaJet.Workflow.Plugins.FormsPlugin.RuntimeApiExtensions Provides extension methods for the WorkflowRuntime class to integrate and manage forms plugin functionality. Namespace: [OptimaJet.Workflow.Plugins.FormsPlugin](https://api.workflowengine.io/forms-plugin/OptimaJet.Workflow.Plugins.FormsPlugin/) ```csharp public static class RuntimeApiExtensions ``` ## Methods `public static FormsRuntimeApi GetFormsRuntimeApi(this WorkflowRuntime runtime)` Retrieves the [FormsRuntimeApi](https://api.workflowengine.io/forms-plugin/OptimaJet.Workflow.Plugins.FormsPlugin/FormsRuntimeApi/) instance associated with the provided WorkflowRuntime. ### Parameters | Name | Type | Description | | --- | --- | --- | | `runtime` | `WorkflowRuntime` | The instance of the WorkflowRuntime from which the [FormsRuntimeApi](https://api.workflowengine.io/forms-plugin/OptimaJet.Workflow.Plugins.FormsPlugin/FormsRuntimeApi/) is obtained. | ### Returns | Type | Description | | --- | --- | | `FormsRuntimeApi` | An initialized instance of [FormsRuntimeApi](https://api.workflowengine.io/forms-plugin/OptimaJet.Workflow.Plugins.FormsPlugin/FormsRuntimeApi/). | ### Exceptions | Type | Description | | --- | --- | | `InvalidOperationException` | Thrown when the [FormsPlugin](https://api.workflowengine.io/forms-plugin/OptimaJet.Workflow.Plugins.FormsPlugin/FormsPlugin/) is not registered in the specified WorkflowRuntime. | [Previous ResultType](https://api.workflowengine.io/forms-plugin/OptimaJet.Workflow.Plugins.FormsPlugin/ResultType/) [Next SaveFormParameters](https://api.workflowengine.io/forms-plugin/OptimaJet.Workflow.Plugins.FormsPlugin/SaveFormParameters/)