Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

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

Syntax
public sealed class ProcessInstancesTree

Constructors

ProcessInstancesTree(Guid)

Declaration
public ProcessInstancesTree(Guid id)
Parameters
TypeNameDescription
Guidid

ProcessInstancesTree(Guid, string, string)

Declaration
public ProcessInstancesTree(Guid id, string name, string startingTransitionName)
Parameters
TypeNameDescription
Guidid
stringname
stringstartingTransitionName

Properties

Id

Declaration
public Guid Id { get; }
Property value
TypeDescription
Guid

Name

Declaration
public string Name { get; set; }
Property value
TypeDescription
string

StartingTransitionName

Declaration
public string StartingTransitionName { get; set; }
Property value
TypeDescription
string

Parent

Declaration
public ProcessInstancesTree Parent { get; }
Property value
TypeDescription
ProcessInstancesTree

Root

Declaration
public ProcessInstancesTree Root { get; }
Property value
TypeDescription
ProcessInstancesTree

IsRoot

Declaration
public bool IsRoot { get; }
Property value
TypeDescription
bool

Children

Declaration
public IEnumerable<ProcessInstancesTree> Children { get; }
Property value
TypeDescription
IEnumerable<ProcessInstancesTree>

Methods

Remove()

Declaration
public void Remove()

GetNodeById(Guid, bool)

Declaration
public ProcessInstancesTree GetNodeById(Guid id, bool startFromRoot = true)
Parameters
TypeNameDescription
Guidid
boolstartFromRoot
Returns
TypeDescription
ProcessInstancesTree

GetAllLeafs()

Declaration
public List<ProcessInstancesTree> GetAllLeafs()
Returns
TypeDescription
List<ProcessInstancesTree>

GetAllLeafs(ProcessInstancesTree, List<ProcessInstancesTree>)

Declaration
public List<ProcessInstancesTree> GetAllLeafs(ProcessInstancesTree node, List<ProcessInstancesTree> acc)
Parameters
TypeNameDescription
ProcessInstancesTreenode
List<ProcessInstancesTree>acc
Returns
TypeDescription
List<ProcessInstancesTree>

GetAllChildrenIds(int, int?)

Declaration
public List<Guid> GetAllChildrenIds(int startDistance = 1, int? endDistance = null)
Parameters
TypeNameDescription
intstartDistance
int?endDistance
Returns
TypeDescription
List<Guid>

HaveChildWithName(string)

Declaration
public bool HaveChildWithName(string name)
Parameters
TypeNameDescription
stringname
Returns
TypeDescription
bool

GetChildWithName(string, bool)

Declaration
public ProcessInstancesTree GetChildWithName(string name, bool deepSearch = false)
Parameters
TypeNameDescription
stringname
booldeepSearch
Returns
TypeDescription
ProcessInstancesTree

AddChild(ProcessInstancesTree)

Declaration
public void AddChild(ProcessInstancesTree instancesTree)
Parameters
TypeNameDescription
ProcessInstancesTreeinstancesTree

RemoveChild(ProcessInstancesTree)

Declaration
public void RemoveChild(ProcessInstancesTree instancesTree)
Parameters
TypeNameDescription
ProcessInstancesTreeinstancesTree

BreadthFirstTraversal(bool, Func<ProcessInstancesTree, object>)

Declaration
public IEnumerable<ProcessInstancesTree> BreadthFirstTraversal(bool includeRoot, Func<ProcessInstancesTree, object> levelOrderBy = null)
Parameters
TypeNameDescription
boolincludeRoot
Func<ProcessInstancesTree, object>levelOrderBy
Returns
TypeDescription
IEnumerable<ProcessInstancesTree>

DepthFirstTraversal(bool)

Declaration
public IEnumerable<ProcessInstancesTree> DepthFirstTraversal(bool includeRoot)
Parameters
TypeNameDescription
boolincludeRoot
Returns
TypeDescription
IEnumerable<ProcessInstancesTree>

Extension Methods