Workflow Engine .NET  2
Public Member Functions | Properties | List of all members
OptimaJet.Workflow.Core.Model.ParametersCollection Class Reference

Represent a collection of process's parameters More...

Inheritance diagram for OptimaJet.Workflow.Core.Model.ParametersCollection:

Public Member Functions

 ParametersCollection (List< ParameterDefinitionWithValue > parameters)
 
 ParametersCollection (IEnumerable< ParameterDefinitionWithValue > parameters)
 
ParameterDefinitionWithValue GetParameter (string name)
 Returns parameter with value ParameterDefinitionWithValue with specific name More...
 
GetParameter< T > (string name)
 Returns parameter's value by specific name More...
 
void AddParameter (ParameterDefinitionWithValue parameter)
 Adds parameter to parameters collection More...
 
void AddParameters (IEnumerable< ParameterDefinitionWithValue > parameters)
 Adds parameters to parameters collection More...
 
void ReplaceParameters (List< ParameterDefinitionWithValue > parameters)
 Replace parameters collection by new value More...
 
IEnumerator< ParameterDefinitionWithValueGetEnumerator ()
 

Properties

List< ParameterDefinitionWithValueParameters [get, set]
 

Detailed Description

Represent a collection of process's parameters

Member Function Documentation

◆ AddParameter()

void OptimaJet.Workflow.Core.Model.ParametersCollection.AddParameter ( ParameterDefinitionWithValue  parameter)

Adds parameter to parameters collection

Parameters
parameterParameter with value ParameterDefinitionWithValue

◆ AddParameters()

void OptimaJet.Workflow.Core.Model.ParametersCollection.AddParameters ( IEnumerable< ParameterDefinitionWithValue parameters)

Adds parameters to parameters collection

Parameters
parametersCollection of parameters with value ParameterDefinitionWithValue

◆ GetParameter()

ParameterDefinitionWithValue OptimaJet.Workflow.Core.Model.ParametersCollection.GetParameter ( string  name)

Returns parameter with value ParameterDefinitionWithValue with specific name

Parameters
nameName of the parameter
Returns
Parameter with value ParameterDefinitionWithValue

◆ GetParameter< T >()

Returns parameter's value by specific name

Template Parameters
TType of the parameter
Parameters
nameName of the parameter
Returns
Value of the parameter

◆ ReplaceParameters()

void OptimaJet.Workflow.Core.Model.ParametersCollection.ReplaceParameters ( List< ParameterDefinitionWithValue parameters)

Replace parameters collection by new value

Parameters
parameters>Collection of parameters with value ParameterDefinitionWithValue