Class BaseFlowSchemaGenerator<T>
Base class for the flow schema generator.
Inheritance
System.Object
BaseFlowSchemaGenerator<T>
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 abstract class BaseFlowSchemaGenerator<T> : IFlowSchemaGenerator where T : BaseProcessSchema
Type Parameters
Name |
Description |
T |
The type of the schema.
|
Constructors
BaseFlowSchemaGenerator(T)
Declaration
protected BaseFlowSchemaGenerator(T schema)
Parameters
Type |
Name |
Description |
T |
schema |
Schema of the process.
|
Fields
ActivityResultParameterName
Declaration
public const string ActivityResultParameterName = "ActivityResult"
Field Value
Type |
Description |
System.String |
|
BaseExpressionConvertors
Declaration
protected readonly List<ExpressionConverter> BaseExpressionConvertors
Field Value
Declaration
protected readonly Dictionary<string, ProcessParameterInfo> ExtraProcessParameters
Field Value
Log
Declaration
protected readonly ILog Log
Field Value
MapPathes
Declaration
protected readonly HashSet<string> MapPathes
Field Value
Type |
Description |
System.Collections.Generic.HashSet<System.String> |
|
ParametrizedSchemaElements
Declaration
protected readonly Dictionary<Guid, IProcessElementMetaInfo> ParametrizedSchemaElements
Field Value
Declaration
public const string PressedButtonCodeParameterName = "PressedButtonCode"
Field Value
Type |
Description |
System.String |
|
RegexEntityColumnParameterValue
Declaration
protected readonly Regex RegexEntityColumnParameterValue
Field Value
Type |
Description |
System.Text.RegularExpressions.Regex |
|
RegexParameterValue
Declaration
protected readonly Regex RegexParameterValue
Field Value
Type |
Description |
System.Text.RegularExpressions.Regex |
|
ResultDecisionsParameterName
Declaration
public const string ResultDecisionsParameterName = "ResultDecisions"
Field Value
Type |
Description |
System.String |
|
ResultParameterParameterName
Declaration
public const string ResultParameterParameterName = "ResultParameter"
Field Value
Type |
Description |
System.String |
|
Declaration
protected readonly Dictionary<string, HashSet<string>> SubParameterMetaPathes
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.HashSet<System.String>> |
|
Properties
ExpressionConvertors
Gets the read-only list of conversion methods.
Declaration
public IReadOnlyList<ExpressionConverter> ExpressionConvertors { get; }
Property Value
Schema
Declaration
protected T Schema { get; set; }
Property Value
Type |
Description |
T |
The schema.
|
ZeroWidthSpaceCharacter
The zero-width space is a non-printing character.
Declaration
public static char ZeroWidthSpaceCharacter { get; }
Property Value
Type |
Description |
System.Char |
|
Methods
AddMapPathes(HashSet<String>, String)
Declaration
protected static void AddMapPathes(HashSet<string> mapPaths, string mapPath)
Parameters
Type |
Name |
Description |
System.Collections.Generic.HashSet<System.String> |
mapPaths |
|
System.String |
mapPath |
|
AddMapPathes(HashSet<String>, String, Dictionary<String, HashSet<String>>, String)
Declaration
protected static void AddMapPathes(HashSet<string> mapPaths, string mapPath, Dictionary<string, HashSet<string>> subParameterMetaPaths, string subParameterMetaPath)
Parameters
Type |
Name |
Description |
System.Collections.Generic.HashSet<System.String> |
mapPaths |
|
System.String |
mapPath |
|
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.HashSet<System.String>> |
subParameterMetaPaths |
|
System.String |
subParameterMetaPath |
|
Declaration
protected void FillConditionallSequenceFlowExtraParameters(Dictionary<string, ProcessParameterInfo> parameterInfos, SequenceFlow sequenceFlow)
Parameters
FindProcessSchemaParameter(ProcessParameterMapInfo)
Finds the process schema parameter by its map info.
Declaration
public virtual ProcessSchemaParameter FindProcessSchemaParameter(ProcessParameterMapInfo parameterMapInfo)
Parameters
Returns
Generate()
Declaration
public abstract FlowSchema Generate()
Returns
GetParameterMapPath(String, String)
Returns the mapping path of the parameter.
Declaration
protected string GetParameterMapPath(string keyPrefix, string parameterUId)
Parameters
Type |
Name |
Description |
System.String |
keyPrefix |
|
System.String |
parameterUId |
|
Returns
Type |
Description |
System.String |
String that represents the mapping path of the parameter.
|
GetParametrizedProcessSchemaElement(Guid)
Gets the parametrized process schema element by the its identifier.
Declaration
public virtual IProcessElementMetaInfo GetParametrizedProcessSchemaElement(Guid schemaElementUId)
Parameters
Type |
Name |
Description |
System.Guid |
schemaElementUId |
The element's identifier.
|
Returns
GetParametrizedSchemaElements()
Declaration
public IReadOnlyList<IProcessElementMetaInfo> GetParametrizedSchemaElements()
Returns
GetProcessSchemaParameter(String)
Gets the process parameter by its path.
Declaration
public ProcessSchemaParameter GetProcessSchemaParameter(string parameterMapPath)
Parameters
Type |
Name |
Description |
System.String |
parameterMapPath |
The process parameter path.
|
Returns
GetProcessSchemaParameter(ProcessParameterMapInfo)
Gets the process parameter by its map info.
Declaration
public ProcessSchemaParameter GetProcessSchemaParameter(ProcessParameterMapInfo parameterMapInfo)
Parameters
Returns
TryGenerate(out FlowSchemaGeneratorResult)
Generates a new flow schema. A return value indicates whether the generation succeeded or failed.
Declaration
public bool TryGenerate(out FlowSchemaGeneratorResult generatorResult)
Parameters
Returns
Type |
Description |
System.Boolean |
true if flow schema is generated, otherwise - false .
|
TryGetProcessItemName(String, out String)
Attempts to get process schema parameter name or process element parameter name.
Declaration
public virtual bool TryGetProcessItemName(string parameterMapPath, out string itemName)
Parameters
Type |
Name |
Description |
System.String |
parameterMapPath |
Represents parameter mapping path.
|
System.String |
itemName |
Represents a string consisting of comma-separated parameter names.
|
Returns
Type |
Description |
System.Boolean |
true if the parameter exists, otherwise - false .
|
TryGetResultParameterValueType(Guid, out Type)
Attempts to get type of schema result parameter value.
Declaration
public bool TryGetResultParameterValueType(Guid schemaElementUId, out Type type)
Parameters
Type |
Name |
Description |
System.Guid |
schemaElementUId |
The element's identifier.
|
System.Type |
type |
Represents type of the result parameter.
|
Returns
Type |
Description |
System.Boolean |
true if type get successfully, otherwise - false .
|
Extension Methods
See Also
Terrasoft.Core.Process.IFlowSchemaGenerator