public final class ExecutionTrace extends Object implements Serializable
ExecutionTraceElement
describe individual steps performed during the
ProcessAgent invocation.
For example, when ProcessAgent is invoked (by
ProcessService.startInterpretModelInstance(long, boolean)
) and
interpretation of the model proceeds to some custom task, the custom task
implementation can create new ExecutionTraceElement
through which
information relevant for caller may be passed.
This approach is used to implement nextTodo mechanism. BaseTodoTask creates
new ExecutionTraceElement
(actually a subclass
TodoExecutionTraceElement) with information about newly created todos.Constructor and Description |
---|
ExecutionTrace() |
Modifier and Type | Method and Description |
---|---|
void |
addExecutionTraceElement(ExecutionTraceElement ete) |
boolean |
equals(Object obj) |
<T extends ExecutionTraceElement> |
getAllExecutionTraceElement(Class<T> clazz) |
List<ExecutionTraceElement> |
getExecutionTraceElements() |
<T extends ExecutionTraceElement> |
getFirstExecutionTraceElement(Class<T> clazz) |
<T extends ExecutionTraceElement> |
getLastExecutionTraceElement(Class<T> clazz) |
int |
hashCode() |
void |
mergeIn(ExecutionTrace et) |
String |
toString() |
public void addExecutionTraceElement(ExecutionTraceElement ete)
ete
- Adds new ExecutionTraceElement
.public List<ExecutionTraceElement> getExecutionTraceElements()
ExecutionTraceElement
which describes
individual execution steps.public <T extends ExecutionTraceElement> T getFirstExecutionTraceElement(Class<T> clazz)
T
- clazz
- public <T extends ExecutionTraceElement> T getLastExecutionTraceElement(Class<T> clazz)
T
- clazz
- public <T extends ExecutionTraceElement> List<T> getAllExecutionTraceElement(Class<T> clazz)
T
- clazz
- public void mergeIn(ExecutionTrace et)
et
- ExecutionTrace to be merged in. Merge means, that all
ExecutionTraceElement
from the incomming
ExecutionTrace are added to this ExecutionTrace.Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.