Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class ProcessInstancesTree

OptimaJet.Workflow.Core.Subprocess.ProcessInstancesTree

public sealed class ProcessInstancesTree

Inheritance

  • System.Object

Constructors

public ProcessInstancesTree(Guid id) #

Parameters

Name
Type
Description
id
Guid
public ProcessInstancesTree(Guid id, string name, string startingTransitionName) #

Parameters

Name
Type
Description
id
Guid
name
String
startingTransitionName
String

Properties

Name
Type
Id #
Guid
Name #
String
StartingTransitionName #
String
Parent #
ProcessInstancesTree
Root #
ProcessInstancesTree
IsRoot #
Boolean
Children #
IEnumerable<ProcessInstancesTree>

Methods

public void Remove() #
public ProcessInstancesTree GetNodeById(Guid id, bool startFromRoot = true) #

Parameters

Name
Type
Description
id
Guid
startFromRoot
Boolean

Returns

Type
Description
ProcessInstancesTree
public List<ProcessInstancesTree> GetAllLeafs() #

Returns

Type
Description
List<ProcessInstancesTree>
public List<ProcessInstancesTree> GetAllLeafs(ProcessInstancesTree node, List<ProcessInstancesTree> acc) #

Parameters

Name
Type
Description
node
ProcessInstancesTree
acc
List<ProcessInstancesTree>

Returns

Type
Description
List<ProcessInstancesTree>
public List<Guid> GetAllChildrenIds(int startDistance = 1, int? endDistance = null) #

Parameters

Name
Type
Description
startDistance
Int32
endDistance
Nullable<Int32>

Returns

Type
Description
List<Guid>
public bool HaveChildWithName(string name) #

Parameters

Name
Type
Description
name
String

Returns

Type
Description
Boolean
public ProcessInstancesTree GetChildWithName(string name, bool deepSearch = false) #

Parameters

Name
Type
Description
name
String
deepSearch
Boolean

Returns

Type
Description
ProcessInstancesTree
public void AddChild(ProcessInstancesTree instancesTree) #

Parameters

Name
Type
Description
instancesTree
ProcessInstancesTree
public void RemoveChild(ProcessInstancesTree instancesTree) #

Parameters

Name
Type
Description
instancesTree
ProcessInstancesTree
public IEnumerable<ProcessInstancesTree> BreadthFirstTraversal(bool includeRoot, Func<ProcessInstancesTree, object> levelOrderBy = null) #

Parameters

Name
Type
Description
includeRoot
Boolean
levelOrderBy
Func<Object>

Returns

Type
Description
IEnumerable<ProcessInstancesTree>
public IEnumerable<ProcessInstancesTree> DepthFirstTraversal(bool includeRoot) #

Parameters

Name
Type
Description
includeRoot
Boolean

Returns

Type
Description
IEnumerable<ProcessInstancesTree>