# Class WorkflowInbox OptimaJet.Workflow.SQLite.WorkflowInbox Database object for workflow inbox operations. Namespace: [OptimaJet.Workflow.SQLite](https://api.workflowengine.io/sqlite/OptimaJet.Workflow.SQLite/) ```csharp public class WorkflowInbox : DbObject ``` ## Type Hierarchy - [DbObject](https://api.workflowengine.io/sqlite/OptimaJet.Workflow.SQLite/DbObject-TEntity/) - WorkflowInbox Current type ## Constructors `public WorkflowInbox(string schemaName, int commandTimeout)` Initializes a new instance of [WorkflowInbox](https://api.workflowengine.io/sqlite/OptimaJet.Workflow.SQLite/WorkflowInbox/). ### Parameters | Name | Type | Description | | --- | --- | --- | | `schemaName` | `String` | The database schema name. | | `commandTimeout` | `Int32` | The command timeout in seconds. | ## Methods `public static InboxEntity ToDB(InboxItem inboxItem)` Converts an InboxItem to a database entity. ### Parameters | Name | Type | Description | | --- | --- | --- | | `inboxItem` | `InboxItem` | The inbox item to convert. | ### Returns | Type | Description | | --- | --- | | `InboxEntity` | A new InboxEntity populated from the item. | `public static Task> FromDB(WorkflowRuntime runtime, InboxEntity[] inboxItems, CultureInfo culture)` Converts an array of database entities to InboxItem objects, resolving available commands with localization. ### Parameters | Name | Type | Description | | --- | --- | --- | | `runtime` | `WorkflowRuntime` | The workflow runtime used to resolve process instances. | | `inboxItems` | `InboxEntity[]` | The inbox entities to convert. | | `culture` | `CultureInfo` | The culture for command name localization. | ### Returns | Type | Description | | --- | --- | | `Task` | A list of inbox items. | `public Task DeleteByProcessIdAsync(SqliteConnection connection, Guid processId, SqliteTransaction transaction = null)` Deletes all inbox records for the specified process. ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `SqliteConnection` | The SQLite connection. | | `processId` | `Guid` | The process identifier. | | `transaction` | `SqliteTransaction` | An optional transaction. | ### Returns | Type | Description | | --- | --- | | `Task` | The number of rows affected. | `public Task SelectByProcessIdAsync(SqliteConnection connection, Guid processId)` Selects all inbox entities for the specified process. ### Parameters | Name | Type | Description | | --- | --- | --- | | `connection` | `SqliteConnection` | The SQLite connection. | | `processId` | `Guid` | The process identifier. | ### Returns | Type | Description | | --- | --- | | `Task` | An array of inbox entities. | [Previous WorkflowGlobalParameter](https://api.workflowengine.io/sqlite/OptimaJet.Workflow.SQLite/WorkflowGlobalParameter/) [Next WorkflowProcessInstance](https://api.workflowengine.io/sqlite/OptimaJet.Workflow.SQLite/WorkflowProcessInstance/)