Workflow Engine .NET

Assembly: OptimaJet.Workflow.SQLite

Class WorkflowProcessInstance

OptimaJet.Workflow.SQLite.WorkflowProcessInstance

Database object for workflow process instance operations.

public class WorkflowProcessInstance : DbObject<ProcessInstanceEntity>

Inheritance

  • Object
  • DbObject<ProcessInstanceEntity>

Constructors

public WorkflowProcessInstance(string schemaName, int commandTimeout) #
Initializes a new instance of WorkflowProcessInstance.

Parameters

Name
Type
Description
schemaName
String
The database schema name.
commandTimeout
Int32
The command timeout in seconds.

Methods

public Task<ProcessInstanceEntity[]> GetInstancesAsync(SqliteConnection connection, IEnumerable<Guid> ids) #
Selects process instances by a collection of identifiers.

Parameters

Name
Type
Description
connection
SqliteConnection
The SQLite connection.
ids
IEnumerable<Guid>
The process identifiers to select.

Returns

Type
Description
Task<ProcessInstanceEntity[]>
An array of matching process instance entities.
public Task<bool> IsProcessExistsAsync(SqliteConnection connection, Guid processId, string tenantId) #
Checks whether a process with the specified identifier exists in the given tenant scope.

Parameters

Name
Type
Description
connection
SqliteConnection
The SQLite connection.
processId
Guid
The process identifier.
tenantId
String
The tenant identifier, or null for shared processes.

Returns

Type
Description
Task<Boolean>
true if the process exists; otherwise, false.