Class ProcessInstancesTree
Inheritance
↳ object
↳ ProcessInstancesTree
Inherited Members
Equals(object)
Equals(object, object)
GetHashCode()
GetType()
ReferenceEquals(object, object)
ToString()
Namespace: OptimaJet.Workflow.Core.Subprocess
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic sealed class ProcessInstancesTree
Constructors
ProcessInstancesTree(Guid)
Declarationpublic ProcessInstancesTree(Guid id)
| Type | Name | Description |
|---|---|---|
| Guid | id |
ProcessInstancesTree(Guid, string, string)
Declarationpublic ProcessInstancesTree(Guid id, string name, string startingTransitionName)
| Type | Name | Description |
|---|---|---|
| Guid | id | |
| string | name | |
| string | startingTransitionName |
Properties
Id
Declarationpublic Guid Id { get; }
| Type | Description |
|---|---|
| Guid |
Name
Declarationpublic string Name { get; set; }
| Type | Description |
|---|---|
| string |
StartingTransitionName
Declarationpublic string StartingTransitionName { get; set; }
| Type | Description |
|---|---|
| string |
Parent
Declarationpublic ProcessInstancesTree Parent { get; }
| Type | Description |
|---|---|
| ProcessInstancesTree |
Root
Declarationpublic ProcessInstancesTree Root { get; }
| Type | Description |
|---|---|
| ProcessInstancesTree |
IsRoot
Declarationpublic bool IsRoot { get; }
| Type | Description |
|---|---|
| bool |
Children
Declarationpublic IEnumerable<ProcessInstancesTree> Children { get; }
| Type | Description |
|---|---|
| IEnumerable<ProcessInstancesTree> |
Methods
Remove()
Declarationpublic void Remove()
GetNodeById(Guid, bool)
Declarationpublic ProcessInstancesTree GetNodeById(Guid id, bool startFromRoot = true)
| Type | Name | Description |
|---|---|---|
| Guid | id | |
| bool | startFromRoot |
| Type | Description |
|---|---|
| ProcessInstancesTree |
GetAllLeafs()
Declarationpublic List<ProcessInstancesTree> GetAllLeafs()
| Type | Description |
|---|---|
| List<ProcessInstancesTree> |
GetAllLeafs(ProcessInstancesTree, List<ProcessInstancesTree>)
Declarationpublic List<ProcessInstancesTree> GetAllLeafs(ProcessInstancesTree node, List<ProcessInstancesTree> acc)
| Type | Name | Description |
|---|---|---|
| ProcessInstancesTree | node | |
| List<ProcessInstancesTree> | acc |
| Type | Description |
|---|---|
| List<ProcessInstancesTree> |
GetAllChildrenIds(int, int?)
Declarationpublic List<Guid> GetAllChildrenIds(int startDistance = 1, int? endDistance = null)
| Type | Name | Description |
|---|---|---|
| int | startDistance | |
| int? | endDistance |
| Type | Description |
|---|---|
| List<Guid> |
HaveChildWithName(string)
Declarationpublic bool HaveChildWithName(string name)
| Type | Name | Description |
|---|---|---|
| string | name |
| Type | Description |
|---|---|
| bool |
GetChildWithName(string, bool)
Declarationpublic ProcessInstancesTree GetChildWithName(string name, bool deepSearch = false)
| Type | Name | Description |
|---|---|---|
| string | name | |
| bool | deepSearch |
| Type | Description |
|---|---|
| ProcessInstancesTree |
AddChild(ProcessInstancesTree)
Declarationpublic void AddChild(ProcessInstancesTree instancesTree)
| Type | Name | Description |
|---|---|---|
| ProcessInstancesTree | instancesTree |
RemoveChild(ProcessInstancesTree)
Declarationpublic void RemoveChild(ProcessInstancesTree instancesTree)
| Type | Name | Description |
|---|---|---|
| ProcessInstancesTree | instancesTree |
BreadthFirstTraversal(bool, Func<ProcessInstancesTree, object>)
Declarationpublic IEnumerable<ProcessInstancesTree> BreadthFirstTraversal(bool includeRoot, Func<ProcessInstancesTree, object> levelOrderBy = null)
| Type | Name | Description |
|---|---|---|
| bool | includeRoot | |
| Func<ProcessInstancesTree, object> | levelOrderBy |
| Type | Description |
|---|---|
| IEnumerable<ProcessInstancesTree> |
DepthFirstTraversal(bool)
Declarationpublic IEnumerable<ProcessInstancesTree> DepthFirstTraversal(bool includeRoot)
| Type | Name | Description |
|---|---|---|
| bool | includeRoot |
| Type | Description |
|---|---|
| IEnumerable<ProcessInstancesTree> |