Package org.jbpm.test.listener
Class IterableProcessEventListener
- java.lang.Object
-
- org.jbpm.test.listener.IterableProcessEventListener
-
- All Implemented Interfaces:
EventListener
,Iterator<IterableProcessEventListener.TrackedEvent>
,org.kie.api.event.process.ProcessEventListener
public class IterableProcessEventListener extends Object implements org.kie.api.event.process.ProcessEventListener, Iterator<IterableProcessEventListener.TrackedEvent>
Simple listener that saves all the events into list and then allows to iterate over them
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IterableProcessEventListener.CachedProcessCompletedEvent
static class
IterableProcessEventListener.CachedProcessNodeLeftEvent
static class
IterableProcessEventListener.CachedProcessNodeTriggeredEvent
static class
IterableProcessEventListener.CachedProcessStartedEvent
static class
IterableProcessEventListener.CachedProcessVariableChangedEvent
static class
IterableProcessEventListener.TrackedEvent
-
Field Summary
Fields Modifier and Type Field Description static String
AFTER_COMPLETED
static String
AFTER_LEFT
static String
AFTER_STARTED
static String
AFTER_TRIGGERED
static String
AFTER_VARIABLE
static String
BEFORE_COMPLETED
static String
BEFORE_LEFT
static String
BEFORE_STARTED
static String
BEFORE_TRIGGERED
static String
BEFORE_VARIABLE
-
Constructor Summary
Constructors Constructor Description IterableProcessEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterNodeLeft(org.kie.api.event.process.ProcessNodeLeftEvent event)
void
afterNodeTriggered(org.kie.api.event.process.ProcessNodeTriggeredEvent event)
void
afterProcessCompleted(org.kie.api.event.process.ProcessCompletedEvent event)
void
afterProcessStarted(org.kie.api.event.process.ProcessStartedEvent event)
void
afterVariableChanged(org.kie.api.event.process.ProcessVariableChangedEvent event)
void
beforeNodeLeft(org.kie.api.event.process.ProcessNodeLeftEvent event)
void
beforeNodeTriggered(org.kie.api.event.process.ProcessNodeTriggeredEvent event)
void
beforeProcessCompleted(org.kie.api.event.process.ProcessCompletedEvent event)
void
beforeProcessStarted(org.kie.api.event.process.ProcessStartedEvent event)
void
beforeVariableChanged(org.kie.api.event.process.ProcessVariableChangedEvent event)
void
clear()
IterableProcessEventListener.TrackedEvent
current()
boolean
hasNext()
IterableProcessEventListener.TrackedEvent
next()
void
printCurrentState()
void
printCurrentState(org.slf4j.Logger logger)
void
printRemainingEvents()
void
printRemainingEvents(org.slf4j.Logger logger)
void
remove()
void
reset()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
BEFORE_STARTED
public static final String BEFORE_STARTED
- See Also:
- Constant Field Values
-
AFTER_STARTED
public static final String AFTER_STARTED
- See Also:
- Constant Field Values
-
BEFORE_COMPLETED
public static final String BEFORE_COMPLETED
- See Also:
- Constant Field Values
-
AFTER_COMPLETED
public static final String AFTER_COMPLETED
- See Also:
- Constant Field Values
-
BEFORE_TRIGGERED
public static final String BEFORE_TRIGGERED
- See Also:
- Constant Field Values
-
AFTER_TRIGGERED
public static final String AFTER_TRIGGERED
- See Also:
- Constant Field Values
-
BEFORE_LEFT
public static final String BEFORE_LEFT
- See Also:
- Constant Field Values
-
AFTER_LEFT
public static final String AFTER_LEFT
- See Also:
- Constant Field Values
-
BEFORE_VARIABLE
public static final String BEFORE_VARIABLE
- See Also:
- Constant Field Values
-
AFTER_VARIABLE
public static final String AFTER_VARIABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
beforeProcessStarted
public void beforeProcessStarted(org.kie.api.event.process.ProcessStartedEvent event)
- Specified by:
beforeProcessStarted
in interfaceorg.kie.api.event.process.ProcessEventListener
-
afterProcessStarted
public void afterProcessStarted(org.kie.api.event.process.ProcessStartedEvent event)
- Specified by:
afterProcessStarted
in interfaceorg.kie.api.event.process.ProcessEventListener
-
beforeProcessCompleted
public void beforeProcessCompleted(org.kie.api.event.process.ProcessCompletedEvent event)
- Specified by:
beforeProcessCompleted
in interfaceorg.kie.api.event.process.ProcessEventListener
-
afterProcessCompleted
public void afterProcessCompleted(org.kie.api.event.process.ProcessCompletedEvent event)
- Specified by:
afterProcessCompleted
in interfaceorg.kie.api.event.process.ProcessEventListener
-
beforeNodeTriggered
public void beforeNodeTriggered(org.kie.api.event.process.ProcessNodeTriggeredEvent event)
- Specified by:
beforeNodeTriggered
in interfaceorg.kie.api.event.process.ProcessEventListener
-
afterNodeTriggered
public void afterNodeTriggered(org.kie.api.event.process.ProcessNodeTriggeredEvent event)
- Specified by:
afterNodeTriggered
in interfaceorg.kie.api.event.process.ProcessEventListener
-
beforeNodeLeft
public void beforeNodeLeft(org.kie.api.event.process.ProcessNodeLeftEvent event)
- Specified by:
beforeNodeLeft
in interfaceorg.kie.api.event.process.ProcessEventListener
-
afterNodeLeft
public void afterNodeLeft(org.kie.api.event.process.ProcessNodeLeftEvent event)
- Specified by:
afterNodeLeft
in interfaceorg.kie.api.event.process.ProcessEventListener
-
beforeVariableChanged
public void beforeVariableChanged(org.kie.api.event.process.ProcessVariableChangedEvent event)
- Specified by:
beforeVariableChanged
in interfaceorg.kie.api.event.process.ProcessEventListener
-
afterVariableChanged
public void afterVariableChanged(org.kie.api.event.process.ProcessVariableChangedEvent event)
- Specified by:
afterVariableChanged
in interfaceorg.kie.api.event.process.ProcessEventListener
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<IterableProcessEventListener.TrackedEvent>
-
next
public IterableProcessEventListener.TrackedEvent next()
- Specified by:
next
in interfaceIterator<IterableProcessEventListener.TrackedEvent>
-
current
public IterableProcessEventListener.TrackedEvent current()
-
remove
public void remove()
- Specified by:
remove
in interfaceIterator<IterableProcessEventListener.TrackedEvent>
-
reset
public void reset()
-
clear
public void clear()
-
printCurrentState
public void printCurrentState()
-
printCurrentState
public void printCurrentState(org.slf4j.Logger logger)
-
printRemainingEvents
public void printRemainingEvents()
-
printRemainingEvents
public void printRemainingEvents(org.slf4j.Logger logger)
-
-