Assembly: OptimaJet.Workflow.Core

Class SerializedParameter

OptimaJet.Workflow.Core.Model.SerializedParameter

Represents a process parameter prepared for persistence, including its SerializedParameter.Name, SerializedParameter.SerializedValue, and required SerializedParameter.Operation.

public sealed class SerializedParameter

Properties

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
parameter
ParameterDefinitionWithValue
The ParameterDefinitionWithValue that represents the process parameter to prepare.

Returns

Type
Description
SerializedParameter

Exceptions

Type
Description
ArgumentNullException
parameter is 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