org.camunda.bpm.engine.impl.tree
Class LeafActivityInstanceExecutionCollector

java.lang.Object
  extended by org.camunda.bpm.engine.impl.tree.LeafActivityInstanceExecutionCollector
All Implemented Interfaces:
TreeVisitor<PvmExecutionImpl>

public class LeafActivityInstanceExecutionCollector
extends Object
implements TreeVisitor<PvmExecutionImpl>

Collects executions that execute an activity instance that is a leaf in the activity instance tree. Typically, such executions are also leaves in the execution tree. The exception to this are compensation-throwing executions: Their activities are leaves but they have child executions responsible for compensation handling.

Author:
Thorben Lindhauer

Field Summary
protected  List<PvmExecutionImpl> leaves
           
 
Constructor Summary
LeafActivityInstanceExecutionCollector()
           
 
Method Summary
 List<PvmExecutionImpl> getLeaves()
           
 void visit(PvmExecutionImpl obj)
          Invoked for a node in tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

leaves

protected List<PvmExecutionImpl> leaves
Constructor Detail

LeafActivityInstanceExecutionCollector

public LeafActivityInstanceExecutionCollector()
Method Detail

visit

public void visit(PvmExecutionImpl obj)
Description copied from interface: TreeVisitor
Invoked for a node in tree.

Specified by:
visit in interface TreeVisitor<PvmExecutionImpl>
Parameters:
obj - a reference to the node

getLeaves

public List<PvmExecutionImpl> getLeaves()


Copyright © 2015 camunda services GmbH. All rights reserved.