Class ProcessSchemaGenerator
Inheritance
System.Object
ProcessSchemaGenerator
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 ProcessSchemaGenerator : SchemaCodeGenerator<ProcessSchema>
Constructors
ProcessSchemaGenerator(UserConnection, String)
Declaration
public ProcessSchemaGenerator(UserConnection userConnection, string namespaceName)
Parameters
Type |
Name |
Description |
UserConnection |
userConnection |
|
System.String |
namespaceName |
|
Fields
WriteDeserializeMethodBodyCallBaseMethod
Declaration
protected const string WriteDeserializeMethodBodyCallBaseMethod = "base.Deserialize(processData);"
Field Value
Type |
Description |
System.String |
|
WriteSerializeMethodBodyCallBaseMethod
Declaration
protected const string WriteSerializeMethodBodyCallBaseMethod = "Dictionary<string, object> processData = base.Serialize();"
Field Value
Type |
Description |
System.String |
|
Properties
Compressor
Declaration
public CompressionUtilities Compressor { get; }
Property Value
Type |
Description |
CompressionUtilities |
|
RegexConstString
Declaration
public static Regex RegexConstString { get; }
Property Value
Type |
Description |
System.Text.RegularExpressions.Regex |
|
RegexLookupValueMacros
Declaration
public static Regex RegexLookupValueMacros { get; }
Property Value
Type |
Description |
System.Text.RegularExpressions.Regex |
|
RegexParameterMacros
Declaration
public static Regex RegexParameterMacros { get; }
Property Value
Type |
Description |
System.Text.RegularExpressions.Regex |
|
RegexPropertyNameParser
Declaration
public static Regex RegexPropertyNameParser { get; }
Property Value
Type |
Description |
System.Text.RegularExpressions.Regex |
|
RegexSysSettingsMacros
Declaration
public static Regex RegexSysSettingsMacros { get; }
Property Value
Type |
Description |
System.Text.RegularExpressions.Regex |
|
RegexSysVariableMacros
Declaration
public static Regex RegexSysVariableMacros { get; }
Property Value
Type |
Description |
System.Text.RegularExpressions.Regex |
|
WithoutProcessCode
Declaration
public bool WithoutProcessCode { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Declaration
protected virtual void AddInitializeMetaPathParameterValuesMethod(ProcessSchema schema, Collection<CodeGenerator.MethodCollectionItem> protectedMethods)
Parameters
FindInheritanceSchemaParameter(ProcessSchema, Guid)
Declaration
protected ProcessSchemaParameter FindInheritanceSchemaParameter(ProcessSchema processSchema, Guid uId)
Parameters
Type |
Name |
Description |
ProcessSchema |
processSchema |
|
System.Guid |
uId |
|
Returns
GenerateFlowElementObjectInitializer(ProcessSchemaFlowElement, String, String, Collection<String>, String, String, String)
Declaration
protected Collection<string> GenerateFlowElementObjectInitializer(ProcessSchemaFlowElement flowElement, string fieldName, string typeName, Collection<string> advancedProperties = null, string type = null, string name = null, string constructorArguments = null)
Parameters
Type |
Name |
Description |
ProcessSchemaFlowElement |
flowElement |
|
System.String |
fieldName |
|
System.String |
typeName |
|
System.Collections.ObjectModel.Collection<System.String> |
advancedProperties |
|
System.String |
type |
|
System.String |
name |
|
System.String |
constructorArguments |
|
Returns
Type |
Description |
System.Collections.ObjectModel.Collection<System.String> |
|
GenerateProcessActivityConstructorBody(ProcessSchemaFlowNode, String, Collection<String>, String, String)
Declaration
protected Collection<string> GenerateProcessActivityConstructorBody(ProcessSchemaFlowNode processActivity, string fieldName, Collection<string> advancedProperties = null, string type = null, string name = null)
Parameters
Type |
Name |
Description |
ProcessSchemaFlowNode |
processActivity |
|
System.String |
fieldName |
|
System.Collections.ObjectModel.Collection<System.String> |
advancedProperties |
|
System.String |
type |
|
System.String |
name |
|
Returns
Type |
Description |
System.Collections.ObjectModel.Collection<System.String> |
|
GenerateProcessActivityObjectInitializer(ProcessSchemaFlowNode, String, String, Collection<String>, String, String)
Declaration
protected Collection<string> GenerateProcessActivityObjectInitializer(ProcessSchemaFlowNode processActivity, string fieldName, string typeName, Collection<string> advancedProperties = null, string type = null, string name = null)
Parameters
Type |
Name |
Description |
ProcessSchemaFlowNode |
processActivity |
|
System.String |
fieldName |
|
System.String |
typeName |
|
System.Collections.ObjectModel.Collection<System.String> |
advancedProperties |
|
System.String |
type |
|
System.String |
name |
|
Returns
Type |
Description |
System.Collections.ObjectModel.Collection<System.String> |
|
GenerateThrowEventMethodBody(ProcessSchemaStartMessageEvent, Collection<String>)
Declaration
protected virtual void GenerateThrowEventMethodBody(ProcessSchemaStartMessageEvent startMessageEvent, Collection<string> throwEventMethodBody)
Parameters
GetConstructorCollection(String, Boolean)
Declaration
protected virtual Collection<CodeGenerator.BaseMethodCollectionItem> GetConstructorCollection(string schemaName, bool isEmbedded)
Parameters
Type |
Name |
Description |
System.String |
schemaName |
|
System.Boolean |
isEmbedded |
|
Returns
GetDesignModeClassDescriptor(Type)
Declaration
protected DesignModeClassDescriptor GetDesignModeClassDescriptor(Type classType)
Parameters
Type |
Name |
Description |
System.Type |
classType |
|
Returns
GetFlowNodeProcessSchemaName(ProcessSchemaFlowNode)
Declaration
protected virtual string GetFlowNodeProcessSchemaName(ProcessSchemaFlowNode flowNode)
Parameters
Returns
Type |
Description |
System.String |
|
Declaration
public virtual string GetMetaPath(ProcessSchema schema, string path)
Parameters
Returns
Type |
Description |
System.String |
|
Declaration
public virtual string GetPropertyPathByMetaPath(ProcessSchemaParameter parameter, string propertyMetaPath, bool getDisplayPropertyPath = false, bool addProcessPropertyPath = true)
Parameters
Type |
Name |
Description |
ProcessSchemaParameter |
parameter |
|
System.String |
propertyMetaPath |
|
System.Boolean |
getDisplayPropertyPath |
|
System.Boolean |
addProcessPropertyPath |
|
Returns
Type |
Description |
System.String |
|
Declaration
public string GetSchemaMetaPath(ProcessSchema processSchema, string path)
Parameters
Type |
Name |
Description |
ProcessSchema |
processSchema |
|
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
InsertProcessTokens(ProcessSchema)
Declaration
protected virtual void InsertProcessTokens(ProcessSchema processSchema)
Parameters
PrepareEndEventActivity(ProcessSchema, ProcessSchemaFlowNode, Collection<String>, Collection<String>)
Declaration
protected virtual void PrepareEndEventActivity(ProcessSchema schema, ProcessSchemaFlowNode flowNode, Collection<string> processQueueMethodBody, Collection<string> executedMethodBody)
Parameters
Type |
Name |
Description |
ProcessSchema |
schema |
|
ProcessSchemaFlowNode |
flowNode |
|
System.Collections.ObjectModel.Collection<System.String> |
processQueueMethodBody |
|
System.Collections.ObjectModel.Collection<System.String> |
executedMethodBody |
|
PrepareNextIntermediateCatchSignalEvent(ProcessSchemaFlowNode, ProcessSchemaIntermediateCatchSignalEvent, Collection<String>, Boolean)
Declaration
protected virtual void PrepareNextIntermediateCatchSignalEvent(ProcessSchemaFlowNode flowNode, ProcessSchemaIntermediateCatchSignalEvent nextFlowNode, Collection<string> executedMethodBody, bool isActivityConditionalFlow)
Parameters
PrepareNextIntermediateCatchTimerEvent(ProcessSchemaFlowNode, ProcessSchemaIntermediateCatchTimerEvent, Collection<String>, Boolean)
Declaration
protected virtual void PrepareNextIntermediateCatchTimerEvent(ProcessSchemaFlowNode flowNode, ProcessSchemaIntermediateCatchTimerEvent nextFlowNode, Collection<string> executedMethodBody, bool isActivityConditionalFlow)
Parameters
PrepareScriptTaskActivity(ProcessSchema, ProcessSchemaFlowNode, Collection<String>, Collection<String>)
Declaration
protected virtual void PrepareScriptTaskActivity(ProcessSchema schema, ProcessSchemaFlowNode flowNode, Collection<string> processQueueMethodBody, Collection<string> executedMethodBody)
Parameters
Type |
Name |
Description |
ProcessSchema |
schema |
|
ProcessSchemaFlowNode |
flowNode |
|
System.Collections.ObjectModel.Collection<System.String> |
processQueueMethodBody |
|
System.Collections.ObjectModel.Collection<System.String> |
executedMethodBody |
|
PrepareStartMethodBody(SchemaCodeGeneratorResource<ProcessSchema>, Collection<String>, Collection<String>, Collection<CodeGenerator.PropertyCollectionItem>)
Declaration
protected virtual void PrepareStartMethodBody(SchemaCodeGeneratorResource<ProcessSchema> resource, Collection<string> constructorMethodBody, Collection<string> prepareStartMethodBody, Collection<CodeGenerator.PropertyCollectionItem> publicProperties)
Parameters
PrepareUserTaskActivity(ProcessSchema, ProcessSchemaUserTask, Collection<String>, Collection<String>)
Declaration
protected virtual void PrepareUserTaskActivity(ProcessSchema schema, ProcessSchemaUserTask userTask, Collection<string> processQueueMethodBody, Collection<string> executedMethodBody)
Parameters
Type |
Name |
Description |
ProcessSchema |
schema |
|
ProcessSchemaUserTask |
userTask |
|
System.Collections.ObjectModel.Collection<System.String> |
processQueueMethodBody |
|
System.Collections.ObjectModel.Collection<System.String> |
executedMethodBody |
|
RemoveProcessTokens(ProcessSchema)
Declaration
protected virtual void RemoveProcessTokens(ProcessSchema processSchema)
Parameters
SpecifyCommonUsingCollection(Collection<String>, ProcessSchema)
Declaration
protected override void SpecifyCommonUsingCollection(Collection<string> commonUsingCollection, ProcessSchema schema)
Parameters
Type |
Name |
Description |
System.Collections.ObjectModel.Collection<System.String> |
commonUsingCollection |
|
ProcessSchema |
schema |
|
Overrides
Terrasoft.Core.CodeGeneration.SchemaCodeGenerator<Terrasoft.Core.Process.ProcessSchema>.SpecifyCommonUsingCollection(System.Collections.ObjectModel.Collection<System.String>, Terrasoft.Core.Process.ProcessSchema)
WriteCloneShallowMethodBody(ProcessSchema, Collection<String>)
Declaration
protected virtual void WriteCloneShallowMethodBody(ProcessSchema schema, Collection<string> cloneShallowMethodBody)
Parameters
Type |
Name |
Description |
ProcessSchema |
schema |
|
System.Collections.ObjectModel.Collection<System.String> |
cloneShallowMethodBody |
|
WriteConditionalFlowPropertyType(GeneratorContext, ProcessSchemaConditionalFlow, String)
Declaration
protected virtual string WriteConditionalFlowPropertyType(GeneratorContext context, ProcessSchemaConditionalFlow conditionalFlow, string parentClassName = "ProcessConditionalFlow")
Parameters
Returns
Type |
Description |
System.String |
|
WriteFlowElementPropertyType(GeneratorContext, ProcessSchemaBaseElement, String)
Declaration
protected virtual string WriteFlowElementPropertyType(GeneratorContext context, ProcessSchemaBaseElement baseElement, string parentClassName = "ProcessFlowElement")
Parameters
Returns
Type |
Description |
System.String |
|
WriteFlowNodePropertyType(GeneratorContext, ProcessSchemaFlowNode, Collection<String>, String, Collection<CodeGenerator.MethodCollectionItem>)
Declaration
protected virtual string WriteFlowNodePropertyType(GeneratorContext context, ProcessSchemaFlowNode flowNode, Collection<string> flowNodePropertyTypeConstructorBody, string parentClassName = "ProcessFlowElement", Collection<CodeGenerator.MethodCollectionItem> publicMethods = null)
Parameters
Returns
Type |
Description |
System.String |
|
WriteParallelGatewayPropertyType(GeneratorContext, ProcessSchemaFlowNode, Collection<String>)
Declaration
protected virtual string WriteParallelGatewayPropertyType(GeneratorContext context, ProcessSchemaFlowNode flowNode, Collection<string> flowNodePropertyTypeConstructorBody)
Parameters
Returns
Type |
Description |
System.String |
|
WriteProcessCode(GeneratorContext, SchemaCodeGeneratorResource<ProcessSchema>, GeneratorTokenVisibility)
Declaration
public virtual void WriteProcessCode(GeneratorContext context, SchemaCodeGeneratorResource<ProcessSchema> resource, GeneratorTokenVisibility sourceVisibility)
Parameters
WriteProcessFlowNodeProperties(GeneratorContext, Collection<CodeGenerator.PropertyCollectionItem>, ProcessSchemaFlowNode, String)
Declaration
protected virtual void WriteProcessFlowNodeProperties(GeneratorContext context, Collection<CodeGenerator.PropertyCollectionItem> publicProperties, ProcessSchemaFlowNode flowNode, string flowNodeTypeName = "ProcessFlowElement")
Parameters
WriteProcessIntermediateCatchSignalEventProperties(GeneratorContext, Collection<CodeGenerator.PropertyCollectionItem>, ProcessSchemaIntermediateCatchSignalEvent)
Declaration
protected virtual void WriteProcessIntermediateCatchSignalEventProperties(GeneratorContext context, Collection<CodeGenerator.PropertyCollectionItem> publicProperties, ProcessSchemaIntermediateCatchSignalEvent intermediateCatchSignalEvent)
Parameters
WriteProcessProperties(GeneratorContext, ProcessSchema, Collection<CodeGenerator.PropertyCollectionItem>)
Writes process properties.
Declaration
protected virtual void WriteProcessProperties(GeneratorContext context, ProcessSchema processSchema, Collection<CodeGenerator.PropertyCollectionItem> publicProperties)
Parameters
WriteProcessScriptTaskProperties(GeneratorContext, Collection<CodeGenerator.PropertyCollectionItem>, ProcessSchemaFlowNode, String)
Declaration
protected virtual void WriteProcessScriptTaskProperties(GeneratorContext context, Collection<CodeGenerator.PropertyCollectionItem> publicProperties, ProcessSchemaFlowNode flowNode, string flowNodeTypeName = "ProcessScriptTask")
Parameters
WriteReadAndWritePropertiesDataMethodsBody(ProcessSchema, Collection<String>, Collection<String>)
Declaration
protected virtual void WriteReadAndWritePropertiesDataMethodsBody(ProcessSchema schema, Collection<string> applyMetaDataMethodBody, Collection<string> writePropertiesDataMethodBody)
Parameters
Type |
Name |
Description |
ProcessSchema |
schema |
|
System.Collections.ObjectModel.Collection<System.String> |
applyMetaDataMethodBody |
|
System.Collections.ObjectModel.Collection<System.String> |
writePropertiesDataMethodBody |
|
WriteSchemaClassBody(GeneratorContext, SchemaCodeGeneratorResource<ProcessSchema>, GeneratorTokenVisibility)
Declaration
protected override void WriteSchemaClassBody(GeneratorContext context, SchemaCodeGeneratorResource<ProcessSchema> resource, GeneratorTokenVisibility sourceVisibility)
Parameters
Overrides
Terrasoft.Core.CodeGeneration.SchemaCodeGenerator<Terrasoft.Core.Process.ProcessSchema>.WriteSchemaClassBody(Terrasoft.Core.CodeGeneration.GeneratorContext, Terrasoft.Core.CodeGeneration.SchemaCodeGeneratorResource<Terrasoft.Core.Process.ProcessSchema>, Terrasoft.Core.CodeGeneration.GeneratorTokenVisibility)
Extension Methods