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.
Namespace: OptimaJet.Workflow.Core.Model
public sealed class PersistenceParametersBatchInheritance
- System.Object
Properties
Name
Type
Parameters #IReadOnlyList<SerializedParameter>Serialized parameters ready for persistence
ProcessId #GuidProcess ID these parameters belong to
TenantId #StringTenant ID these parameters belong to
IsEmpty #BooleanReturns 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
processInstanceProcessInstanceProcess instance to extract dirty parameters from
Returns
Type
Description
PersistenceParametersBatchBatch 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
processInstanceProcessInstanceProcess instance containing the parameter
parameterNameStringName of the parameter to save
Returns
Type
Description
PersistenceParametersBatchBatch with a single parameter or Empty if the parameter is not found or not dirty