Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class PersistenceParametersBatch

OptimaJet.Workflow.Core.Model.PersistenceParametersBatch

Immutable batch of parameters to persist with flag management. Centralizes filtering, serialization, and flag update logic from providers to Core.

public sealed class PersistenceParametersBatch

Inheritance

  • System.Object

Properties

Name
Type
Parameters #
IReadOnlyList<SerializedParameter>
Serialized parameters ready for persistence
ProcessId #
Guid
Process ID these parameters belong to
TenantId #
String
Tenant ID these parameters belong to
IsEmpty #
Boolean
Returns true if this is an empty batch with no parameters

Methods

public void CommitFlags() #
Update parameter flags after successful persistence. MUST be called by the provider ONLY after the transaction commit succeeds.
public static PersistenceParametersBatch CreateFromProcessInstance(ProcessInstance processInstance) #
Create batch from process instance. Automatically filters dirty persistence parameters and serializes them.

Parameters

Name
Type
Description
processInstance
ProcessInstance
Process instance to extract dirty parameters from

Returns

Type
Description
PersistenceParametersBatch
Batch ready for persistence, or Empty if no dirty parameters
public static PersistenceParametersBatch CreateForSingleParameter(ProcessInstance processInstance, string parameterName) #
Create a batch for a single parameter by name from a process instance. Used by SavePersistenceParameterAsync when only the parameter name is known.

Parameters

Name
Type
Description
processInstance
ProcessInstance
Process instance containing the parameter
parameterName
String
Name of the parameter to save

Returns

Type
Description
PersistenceParametersBatch
Batch with a single parameter or Empty if the parameter is not found or not dirty