Interface IProcessParameterValueProvider
Represents methods for evaluating and validating process parameter values.
Namespace: Terrasoft.Core.Process
Assembly: Terrasoft.Core.dll
Syntax
public interface IProcessParameterValueProvider
Methods
EvalExpression(String)
Evaluates expression and returns the value with System.Object type.
Declaration
object EvalExpression(string expressionText)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | expressionText | Expression text. |
Returns
| Type | Description |
|---|---|
| System.Object | Evaluation result. |
EvalExpression(String, Type)
Evaluates expression and returns the value with System.Object type.
Declaration
object EvalExpression(string expressionText, Type resultType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | expressionText | Expression text. |
| System.Type | resultType | Expected type of the evaluation result. |
Returns
| Type | Description |
|---|---|
| System.Object | Evaluation result. |
EvalExpression<T>(String)
Evaluates expression and returns the value with specified type.
Declaration
T EvalExpression<T>(string expressionText)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | expressionText | Expression text. |
Returns
| Type | Description |
|---|---|
| T | Evaluation result. |
Type Parameters
| Name | Description |
|---|---|
| T |
GetParameterValue(ProcessParameterMapInfo)
Returns value of the process parameter.
Declaration
object GetParameterValue(ProcessParameterMapInfo parameterMapInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| ProcessParameterMapInfo | parameterMapInfo | Data of the process parameter mapping. |
Returns
| Type | Description |
|---|---|
| System.Object | Value of the process parameter. |
GetParameterValue(ProcessParameterMapInfo, Boolean)
Returns value of the process parameter.
Declaration
object GetParameterValue(ProcessParameterMapInfo parameterMapInfo, bool isReExecution)
Parameters
| Type | Name | Description |
|---|---|---|
| ProcessParameterMapInfo | parameterMapInfo | Data of the process parameter mapping. |
| System.Boolean | isReExecution | Flag that indicates repeated execution of element. |
Returns
| Type | Description |
|---|---|
| System.Object | Value of the process parameter. |
GetParameterValue(ProcessSchemaParameter, Guid, Object, Boolean)
Returns a parameter value evaluated from an ICompositeObject.
Declaration
object GetParameterValue(ProcessSchemaParameter parameter, Guid schemaElementUId, object compositeObject, bool isReExecution)
Parameters
| Type | Name | Description |
|---|---|---|
| ProcessSchemaParameter | parameter | Process schema parameter. |
| System.Guid | schemaElementUId | Unique identifier of the process element. |
| System.Object | compositeObject | An instance of the System.Object containing a ICompositeObject-derived type. |
| System.Boolean | isReExecution | Flag that indicates repeated execution of element. |
Returns
| Type | Description |
|---|---|
| System.Object | Value of the process parameter. |