Class WorkflowProcessInstance
OptimaJet.Workflow.SQLite.WorkflowProcessInstance
Database object for workflow process instance operations.
Namespace: OptimaJet.Workflow.SQLite
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
schemaNameStringThe database schema name.
commandTimeoutInt32The 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
connectionSqliteConnectionThe SQLite connection.
idsIEnumerable<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
connectionSqliteConnectionThe SQLite connection.
processIdGuidThe process identifier.
tenantIdStringThe tenant identifier, or
null for shared processes.Returns
Type
Description
Task<Boolean>true if the process exists; otherwise, false.