# Class WorkflowProcessTimer OptimaJet.Workflow.DbPersistence.WorkflowProcessTimer Namespace: [OptimaJet.Workflow.DbPersistence](https://api.workflowengine.io/sql-server/OptimaJet.Workflow.DbPersistence/) ```csharp public class WorkflowProcessTimer : DbObject ``` ## Type Hierarchy - [DbObject](https://api.workflowengine.io/sql-server/OptimaJet.Workflow.DbPersistence/DbObject-TEntity/) - WorkflowProcessTimer Current type ## Constructors `public WorkflowProcessTimer(string schemaName, int commandTimeout)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `schemaName` | `String` | | | `commandTimeout` | `Int32` | | ## Methods `public Task DeleteInactiveByProcessIdAsync(SqlConnection connection, Guid processId, SqlTransaction transaction = null)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `SqlConnection` | | | `processId` | `Guid` | | | `transaction` | `SqlTransaction` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task DeleteByProcessIdAsync(SqlConnection connection, Guid processId, List timersIgnoreList = null, SqlTransaction transaction = null)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `SqlConnection` | | | `processId` | `Guid` | | | `timersIgnoreList` | `List` | | | `transaction` | `SqlTransaction` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task SelectByProcessIdAndNameAsync(SqlConnection connection, Guid processId, string name)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `SqlConnection` | | | `processId` | `Guid` | | | `name` | `String` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task> SelectByProcessIdAsync(SqlConnection connection, Guid processId)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `SqlConnection` | | | `processId` | `Guid` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task> SelectActiveByProcessIdAsync(SqlConnection connection, Guid processId)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `SqlConnection` | | | `processId` | `Guid` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task SetTimerIgnoreAsync(SqlConnection connection, Guid timerId)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `SqlConnection` | | | `timerId` | `Guid` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task GetTopTimersToExecuteAsync(SqlConnection connection, int top, DateTime now)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `SqlConnection` | | | `top` | `Int32` | | | `now` | `DateTime` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public static DataTable ToDataTable()` ### Returns | Type | Description | | --- | --- | | `DataTable` | | [Previous WorkflowProcessScheme](https://api.workflowengine.io/sql-server/OptimaJet.Workflow.DbPersistence/WorkflowProcessScheme/) [Next WorkflowProcessTransitionHistory](https://api.workflowengine.io/sql-server/OptimaJet.Workflow.DbPersistence/WorkflowProcessTransitionHistory/)