Class ProcessParameterValueProvider
Inheritance
System.Object
ProcessParameterValueProvider
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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
public IProcessParameterStore ProcessParameterStore { get; }
Property Value
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
Methods
EvalExpression(String)
Declaration
public object EvalExpression(string expressionText)
Parameters
Type |
Name |
Description |
System.String |
expressionText |
|
Returns
Type |
Description |
System.Object |
|
EvalExpression(String, Type)
Declaration
public object EvalExpression(string expressionText, Type resultType)
Parameters
Type |
Name |
Description |
System.String |
expressionText |
|
System.Type |
resultType |
|
Returns
Type |
Description |
System.Object |
|
EvalExpression<T>(String)
Declaration
public T EvalExpression<T>(string expressionText)
Parameters
Type |
Name |
Description |
System.String |
expressionText |
|
Returns
Type Parameters
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 code code is not set.
|
GetParameterValue(ProcessParameterMapInfo)
Declaration
public virtual object GetParameterValue(ProcessParameterMapInfo parameterMapInfo)
Parameters
Returns
Type |
Description |
System.Object |
|
GetParameterValue(ProcessParameterMapInfo, Boolean)
Declaration
public virtual object GetParameterValue(ProcessParameterMapInfo parameterMapInfo, bool isReExecution)
Parameters
Returns
Type |
Description |
System.Object |
|
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)
Declaration
public object GetParameterValue(ProcessSchemaParameter parameter, Guid schemaElementUId, object compositeObject, bool isReExecution)
Parameters
Type |
Name |
Description |
ProcessSchemaParameter |
parameter |
|
System.Guid |
schemaElementUId |
|
System.Object |
compositeObject |
|
System.Boolean |
isReExecution |
|
Returns
Type |
Description |
System.Object |
|
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.
|
Implements
Extension Methods