Class ProcessParameterValueProvider
Inheritance
Implements
Inherited Members
Namespace: Terrasoft.Core.Process
Assembly: Terrasoft.Core.dll
Syntax
public class ProcessParameterValueProvider : IInternalProcessParameterValueProvider, IProcessParameterValueProvider
Properties
ConvertExpressionTextToCode
Function of converting of expression text in a line of a code.
Declaration
public Func<string, string> ConvertExpressionTextToCode { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.String, System.String> |
CreateEntity
Function of getting reference object to which process parameter refers.
Declaration
public Func<Guid, object> CreateEntity { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Guid, System.Object> |
GetSysSettingsValue
Function of getting system settings.
Declaration
public Func<string, Type, object> GetSysSettingsValue { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.String, System.Type, System.Object> |
GetSysVariableValue
Function of getting system variables.
Declaration
public Func<string, object> GetSysVariableValue { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.String, System.Object> |
ProcessParameterStore
Storage of process parameters.
Declaration
[Obsolete("7.18.5 | Property is not in use and will be removed in upcoming releases. Instead of, please, use GetParameterValue to obtain parameter value.")]
public IProcessParameterStore ProcessParameterStore { get; }
Property Value
Type | Description |
---|---|
IProcessParameterStore |
ProcessUId
Declaration
protected Guid ProcessUId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
ScriptSession
The service which is carrying out expression execution.
Declaration
public IScriptSession ScriptSession { get; }
Property Value
Type | Description |
---|---|
IScriptSession |
Methods
EvalExpression(String)
Evaluates expression and returns the value with System.Object type.
Declaration
public 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
public 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
public 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 |
GetEntityColumnValue(Guid, String, String)
Declaration
public object GetEntityColumnValue(Guid entitySchemaUId, string recordIdPath, string columnMetaPath)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | entitySchemaUId | |
System.String | recordIdPath | |
System.String | columnMetaPath |
Returns
Type | Description |
---|---|
System.Object |
GetNoneEmptySysSettingsValue(String, Type)
Returns existing value of the system settings and checks whether the value is set.
Declaration
public object GetNoneEmptySysSettingsValue(string code, Type type)
Parameters
Type | Name | Description |
---|---|---|
System.String | code | Code of the system settings. |
System.Type | type | Type of the system settings. |
Returns
Type | Description |
---|---|
System.Object | Value of the system settings. |
Exceptions
Type | Condition |
---|---|
System.Configuration.SettingsPropertyNotFoundException | Throws exception if the system settings with |
GetParameterValue(ProcessParameterMapInfo)
Returns value of the process parameter.
Declaration
public virtual 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
public virtual 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, Boolean)
Returns value of the process parameter.
Declaration
public object GetParameterValue(ProcessSchemaParameter parameter, Guid schemaElementUId, bool isReExecution)
Parameters
Type | Name | Description |
---|---|---|
ProcessSchemaParameter | parameter | Process parameter |
System.Guid | schemaElementUId | Identifier of the process element. |
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
public 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. |
ValidateExpression(String, Type)
Verifies the correctness of expression. Generates exception when expression is incorrect.
Declaration
public void ValidateExpression(string expressionText, Type resultType)
Parameters
Type | Name | Description |
---|---|---|
System.String | expressionText | Expression text. |
System.Type | resultType | Expected type of the evaluation result. |