Class FlowElement
Представляет элемент бизнес-процесса.
Inheritance
Inherited Members
Namespace: Terrasoft.Core.Process
Assembly: Terrasoft.Core.dll
Syntax
public class FlowElement : IFlowElement
Constructors
FlowElement()
Declaration
protected FlowElement()
FlowElement(String)
Declaration
protected FlowElement(string bpmnElementName)
Parameters
Type | Name | Description |
---|---|---|
System.String | bpmnElementName |
FlowElement(FlowElement)
Declaration
protected FlowElement(FlowElement flowElement)
Parameters
Type | Name | Description |
---|---|---|
FlowElement | flowElement |
FlowElement(FlowSchema, String)
Initializes a new instance of the FlowElement class.
Declaration
public FlowElement(FlowSchema flowSchema, string bpmnElementName)
Parameters
Type | Name | Description |
---|---|---|
FlowSchema | flowSchema | The flow schema. |
System.String | bpmnElementName | Name of the BPMN element. |
Properties
BpmnElementName
Возвращает BPMN наименование элемента бизнес-процесса.
Declaration
public string BpmnElementName { get; }
Property Value
Type | Description |
---|---|
System.String |
DataWriterSettings
Declaration
protected JsonDataWriterSettings DataWriterSettings { get; }
Property Value
Type | Description |
---|---|
JsonDataWriterSettings |
FlowSchema
Возвращает экземпляр схемы бизнес-процесса FlowSchema.
Declaration
public FlowSchema FlowSchema { get; }
Property Value
Type | Description |
---|---|
FlowSchema |
IsUsedInEventSubProcess
Признак, используется ли в событийном подпроцессе.
Declaration
public bool IsUsedInEventSubProcess { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Возвращает и устанавливает наименование элемента бизнес-процесса.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ParameterPathes
Перечень путей к значениям параметров процесса.
Declaration
public LinkedList<string> ParameterPathes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.LinkedList<System.String> |
ParameterStore
Хранилище параметров бизнес-процесса IProcessParameterStore.
Declaration
public IProcessParameterStore ParameterStore { get; set; }
Property Value
Type | Description |
---|---|
IProcessParameterStore |
UId
Возвращает и устанавливает идентификатор элемента бизнес-процесса.
Declaration
public Guid UId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Methods
Accept(FlowVisitor, FlowElement)
Обрабатывает элемент бизнес-процесса.
Declaration
public virtual void Accept(FlowVisitor visitor, FlowElement previousFlowElement = null)
Parameters
Type | Name | Description |
---|---|---|
FlowVisitor | visitor | Экземпляр класса FlowVisitor, который отвечает за переход между элементами процесса. |
FlowElement | previousFlowElement | Не используется. |
Clone()
Создает копию экземпляра элемента бизнес-процесса.
Declaration
public virtual FlowElement Clone()
Returns
Type | Description |
---|---|
FlowElement | Копия экземпляра FlowElement элемента бизнес-процесса. |
Equals(Object)
Определяет, равны ли данный экземпляр FlowElement и заданный экземпляр System.Object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Экземпляр System.Object, который сравнивается с текущим экземпляром FlowElement. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
GetHashCode()
Возвращает хэш-код объекта.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Хэш-код объекта. |
Overrides
ReadProperties(DataReader)
Читает свойства бизнес-процесса с помощью заданного экземпляра
Declaration
public virtual void ReadProperties(DataReader dataReader)
Parameters
Type | Name | Description |
---|---|---|
DataReader | dataReader | Экземпляр класса для чтения свойств. |
ThrowExceptionObjectNullOrEmpty(String)
Declaration
protected void ThrowExceptionObjectNullOrEmpty(string objectName)
Parameters
Type | Name | Description |
---|---|---|
System.String | objectName |
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
Overrides
WriteProperties(DataWriter)
Записывает свойства бизнес-процесса с помощью заданного экземпляра
Declaration
public virtual void WriteProperties(DataWriter dataWriter)
Parameters
Type | Name | Description |
---|---|---|
DataWriter | dataWriter | Экземпляр класса для записи свойств. |
Events
Visited
Событие, возникающее когда элемент был обработан.
Declaration
public event Func<FlowElement, IEnumerable<FlowElement>> Visited
Event Type
Type | Description |
---|---|
System.Func<FlowElement, System.Collections.Generic.IEnumerable<FlowElement>> |