Class ProcessComponentSet
Represents a set of process components that are required to run it.
Inheritance
Inherited Members
Namespace: Terrasoft.Core.Process
Assembly: Terrasoft.Core.dll
Syntax
public class ProcessComponentSet : Process, IProcessDataSerializable, IHandler<ChangeProcessElementPerformerCommand>, IEquatable<ProcessComponentSet>
Properties
MaxLoopCount
Gets maximum number of repetitions.
Declaration
public override int MaxLoopCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Overrides
ProcessModel
Gets instance that implements theIProcessModel interface.
Declaration
protected override IProcessModel ProcessModel { get; }
Property Value
Type | Description |
---|---|
IProcessModel |
Overrides
UseFlowEngineMode
Indicates whether the current process can be executed in interpreted environment.
Declaration
protected override bool UseFlowEngineMode { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Methods
ApplyPropertiesDataValues(DataReader)
Applies state of the current process.
Declaration
protected override void ApplyPropertiesDataValues(DataReader reader)
Parameters
Type | Name | Description |
---|---|---|
DataReader | reader | Instance that provides sequential reading of data. |
Overrides
Assign(ProcessFlowElement)
Assigns the property values of the current process element to the properties of the specified element.
Declaration
protected override void Assign(ProcessFlowElement processElement)
Parameters
Type | Name | Description |
---|---|---|
ProcessFlowElement | processElement | Instance of the ProcessFlowElement type. |
Overrides
CloneShallow()
Clones current instance without its flow elements.
Declaration
public override object CloneShallow()
Returns
Type | Description |
---|---|
System.Object | Shallow clone of current instance. |
Overrides
CompleteApplyingFlowElementsPropertiesData()
Completes applying state of the process elements.
Declaration
protected override void CompleteApplyingFlowElementsPropertiesData()
Overrides
Equals(ProcessComponentSet)
Determines whether the specified process is equal to the current process.
Declaration
public bool Equals(ProcessComponentSet other)
Parameters
Type | Name | Description |
---|---|---|
ProcessComponentSet | other | The process to compare with the current process. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Execute(String)
Executes process element by its name.
Declaration
public void Execute(string elementName)
Parameters
Type | Name | Description |
---|---|---|
System.String | elementName | Name of the process element. |
Execute(ProcessFlowElement, Object[])
Executes the process element.
Declaration
public override bool Execute(ProcessFlowElement processElement, params object[] parameters)
Parameters
Type | Name | Description |
---|---|---|
ProcessFlowElement | processElement | Process element. |
System.Object[] | parameters | The parameters. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetParameterValue<T>(String)
Gets parameter value by it's name.
Declaration
protected override T GetParameterValue<T>(string parameterName)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterName | The name of parameter. |
Returns
Type | Description |
---|---|
T | Returns the value of the property by name. |
Type Parameters
Name | Description |
---|---|
T | The type of parameter. |
Overrides
GetParameterValueByMetaPath(String)
Gets the process parameter value by meta path.
Declaration
public override object GetParameterValueByMetaPath(string metaPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaPath | The process parameter meta path. |
Returns
Type | Description |
---|---|
System.Object | The process parameter value. |
Overrides
InitializeFlowElementProperties(ProcessFlowElement)
Reads flow element parameter values from parameter store.
Declaration
[Obsolete("7.18.1 | Method is not in use and will be removed in upcoming releases.")]
public override void InitializeFlowElementProperties(ProcessFlowElement flowElement)
Parameters
Type | Name | Description |
---|---|---|
ProcessFlowElement | flowElement | The flow element instance. |
Overrides
PrepareStart(ProcessExecutingContext)
Prepares to start the current process.
Declaration
protected override void PrepareStart(ProcessExecutingContext context)
Parameters
Type | Name | Description |
---|---|---|
ProcessExecutingContext | context | The execution context. |
Overrides
SetParameterValue<T>(String, T)
Sets protected parameter value by it's name.
Declaration
protected override void SetParameterValue<T>(string parameterName, T value)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterName | The parameter name. |
T | value | The value. |
Type Parameters
Name | Description |
---|---|
T | The type of parameter. |
Overrides
TryCreateFlowElementInstance(String, Guid, out ProcessFlowElement)
Tries the create flow element instance.
Declaration
protected override bool TryCreateFlowElementInstance(string propertyName, Guid schemaElementUId, out ProcessFlowElement processFlowElement)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | Name of the corresponding process class property. |
System.Guid | schemaElementUId | The schema element identifier. |
ProcessFlowElement | processFlowElement | The process flow element. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
WriteProcessParameters()
Writes parameter values of the current process.
Declaration
protected override void WriteProcessParameters()
Overrides
WritePropertiesData(DataWriter, Boolean)
Writes state of the current process.
Declaration
public override void WritePropertiesData(DataWriter writer, bool shouldWriteElements)
Parameters
Type | Name | Description |
---|---|---|
DataWriter | writer | Instance of the DataWriter type. |
System.Boolean | shouldWriteElements | Indicates whether to write process elements. |