I’m working on a project that requires dynamic announcing of Events, which I am handling in a pre-process plug-in point. I am a bit a confused about the EventContext methods for accessing Events in the queue: getNextEvent(), getPreviousEvent(), and getCurrentEvent(). What is the significance of each of these methods when called from the preProcess() and postProcess() plug-in points?
Does getNextEvent() return the same Event as getCurrentEvent() when called from preProcess()? Likewise, does getPreviousEvent() return the same Event as getCurrentEvent() when called from postProcess()?
Also, is there a way to target a specific Event in the queue -- not just current, previous and next -- from these plug-in points? For example, how could I reference the very first Event or the last? Or even the second in a chain?
Thanks,
Zack
I’m working on a project that requires dynamic announcing of Events, which I am handling in a pre-process plug-in point. I am a bit a confused about the EventContext methods for accessing Events in the queue: getNextEvent(), getPreviousEvent(), and getCurrentEvent(). What is the significance of each of these methods when called from the preProcess() and postProcess() plug-in points?
Does getNextEvent() return the same Event as getCurrentEvent() when called from preProcess()?
Likewise, does getPreviousEvent() return the same Event as getCurrentEvent() when called from postProcess()?
Also, is there a way to target a specific Event in the queue -- not just current, previous and next -- from these plug-in points? For example, how could I reference the very first Event or the last? Or even the second in a chain?