# Class WorkflowApprovalHistory OptimaJet.Workflow.PostgreSQL.WorkflowApprovalHistory Namespace: [OptimaJet.Workflow.PostgreSQL](https://api.workflowengine.io/postgresql/OptimaJet.Workflow.PostgreSQL/) ```csharp public class WorkflowApprovalHistory : DbObject ``` ## Type Hierarchy - [DbObject](https://api.workflowengine.io/postgresql/OptimaJet.Workflow.PostgreSQL/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 historyEntity)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `historyEntity` | `ApprovalHistoryEntity` | | ### Returns | Type | Description | | --- | --- | | `ApprovalHistoryItem` | | `public Task> SelectOutboxByIdentityIdAsync(NpgsqlConnection connection, string identityId, Paging paging = null)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `NpgsqlConnection` | | | `identityId` | `String` | | | `paging` | `Paging` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task GetOutboxCountByIdentityIdAsync(NpgsqlConnection connection, string identityId)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `NpgsqlConnection` | | | `identityId` | `String` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task DeleteByProcessIdAsync(NpgsqlConnection connection, Guid processId, NpgsqlTransaction transaction = null)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `NpgsqlConnection` | | | `processId` | `Guid` | | | `transaction` | `NpgsqlTransaction` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task> SelectByProcessIdAsync(NpgsqlConnection connection, Guid processId)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `NpgsqlConnection` | | | `processId` | `Guid` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task> SelectByIdentityIdAsync(NpgsqlConnection connection, string identityId)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `NpgsqlConnection` | | | `identityId` | `String` | | ### Returns | Type | Description | | --- | --- | | `Task` | | [Previous ProcessInstanceTree](https://api.workflowengine.io/postgresql/OptimaJet.Workflow.PostgreSQL/ProcessInstanceTree/) [Next WorkflowGlobalParameter](https://api.workflowengine.io/postgresql/OptimaJet.Workflow.PostgreSQL/WorkflowGlobalParameter/)