# Class WorkflowRuntime OptimaJet.Workflow.Oracle.Models.WorkflowRuntime Namespace: [OptimaJet.Workflow.Oracle.Models](https://api.workflowengine.io/oracle/OptimaJet.Workflow.Oracle.Models/) ```csharp public class WorkflowRuntime : DbObject ``` ## Type Hierarchy - [DbObject](https://api.workflowengine.io/oracle/OptimaJet.Workflow.Oracle/DbObject-TEntity/) - WorkflowRuntime Current type ## Constructors `public WorkflowRuntime(string schemaName, int commandTimeout)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `schemaName` | `String` | | | `commandTimeout` | `Int32` | | ## Methods `public Task UpdateStatusAsync(OracleConnection connection, WorkflowRuntimeModel runtime, Guid oldLock)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | | `runtime` | `WorkflowRuntimeModel` | | | `oldLock` | `Guid` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task UpdateRestorerAsync(OracleConnection connection, WorkflowRuntimeModel runtime, Guid oldLock)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | | `runtime` | `WorkflowRuntimeModel` | | | `oldLock` | `Guid` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task MultiServerRuntimesExistAsync(OracleConnection connection)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task ActiveMultiServerRuntimesCountAsync(OracleConnection connection, string currentRuntimeId)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | | `currentRuntimeId` | `String` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task GetWorkflowRuntimeStatusAsync(OracleConnection connection, string runtimeId)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | | `runtimeId` | `String` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task SendRuntimeLastAliveSignalAsync(OracleConnection connection, string runtimeId, DateTime time, OracleTransaction transaction = null)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | | `runtimeId` | `String` | | | `time` | `DateTime` | | | `transaction` | `OracleTransaction` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task UpdateNextTimeAsync(OracleConnection connection, string runtimeId, string nextTimeColumnName, DateTime time, OracleTransaction transaction = null)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | | `runtimeId` | `String` | | | `nextTimeColumnName` | `String` | | | `time` | `DateTime` | | | `transaction` | `OracleTransaction` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task GetMaxNextTimeAsync(OracleConnection connection, string runtimeId, string nextTimeColumnName)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `OracleConnection` | | | `runtimeId` | `String` | | | `nextTimeColumnName` | `String` | | ### Returns | Type | Description | | --- | --- | | `Task` | | [Previous WorkflowForm](https://api.workflowengine.io/oracle/OptimaJet.Workflow.Oracle.Models/WorkflowForm/) [Next WorkflowSync](https://api.workflowengine.io/oracle/OptimaJet.Workflow.Oracle.Models/WorkflowSync/)