# Class WorkflowApprovalHistory OptimaJet.Workflow.DbPersistence.WorkflowApprovalHistory Namespace: [OptimaJet.Workflow.DbPersistence](https://api.workflowengine.io/sql-server/OptimaJet.Workflow.DbPersistence/) ```csharp public class WorkflowApprovalHistory : DbObject ``` ## Type Hierarchy - [DbObject](https://api.workflowengine.io/sql-server/OptimaJet.Workflow.DbPersistence/DbObject-TEntity/) - WorkflowApprovalHistory Current type ## Constructors `public WorkflowApprovalHistory(string schemaName, int commandTimeout)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `schemaName` | `String` | | | `commandTimeout` | `Int32` | | ## Methods `public static ApprovalHistoryEntity ToDB(ApprovalHistoryItem historyItem)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `historyItem` | `ApprovalHistoryItem` | | ### Returns | Type | Description | | --- | --- | | `ApprovalHistoryEntity` | | `public static ApprovalHistoryItem FromDB(ApprovalHistoryEntity historyItem)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `historyItem` | `ApprovalHistoryEntity` | | ### Returns | Type | Description | | --- | --- | | `ApprovalHistoryItem` | | `public Task> SelectOutboxByIdentityIdAsync(SqlConnection connection, string identityId, Paging paging = null)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `SqlConnection` | | | `identityId` | `String` | | | `paging` | `Paging` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task GetOutboxCountByIdentityIdAsync(SqlConnection connection, string identityId)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `SqlConnection` | | | `identityId` | `String` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task DeleteByProcessIdAsync(SqlConnection connection, Guid processId, SqlTransaction transaction = null)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `SqlConnection` | | | `processId` | `Guid` | | | `transaction` | `SqlTransaction` | | ### 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> SelectByIdentityIdAsync(SqlConnection connection, string identityId)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `SqlConnection` | | | `identityId` | `String` | | ### Returns | Type | Description | | --- | --- | | `Task` | | [Previous ProcessInstanceTree](https://api.workflowengine.io/sql-server/OptimaJet.Workflow.DbPersistence/ProcessInstanceTree/) [Next WorkflowGlobalParameter](https://api.workflowengine.io/sql-server/OptimaJet.Workflow.DbPersistence/WorkflowGlobalParameter/)