Class SerializedParameter
OptimaJet.Workflow.Core.Model.SerializedParameter
Represents a process parameter prepared for persistence, including its SerializedParameter.Name, SerializedParameter.SerializedValue, and required SerializedParameter.Operation.
Namespace: OptimaJet.Workflow.Core.Model
public sealed class SerializedParameterProperties
public string Name { get; } #Gets the name of the process parameter represented by this instance.
public string? SerializedValue { get; } #Gets the serialized process parameter value to persist.
public SerializedParameter.PersistenceOperation Operation { get; } #Gets the SerializedParameter.PersistenceOperation to apply to the process parameter.
Methods
public static SerializedParameter Create(ParameterDefinitionWithValue parameter) #Prepares
parameter for persistence by producing its SerializedParameter.SerializedValue and selecting its SerializedParameter.Operation.Parameters
Name
Type
Description
parameterParameterDefinitionWithValueThe ParameterDefinitionWithValue that represents the process parameter to prepare.
Returns
Type
Description
SerializedParameterA SerializedParameter whose SerializedParameter.Name, SerializedParameter.SerializedValue, and SerializedParameter.Operation describe the required persistence change.
Exceptions
Type
Description
ArgumentNullExceptionparameter is null.InvalidCastExceptionParameterDefinitionWithValue.IsImplicit is true and ParameterDefinitionWithValue.Value is not a string or null.
Remarks
When ParameterDefinitionWithValue.IsImplicit is true, the value of ParameterDefinitionWithValue.Value is used as a string without serialization. Otherwise, the value is serialized by ParametersSerializer.Serialize(object, Type). A null serialized value selects SerializedParameter.PersistenceOperation.Delete. For any other value, the method selects SerializedParameter.PersistenceOperation.Insert when the source parameter is not marked as existing in the persistence store and SerializedParameter.PersistenceOperation.Update when it is.
Nested Types
public enum SerializedParameter.PersistenceOperation #Specifies the operation required to persist a process parameter value.
View SerializedParameter.PersistenceOperation