Workflow Engine .NET

Assembly: OptimaJet.Workflow.SQLite

Class WorkflowInbox

OptimaJet.Workflow.SQLite.WorkflowInbox

Database object for workflow inbox operations.

public class WorkflowInbox : DbObject<InboxEntity>

Inheritance

  • Object
  • DbObject<InboxEntity>

Constructors

public WorkflowInbox(string schemaName, int commandTimeout) #
Initializes a new instance of 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<List<InboxItem>> 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<InboxItem>
A list of inbox items.
public Task<int> 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<Int32>
The number of rows affected.
public Task<InboxEntity[]> 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<InboxEntity[]>
An array of inbox entities.