Class ReferenceWalker<T>

java.lang.Object
org.camunda.bpm.engine.impl.tree.ReferenceWalker<T>
Direct Known Subclasses:
ActivityInstanceWalker, CompensationEventSubscriptionWalker, ExecutionTopDownWalker, MigratingProcessElementInstanceTopDownWalker, SingleReferenceWalker

public abstract class ReferenceWalker<T> extends Object

A walker for walking through an object reference structure (e.g. an execution tree). Any visited element can have any number of following elements. The elements are visited with a breadth-first approach: The walker maintains a list of next elements to which it adds a new elements at the end whenever it has visited an element. The walker stops when it encounters an element that fulfills the given ReferenceWalker.WalkCondition.

Subclasses define the type of objects and provide the walking behavior.

Author:
Thorben Lindhauer