# Class WorkflowApprovalHistory OptimaJet.Workflow.MySQL.WorkflowApprovalHistory Namespace: [OptimaJet.Workflow.MySQL](https://api.workflowengine.io/mysql/OptimaJet.Workflow.MySQL/) ```csharp public class WorkflowApprovalHistory : DbObject ``` ## Type Hierarchy - [DbObject](https://api.workflowengine.io/mysql/OptimaJet.Workflow.MySQL/DbObject-TEntity/) - WorkflowApprovalHistory Current type ## Constructors `public WorkflowApprovalHistory(int commandTimeout)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `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(MySqlConnection connection, string identityId, Paging paging = null)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `MySqlConnection` | | | `identityId` | `String` | | | `paging` | `Paging` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task GetOutboxCountByIdentityIdAsync(MySqlConnection connection, string identityId)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `MySqlConnection` | | | `identityId` | `String` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task DeleteByProcessIdAsync(MySqlConnection connection, Guid processId, MySqlTransaction transaction = null)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `MySqlConnection` | | | `processId` | `Guid` | | | `transaction` | `MySqlTransaction` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task> SelectByProcessIdAsync(MySqlConnection connection, Guid processId)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `MySqlConnection` | | | `processId` | `Guid` | | ### Returns | Type | Description | | --- | --- | | `Task` | | `public Task> SelectByIdentityIdAsync(MySqlConnection connection, string identityId)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `MySqlConnection` | | | `identityId` | `String` | | ### Returns | Type | Description | | --- | --- | | `Task` | | [Previous ProcessInstanceTree](https://api.workflowengine.io/mysql/OptimaJet.Workflow.MySQL/ProcessInstanceTree/) [Next WorkflowGlobalParameter](https://api.workflowengine.io/mysql/OptimaJet.Workflow.MySQL/WorkflowGlobalParameter/)