Class ProcessSchema
Represents class for the business process diagram.
Inheritance
System.Object
ProcessSchema
Implements
IMetaDataSerializable
System.ICloneable
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
[MetaType("{21B591D1-1B7F-4483-AA3D-1707D34F2D8F}")]
public class ProcessSchema : BaseProcessSchema, IMetaDataSerializable, ICloneable, IMetaSchema, IManagerItemInstance, IParametrizedProcessSchemaElement, IProcessElementMetaInfo, IProcessParametersMetaInfo, IMetaItem, ISchemaManagerSchema<ProcessSchema>, IUIDataSerializable, IProcessSchemaFlowElementsContainer, IProcessSchemaSerializable
Constructors
ProcessSchema(ISchemaManager)
Declaration
public ProcessSchema(ISchemaManager processSchemaManager)
Parameters
ProcessSchema(ISchemaManager, ProcessBasedSchema)
Declaration
public ProcessSchema(ISchemaManager processSchemaManager, ProcessBasedSchema ownerSchema)
Parameters
ProcessSchema(ProcessSchema)
Declaration
public ProcessSchema(ProcessSchema source)
Parameters
Type |
Name |
Description |
ProcessSchema |
source |
The source schema to copy state from.
|
Properties
Artifacts
Declaration
public ProcessSchemaArtifactCollection Artifacts { get; }
Property Value
Associations
Declaration
public ProcessSchemaAssociationCollection Associations { get; set; }
Property Value
ChangedMethods
Declaration
public Dictionary<Guid, ChangedSchemaMethod> ChangedMethods { get; set; }
Property Value
CompiledMethodsBody
Source of process methods in obsolete format for compiled processes.
Declaration
[MetaTypeProperty("{B9330065-962A-44E1-8603-333280C6D025}", DefValue = "")]
public string CompiledMethodsBody { get; set; }
Property Value
Type |
Description |
System.String |
|
Compressor
Declaration
public CompressionUtilities Compressor { get; }
Property Value
Type |
Description |
CompressionUtilities |
|
CultureName
Declaration
[MetaTypeProperty("{42862B57-534B-4D17-843D-B40990C0983C}", DefValue = "", IsExtraProperty = false)]
public string CultureName { get; set; }
Property Value
Type |
Description |
System.String |
|
Enabled
Gets whether the process is enabled.
Declaration
public virtual bool Enabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
ExecutionContexts
Declaration
[MetaTypeProperty("{E2691446-DE82-4C7E-ACE5-0664D62A8783}")]
public ProcessSchemaParameterCollection ExecutionContexts { get; }
Property Value
FlowElements
Declaration
public ProcessSchemaFlowElementCollection FlowElements { get; }
Property Value
Group
Declaration
[MetaTypeProperty("{F9977E74-B9BD-42EB-9C5A-51378FCDF136}")]
public LocalizableString Group { get; set; }
Property Value
Type |
Description |
LocalizableString |
|
HideInheritedElement
Declaration
public bool HideInheritedElement { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsCreatedInSvg
Declaration
[MetaTypeProperty("{A6563EC9-84EE-4106-896B-D4A65CF9D357}", IsExtraProperty = true, DefValue = false)]
public bool IsCreatedInSvg { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsEmbedded
Declaration
public bool IsEmbedded { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsExpanded
Declaration
public bool IsExpanded { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
IsInterpretable
Gets or sets flag that indicates whether the process is interpretable.
Declaration
[MetaTypeProperty("{34D1D899-A5DD-410F-A4D2-D37B1492736D}", IsExtraProperty = true, DefValue = false)]
public override bool IsInterpretable { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Gets the name of the "Is Interpretable" extra property.
Declaration
public static string IsInterpretableExtraPropertyName { get; }
Property Value
Type |
Description |
System.String |
|
ItemsSequentiallyNumbered
Declaration
public override bool ItemsSequentiallyNumbered { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Labels
Declaration
public ProcessSchemaFactoryMetaItemCollection<ProcessSchemaLabel> Labels { get; set; }
Property Value
LaneSets
Declaration
[MetaTypeProperty("{193C0DA1-CECE-421f-8335-EFA1E0D079A2}")]
public ProcessSchemaLaneSetCollection LaneSets { get; set; }
Property Value
Manager
Declaration
public override IManager Manager { get; }
Property Value
Overrides
MethodsBody
Source of process methods designed by user.
Declaration
[MetaTypeProperty("{BF1B5658-599D-4B23-81B7-B957B1EED892}", DefValue = "")]
public string MethodsBody { get; set; }
Property Value
Type |
Description |
System.String |
|
OwnerSchema
Declaration
public ProcessBasedSchema OwnerSchema { get; set; }
Property Value
ParametersEditPageSchemaUId
Declaration
[MetaTypeProperty("{D1C73D13-72F1-4C6A-B451-129160B29A59}")]
public Guid ParametersEditPageSchemaUId { get; set; }
Property Value
Type |
Description |
System.Guid |
|
ParentSchema
Declaration
public virtual ProcessSchema ParentSchema { get; set; }
Property Value
ParentSchemaUId
Declaration
public override Guid ParentSchemaUId { get; set; }
Property Value
Type |
Description |
System.Guid |
|
Overrides
ProcessSchemaManager
Declaration
public ProcessSchemaManager ProcessSchemaManager { get; }
Property Value
SequenceFlowStrokeDefColor
Declaration
[MetaTypeProperty("{39D91C75-549A-4203-90DC-DE16A79C1FAE}")]
public Color SequenceFlowStrokeDefColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Size
Declaration
public Size Size { get; set; }
Property Value
Type |
Description |
System.Drawing.Size |
|
Tag
Declaration
[MetaTypeProperty("{B45577EA-4ABB-40FF-8C73-5CE5BD613C05}", IsExtraProperty = true, DefValue = "")]
public string Tag { get; set; }
Property Value
Type |
Description |
System.String |
|
TaskFillDefColor
Declaration
[MetaTypeProperty("{A3D976B6-D67A-4016-B0A3-492439C663EE}")]
public Color TaskFillDefColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
UsageType
Declaration
[MetaTypeProperty("{90EB016F-6ABD-4798-B3EB-A2E86E4472B2}")]
public ProcessSchemaUsageType UsageType { get; set; }
Property Value
UseForceCompile
Symptom forced compilation process scheme.
Declaration
[MetaTypeProperty("{69F4767A-DAAC-4AEA-8B6D-D6A749C88FA5}", IsExtraProperty = true, DefValue = false)]
public bool UseForceCompile { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets the name of the "Use Force Compile" extra property.
Declaration
public static string UseForceCompileExtraPropertyName { get; }
Property Value
Type |
Description |
System.String |
|
ZipCompiledMethodsBody
Zipped source of process methods in obsolete format for compiled processes.
Declaration
public byte[] ZipCompiledMethodsBody { get; set; }
Property Value
Type |
Description |
System.Byte[] |
|
ZipMethodsBody
Zipped source of process methods designed by user.
Declaration
public byte[] ZipMethodsBody { get; set; }
Property Value
Type |
Description |
System.Byte[] |
|
Methods
Actualizes the schema with the current format of the data.
When format of the schema data changes, it's required to modify this method or
Terrasoft.Core.Process.ProcessSchemaParameterValue.ActualizeFormatData.
Declaration
public void ActualizeFormatData()
Actualizes the schema with the current format of the data.
When format of the schema data changes, it's required to modify this method or
Terrasoft.Core.Process.ProcessSchemaParameterValue.ActualizeFormatData.
Declaration
public void ActualizeFormatData(bool convertLocalizableStringToParameter)
Parameters
Type |
Name |
Description |
System.Boolean |
convertLocalizableStringToParameter |
Flags that indicates convert localilzable
strings to parameters
|
Declaration
protected override void ApplyMetaDataValue(DataReader reader)
Parameters
Type |
Name |
Description |
DataReader |
reader |
|
Overrides
AssignParentSchema(ProcessSchema)
Declaration
public bool AssignParentSchema(ProcessSchema parentSchema)
Parameters
Returns
Type |
Description |
System.Boolean |
|
CheckProcessElementUniqueName(BaseProcessSchemaElement)
Declaration
public string CheckProcessElementUniqueName(BaseProcessSchemaElement element)
Parameters
Returns
Type |
Description |
System.String |
|
Clone()
Creates a new instance that is a copy of the current instance.
Declaration
public override object Clone()
Returns
Type |
Description |
System.Object |
A new instance of the ProcessSchema type.
|
Overrides
CreateProcess(UserConnection)
Declaration
public override Process CreateProcess(UserConnection userConnection)
Parameters
Returns
Overrides
FindBaseElementByName(String)
Finds the element by name.
Declaration
public ProcessSchemaBaseElement FindBaseElementByName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
The name of the element.
|
Returns
FindBaseElementByUId(Guid)
Finds the element by identifier.
Declaration
public ProcessSchemaBaseElement FindBaseElementByUId(Guid uid)
Parameters
Type |
Name |
Description |
System.Guid |
uid |
The identifier of the element.
|
Returns
GenerateItemUniqueIndex(String)
Declaration
public override int GenerateItemUniqueIndex(string prefix)
Parameters
Type |
Name |
Description |
System.String |
prefix |
|
Returns
Type |
Description |
System.Int32 |
|
Overrides
GetBaseElementByName(String)
Gets the element by name.
Declaration
public ProcessSchemaBaseElement GetBaseElementByName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
The name of the element.
|
Returns
GetBaseElementByUId(Guid)
Gets the element by identifier.
Declaration
public ProcessSchemaBaseElement GetBaseElementByUId(Guid uid)
Parameters
Type |
Name |
Description |
System.Guid |
uid |
The identifier of the element.
|
Returns
GetBaseElementByUId(Guid, Boolean)
Gets the element by identifier.
Declaration
public ProcessSchemaBaseElement GetBaseElementByUId(Guid uid, bool shoulGetFromParent)
Parameters
Type |
Name |
Description |
System.Guid |
uid |
The identifier of the element.
|
System.Boolean |
shoulGetFromParent |
Indicates whether to should find in parent elements.
|
Returns
GetBaseElements()
Declaration
public IEnumerable<ProcessSchemaBaseElement> GetBaseElements()
Returns
GetFlowElements()
Declaration
public IEnumerable<ProcessSchemaFlowElement> GetFlowElements()
Returns
GetLocalizableValues(ICollection<LocalizableValue>, Boolean)
Declaration
public override void GetLocalizableValues(ICollection<LocalizableValue> values, bool includeInherited)
Parameters
Type |
Name |
Description |
System.Collections.Generic.ICollection<LocalizableValue> |
values |
|
System.Boolean |
includeInherited |
|
Overrides
Declaration
public override void GetMetaItems(ICollection<IMetaItem> metaItems)
Parameters
Type |
Name |
Description |
System.Collections.Generic.ICollection<IMetaItem> |
metaItems |
|
Overrides
GetParametrizedElements()
Declaration
public IEnumerable<IParametrizedProcessSchemaElement> GetParametrizedElements()
Returns
GetSourceFlowNodes(Guid)
Declaration
public IEnumerable<ProcessSchemaFlowNode> GetSourceFlowNodes(Guid targetTaskUId)
Parameters
Type |
Name |
Description |
System.Guid |
targetTaskUId |
|
Returns
GetTargetFlowNodes(Guid)
Declaration
public IEnumerable<ProcessSchemaFlowNode> GetTargetFlowNodes(Guid sourceFlowItemUId)
Parameters
Type |
Name |
Description |
System.Guid |
sourceFlowItemUId |
|
Returns
HasFlowsBetweenElements(Guid, Guid)
Declaration
public bool HasFlowsBetweenElements(Guid sourceElementUId, Guid targetElementUId)
Parameters
Type |
Name |
Description |
System.Guid |
sourceElementUId |
|
System.Guid |
targetElementUId |
|
Returns
Type |
Description |
System.Boolean |
|
InitializeBaseElements()
Declaration
protected virtual void InitializeBaseElements()
InitializeLocalizableValues(String, String)
Declaration
public override void InitializeLocalizableValues(string resourceManagerName, string resourceGroupName = null)
Parameters
Type |
Name |
Description |
System.String |
resourceManagerName |
|
System.String |
resourceGroupName |
|
Overrides
InitializeModifiedInSchemaUId()
Declaration
public override void InitializeModifiedInSchemaUId()
Overrides
InitializePrimaryInfo()
Declaration
public override void InitializePrimaryInfo()
Overrides
InitializeProperties()
Declaration
protected override void InitializeProperties()
Overrides
LoadLocalizableValues()
Declaration
public override void LoadLocalizableValues()
Overrides
LoadResources()
Declaration
protected override void LoadResources()
Overrides
ReadUIData(DataReader)
Declaration
public void ReadUIData(DataReader reader)
Parameters
Type |
Name |
Description |
DataReader |
reader |
|
RemoveElementByUId(Guid, Collection<Guid>)
Declaration
public void RemoveElementByUId(Guid elementUId, Collection<Guid> removedElementUIds)
Parameters
Type |
Name |
Description |
System.Guid |
elementUId |
|
System.Collections.ObjectModel.Collection<System.Guid> |
removedElementUIds |
|
RemoveElementByUIdWithChangeDependecies(ProcessSchemaBaseElement, Collection<Guid>, Collection<KeyValuePair<Guid, String>>)
Declaration
public void RemoveElementByUIdWithChangeDependecies(ProcessSchemaBaseElement processSchemaBaseElement, Collection<Guid> removedElementUIds, Collection<KeyValuePair<Guid, string>> changedElements)
Parameters
Type |
Name |
Description |
ProcessSchemaBaseElement |
processSchemaBaseElement |
|
System.Collections.ObjectModel.Collection<System.Guid> |
removedElementUIds |
|
System.Collections.ObjectModel.Collection<System.Collections.Generic.KeyValuePair<System.Guid, System.String>> |
changedElements |
|
RemoveProcessSchemaBaseElement(ProcessSchemaBaseElement, Collection<Guid>)
Declaration
public void RemoveProcessSchemaBaseElement(ProcessSchemaBaseElement processSchemaBaseElement, Collection<Guid> removedElementUIds)
Parameters
Type |
Name |
Description |
ProcessSchemaBaseElement |
processSchemaBaseElement |
|
System.Collections.ObjectModel.Collection<System.Guid> |
removedElementUIds |
|
SetDefInheritance()
Declaration
public override void SetDefInheritance()
Overrides
SetExecutionContextsDefInheritance(Guid)
Declaration
protected void SetExecutionContextsDefInheritance(Guid schemaUId)
Parameters
Type |
Name |
Description |
System.Guid |
schemaUId |
|
SetParametersDefInheritance(Guid)
Declaration
protected void SetParametersDefInheritance(Guid schemaUId)
Parameters
Type |
Name |
Description |
System.Guid |
schemaUId |
|
SynchronizeParameters()
Synchronizes elements parameters.
Declaration
public override void SynchronizeParameters()
Overrides
Declaration
public override void WriteMetaData(DataWriter writer)
Parameters
Type |
Name |
Description |
DataWriter |
writer |
|
Overrides
WriteUIData(DataWriter)
Declaration
public void WriteUIData(DataWriter writer)
Parameters
Type |
Name |
Description |
DataWriter |
writer |
|
WriteUIPropertyData(DataWriter, String)
Declaration
public void WriteUIPropertyData(DataWriter writer, string propertyName)
Parameters
Type |
Name |
Description |
DataWriter |
writer |
|
System.String |
propertyName |
|
Implements
IMetaDataSerializable
System.ICloneable
Extension Methods