Class IMAPMessageWorkflowEventHandler
java.lang.Object
de.uplanet.lucy.server.workflow.eventhandler.AbstractWorkflowEventHandler
de.uplanet.lucy.server.workflow.eventhandler.AbstractEventSourceWorkflowEventHandler
de.uplanet.lucy.server.mailservice.workflow.eventhandler.IMAPMessageWorkflowEventHandler
- All Implemented Interfaces:
IActivatableWorkflowObject
,INamedWorkflowObject
,INeedWorkflow
,IWorkflowEventHandler
,IWorkflowObject
,Serializable
This event handler handles
IIMAPWorkflowEvent
s.- Since:
- Intrexx 7.0.
- See Also:
-
Field Summary
Fields inherited from interface de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isHandlerFor
(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx) Check if this event handler may handle the given event.process
(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx, de.uplanet.lucy.server.IProcessingContext p_ctx) Process a workflow event in the given context.void
setHandleMessageEvent
(boolean p_bHandleMessageEvent) Methods inherited from class de.uplanet.lucy.server.workflow.eventhandler.AbstractEventSourceWorkflowEventHandler
getEventSourceGuids, isHandleAfterStopEvent, isHandleBeforeStartEvent, setEventSourceGuids, setHandleAfterStopEvent, setHandleBeforeStartEvent
Methods inherited from class de.uplanet.lucy.server.workflow.eventhandler.AbstractWorkflowEventHandler
getEfferentTransition, getGuid, getName, getWorkflow, isActive, isHandleExternalEvents, setActive, setEfferentTransition, setHandleExternalEvents, setName, setWorkflow
-
Constructor Details
-
IMAPMessageWorkflowEventHandler
-
-
Method Details
-
isHandleMessageEvent
public boolean isHandleMessageEvent() -
setHandleMessageEvent
public void setHandleMessageEvent(boolean p_bHandleMessageEvent) -
isHandlerFor
public boolean isHandlerFor(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx) Description copied from interface:IWorkflowEventHandler
Check if this event handler may handle the given event.This method should return
false
if this event handler's state is inactive.Note: despite this method returns
true
the event handler is not required to return its efferent transition whenprocess
is being called.- Parameters:
p_evt
- The event.p_wfCtx
- The workflow processing context.- Returns:
true
if this event handler may process this event, orfalse
otherwise.
-
process
public WorkflowTransition process(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx, de.uplanet.lucy.server.IProcessingContext p_ctx) throws Exception Description copied from interface:IWorkflowEventHandler
Process a workflow event in the given context.This method is called by the workflow engine if a call to
isHandlerFor
returnedtrue
. However this method is not required to return a non-null efferent transition in such cases.A workflow event handler must return
null
if it is notactive
.- Parameters:
p_evt
- The event to be processed.p_wfCtx
- The workflow processing context.p_ctx
- The processing context.- Returns:
- The efferent transition, or
null
. - Throws:
Exception
- If an error occurred.
-