Class AbstractWorkflowEventHandler
java.lang.Object
de.uplanet.lucy.server.workflow.eventhandler.AbstractWorkflowEventHandler
- All Implemented Interfaces:
IActivatableWorkflowObject,INamedWorkflowObject,INeedWorkflow,IWorkflowEventHandler,IWorkflowObject,Serializable
- Direct Known Subclasses:
AbstractEventSourceWorkflowEventHandler,BadMailWorkflowEventHandler,DataGroupWorkflowEventHandler,FileSystemWorkflowEventHandler,GlobalTimerWorkflowEventHandler,GroovyScriptWorkflowEventHandler,IxBrokerWorkflowEventHandler,JMSWorkflowEventHandler,MQTTWorkflowEventHandler,NoopWorkflowEventHandler,PhoneServiceSendWorkflowEventHandler,SessionLoginWorkflowEventHandler,TimerActionWorkflowEventHandler,TimerJobCompletionWorkflowEventHandler,TimerJobSchedulingWorkflowEventHandler,UserWorkflowEventHandler
public abstract class AbstractWorkflowEventHandler
extends Object
implements IWorkflowEventHandler, INamedWorkflowObject, INeedWorkflow
- See Also:
-
Field Summary
Fields inherited from interface de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the efferent transition of this workflow event handler.getGuid()Get the GUID of this workflow object.getName()Get the name of the workflow object.de.uplanet.lucy.server.workflow.IWorkflowGet the workflow this object belongs to.booleanisActive()Check if this workflow event handler is active or inactive.booleanCheck if this workflow event handler is configured to handle external events, i.e.voidsetActive(boolean p_bActive) Set this workflow event handler active or inactive.voidsetEfferentTransition(WorkflowTransition p_wfTransition) Set the efferent transition of this workflow event handler.voidsetHandleExternalEvents(boolean p_bHandleExternalEvents) Set the external event handler property.voidSet the name of the workflow object.voidsetWorkflow(de.uplanet.lucy.server.workflow.IWorkflow p_wfWorkflow) Set the workflow this object belongs to.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.uplanet.lucy.server.workflow.IWorkflowEventHandler
isHandlerFor, process
-
Constructor Details
-
AbstractWorkflowEventHandler
-
-
Method Details
-
getGuid
Description copied from interface:IWorkflowObjectGet the GUID of this workflow object.Note: implementors must ensure that this is never
null.- Specified by:
getGuidin interfaceIWorkflowObject- Returns:
- The GUID of this workflow object
-
getWorkflow
public de.uplanet.lucy.server.workflow.IWorkflow getWorkflow()Description copied from interface:INeedWorkflowGet the workflow this object belongs to.- Specified by:
getWorkflowin interfaceINeedWorkflow- Returns:
- The workflow this object belongs to.
-
setWorkflow
public void setWorkflow(de.uplanet.lucy.server.workflow.IWorkflow p_wfWorkflow) Description copied from interface:INeedWorkflowSet the workflow this object belongs to.- Specified by:
setWorkflowin interfaceINeedWorkflow- Parameters:
p_wfWorkflow- The workflow this object belongs to.
-
getEfferentTransition
Description copied from interface:IWorkflowEventHandlerGet the efferent transition of this workflow event handler.- Specified by:
getEfferentTransitionin interfaceIWorkflowEventHandler- Returns:
- The efferent transition, or
null.
-
setEfferentTransition
Description copied from interface:IWorkflowEventHandlerSet the efferent transition of this workflow event handler.- Specified by:
setEfferentTransitionin interfaceIWorkflowEventHandler- Parameters:
p_wfTransition- The transition to be set.
-
isActive
public boolean isActive()Description copied from interface:IWorkflowEventHandlerCheck if this workflow event handler is active or inactive.See
IWorkflowEventHandler.process(IWorkflowEvent, IWorkflowProcessingContext, IProcessingContext)for the general contract of the activation state.- Specified by:
isActivein interfaceIActivatableWorkflowObject- Specified by:
isActivein interfaceIWorkflowEventHandler- Returns:
- The activation state of this workflow event handler.
-
setActive
public void setActive(boolean p_bActive) Description copied from interface:IWorkflowEventHandlerSet this workflow event handler active or inactive.See
IWorkflowEventHandler.process(IWorkflowEvent, IWorkflowProcessingContext, IProcessingContext)for the general contract of the activation state.- Specified by:
setActivein interfaceIActivatableWorkflowObject- Specified by:
setActivein interfaceIWorkflowEventHandler- Parameters:
p_bActive- The new activation state to be set.
-
getName
Description copied from interface:INamedWorkflowObjectGet the name of the workflow object.- Specified by:
getNamein interfaceINamedWorkflowObject- Returns:
- The name of the workflow object.
-
setName
Description copied from interface:INamedWorkflowObjectSet the name of the workflow object.- Specified by:
setNamein interfaceINamedWorkflowObject- Parameters:
p_strName- The name of the workflow object.
-
isHandleExternalEvents
public boolean isHandleExternalEvents()Description copied from interface:IWorkflowEventHandlerCheck if this workflow event handler is configured to handle external events, i.e. events that are not created by other workflows, or the workflow engine itself.The default value of this property is
true.- Specified by:
isHandleExternalEventsin interfaceIWorkflowEventHandler- Returns:
trueif this event handler handles external events, orfalseotherwise.
-
setHandleExternalEvents
public void setHandleExternalEvents(boolean p_bHandleExternalEvents) Description copied from interface:IWorkflowEventHandlerSet the external event handler property.- Specified by:
setHandleExternalEventsin interfaceIWorkflowEventHandler- Parameters:
p_bHandleExternalEvents- The new value.- See Also:
-