Class WorkflowProcessInstanceStatus
OptimaJet.Workflow.SQLite.WorkflowProcessInstanceStatus
Database object for workflow process instance status operations.
Namespace: OptimaJet.Workflow.SQLite
public class WorkflowProcessInstanceStatus : DbObject<ProcessInstanceStatusEntity>Inheritance
- Object
- DbObject<ProcessInstanceStatusEntity>
Constructors
public WorkflowProcessInstanceStatus(string schemaName, int commandTimeout) #Initializes a new instance of WorkflowProcessInstanceStatus.
Parameters
Name
Type
Description
schemaNameStringThe database schema name.
commandTimeoutInt32The command timeout in seconds.
Methods
public Task<List<Guid>> GetProcessesByStatusAsync(SqliteConnection connection, byte status, string runtimeId = null) #Returns identifiers of processes with the specified status, optionally filtered by runtime.
Parameters
Name
Type
Description
connectionSqliteConnectionThe SQLite connection.
statusByteThe process status byte value.
runtimeIdStringThe runtime identifier to filter by, or
null for all runtimes.Returns
Type
Description
Task<Guid>A list of process identifiers.
public Task<int> ChangeStatusAsync(SqliteConnection connection, ProcessInstanceStatusEntity status, Guid oldLock) #Changes the status of a process instance using optimistic locking.
Parameters
Name
Type
Description
connectionSqliteConnectionThe SQLite connection.
statusProcessInstanceStatusEntityThe status entity with the new status values.
oldLockGuidThe current lock value for optimistic concurrency.
Returns
Type
Description
Task<Int32>The number of rows affected.