Interface IParameterBuilder
OptimaJet.Workflow.Core.Model.Builder.IParameterBuilder
Provides fluent configuration for an explicit process parameter in a ProcessDefinition.
Namespace: OptimaJet.Workflow.Core.Model.Builder
public interface IParameterBuilder : IProcessDefinitionBuilderType Hierarchy
- IParameterBuilder Current type
- Base interfaces
Methods
IParameterBuilder Ref(out ParameterDefinition parameterDefinition) #Assigns the current ParameterDefinition to
parameterDefinition.Parameters
Name
Type
Description
Returns
Type
Description
IParameterBuilderThe current IParameterBuilder instance for method chaining.
IParameterBuilder Name(string name) #Sets the process parameter name of the current ParameterDefinition.
Parameters
Name
Type
Description
nameStringThe process parameter name.
Returns
Type
Description
IParameterBuilderThe current IParameterBuilder instance for method chaining.
IParameterBuilder Purpose(ParameterPurpose purpose) #Sets ParameterDefinition.Purpose for the current process parameter.
Parameters
Name
Type
Description
purposeParameterPurposeThe ParameterPurpose that controls how Workflow Engine manages and stores the parameter.
Returns
Type
Description
IParameterBuilderThe current IParameterBuilder instance for method chaining.
Exceptions
Type
Description
InvalidOperationExceptionpurpose is ParameterPurpose.System.Remarks
IParameterBuilder Type(Type type) #Sets ParameterDefinition.Type for the current process parameter.
Parameters
Name
Type
Description
Returns
Type
Description
IParameterBuilderThe current IParameterBuilder instance for method chaining.
Exceptions
Type
Description
InvalidOperationExceptionThe existing ParameterDefinition.InitialValue cannot be deserialized as
type.IParameterBuilder InitialValue(string initialValue) #Sets ParameterDefinition.InitialValue from its stored string representation.
Parameters
Name
Type
Description
initialValueStringThe value to store. For a parameter whose ParameterDefinition.Type is not string, the value must be valid JSON that can be deserialized as that type.
Returns
Type
Description
IParameterBuilderThe current IParameterBuilder instance for method chaining.
Exceptions
Type
Description
InvalidOperationExceptionThe current ParameterDefinition.Purpose is not ParameterPurpose.Persistence, or
initialValue cannot be deserialized as the current ParameterDefinition.Type.IParameterBuilder InitialValue(object initialValue) #Serializes
initialValue and stores the result in ParameterDefinition.InitialValue.Parameters
Name
Type
Description
initialValueObjectThe value to serialize. Its runtime type must be compatible with the current ParameterDefinition.Type.
Returns
Type
Description
IParameterBuilderThe current IParameterBuilder instance for method chaining.
Exceptions
Type
Description
InvalidOperationExceptionThe current ParameterDefinition.Purpose is not ParameterPurpose.Persistence, or
initialValue is not an instance of the current ParameterDefinition.Type.IParameterBuilder ClearInitialValue() #Clears ParameterDefinition.InitialValue for the current process parameter.
Returns
Type
Description
IParameterBuilderThe current IParameterBuilder instance for method chaining.