Class TimerJobCompletionWorkflowEventHandler
java.lang.Object
de.uplanet.lucy.server.workflow.eventhandler.AbstractWorkflowEventHandler
de.uplanet.lucy.server.workflow.eventhandler.TimerJobCompletionWorkflowEventHandler
- All Implemented Interfaces:
IActivatableWorkflowObject,INamedWorkflowObject,INeedWorkflow,IWorkflowEventHandler,IWorkflowObject,Serializable
- See Also:
-
Field Summary
Fields inherited from interface de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanisHandlerFor(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.voidsetErrorsOnly(boolean p_bErrorsOnly) voidsetTimerGuid(String p_strTimerGuid) Methods inherited from class de.uplanet.lucy.server.workflow.eventhandler.AbstractWorkflowEventHandler
getEfferentTransition, getGuid, getName, getWorkflow, isActive, isHandleExternalEvents, setActive, setEfferentTransition, setHandleExternalEvents, setName, setWorkflow
-
Constructor Details
-
TimerJobCompletionWorkflowEventHandler
-
-
Method Details
-
getTimerGuid
-
setTimerGuid
-
isErrorsOnly
public boolean isErrorsOnly() -
setErrorsOnly
public void setErrorsOnly(boolean p_bErrorsOnly) -
isHandlerFor
public boolean isHandlerFor(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx) Description copied from interface:IWorkflowEventHandlerCheck if this event handler may handle the given event.This method should return
falseif this event handler's state is inactive.Note: despite this method returns
truethe event handler is not required to return its efferent transition whenprocessis being called.- Parameters:
p_evt- The event.p_wfCtx- The workflow processing context.- Returns:
trueif this event handler may process this event, orfalseotherwise.
-
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:IWorkflowEventHandlerProcess a workflow event in the given context.This method is called by the workflow engine if a call to
isHandlerForreturnedtrue. However this method is not required to return a non-null efferent transition in such cases.A workflow event handler must return
nullif 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.
-