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 classIterableProcessEventListener.CachedProcessCompletedEventstatic classIterableProcessEventListener.CachedProcessNodeLeftEventstatic classIterableProcessEventListener.CachedProcessNodeTriggeredEventstatic classIterableProcessEventListener.CachedProcessStartedEventstatic classIterableProcessEventListener.CachedProcessVariableChangedEventstatic classIterableProcessEventListener.TrackedEvent
-
Field Summary
Fields Modifier and Type Field Description static StringAFTER_COMPLETEDstatic StringAFTER_LEFTstatic StringAFTER_STARTEDstatic StringAFTER_TRIGGEREDstatic StringAFTER_VARIABLEstatic StringBEFORE_COMPLETEDstatic StringBEFORE_LEFTstatic StringBEFORE_STARTEDstatic StringBEFORE_TRIGGEREDstatic StringBEFORE_VARIABLE
-
Constructor Summary
Constructors Constructor Description IterableProcessEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterNodeLeft(org.kie.api.event.process.ProcessNodeLeftEvent event)voidafterNodeTriggered(org.kie.api.event.process.ProcessNodeTriggeredEvent event)voidafterProcessCompleted(org.kie.api.event.process.ProcessCompletedEvent event)voidafterProcessStarted(org.kie.api.event.process.ProcessStartedEvent event)voidafterVariableChanged(org.kie.api.event.process.ProcessVariableChangedEvent event)voidbeforeNodeLeft(org.kie.api.event.process.ProcessNodeLeftEvent event)voidbeforeNodeTriggered(org.kie.api.event.process.ProcessNodeTriggeredEvent event)voidbeforeProcessCompleted(org.kie.api.event.process.ProcessCompletedEvent event)voidbeforeProcessStarted(org.kie.api.event.process.ProcessStartedEvent event)voidbeforeVariableChanged(org.kie.api.event.process.ProcessVariableChangedEvent event)voidclear()IterableProcessEventListener.TrackedEventcurrent()booleanhasNext()IterableProcessEventListener.TrackedEventnext()voidprintCurrentState()voidprintCurrentState(org.slf4j.Logger logger)voidprintRemainingEvents()voidprintRemainingEvents(org.slf4j.Logger logger)voidremove()voidreset()-
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:
beforeProcessStartedin interfaceorg.kie.api.event.process.ProcessEventListener
-
afterProcessStarted
public void afterProcessStarted(org.kie.api.event.process.ProcessStartedEvent event)
- Specified by:
afterProcessStartedin interfaceorg.kie.api.event.process.ProcessEventListener
-
beforeProcessCompleted
public void beforeProcessCompleted(org.kie.api.event.process.ProcessCompletedEvent event)
- Specified by:
beforeProcessCompletedin interfaceorg.kie.api.event.process.ProcessEventListener
-
afterProcessCompleted
public void afterProcessCompleted(org.kie.api.event.process.ProcessCompletedEvent event)
- Specified by:
afterProcessCompletedin interfaceorg.kie.api.event.process.ProcessEventListener
-
beforeNodeTriggered
public void beforeNodeTriggered(org.kie.api.event.process.ProcessNodeTriggeredEvent event)
- Specified by:
beforeNodeTriggeredin interfaceorg.kie.api.event.process.ProcessEventListener
-
afterNodeTriggered
public void afterNodeTriggered(org.kie.api.event.process.ProcessNodeTriggeredEvent event)
- Specified by:
afterNodeTriggeredin interfaceorg.kie.api.event.process.ProcessEventListener
-
beforeNodeLeft
public void beforeNodeLeft(org.kie.api.event.process.ProcessNodeLeftEvent event)
- Specified by:
beforeNodeLeftin interfaceorg.kie.api.event.process.ProcessEventListener
-
afterNodeLeft
public void afterNodeLeft(org.kie.api.event.process.ProcessNodeLeftEvent event)
- Specified by:
afterNodeLeftin interfaceorg.kie.api.event.process.ProcessEventListener
-
beforeVariableChanged
public void beforeVariableChanged(org.kie.api.event.process.ProcessVariableChangedEvent event)
- Specified by:
beforeVariableChangedin interfaceorg.kie.api.event.process.ProcessEventListener
-
afterVariableChanged
public void afterVariableChanged(org.kie.api.event.process.ProcessVariableChangedEvent event)
- Specified by:
afterVariableChangedin interfaceorg.kie.api.event.process.ProcessEventListener
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<IterableProcessEventListener.TrackedEvent>
-
next
public IterableProcessEventListener.TrackedEvent next()
- Specified by:
nextin interfaceIterator<IterableProcessEventListener.TrackedEvent>
-
current
public IterableProcessEventListener.TrackedEvent current()
-
remove
public void remove()
- Specified by:
removein 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)
-
-