Class AbstractWorkflowCondition
java.lang.Object
de.uplanet.lucy.server.workflow.condition.AbstractWorkflowCondition
- All Implemented Interfaces:
IActivatableWorkflowObject
,INamedWorkflowObject
,INeedWorkflow
,IWorkflowCondition
,IWorkflowObject
,Serializable
- Direct Known Subclasses:
ApplicationApiRequestWorkflowCondition
,CheckPermissionWorkflowCondition
,GroovyScriptWorkflowCondition
,ListingWorkflowCondition
,RandomWorkflowCondition
,StandardWorkflowCondition
public abstract class AbstractWorkflowCondition
extends Object
implements IWorkflowCondition, 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 afferent transition of this workflow condition.Get the efferent transition of this workflow condition.getGuid()
Get the GUID of this workflow object.getName()
Get the name of the workflow object.de.uplanet.lucy.server.workflow.IWorkflow
Get the workflow this object belongs to.boolean
isActive()
Check if this workflow condition is active or inactive.void
setActive
(boolean p_bActive) Set this workflow condition active or inactive.void
setAfferentTransition
(WorkflowTransition p_wfTransition) Set the afferent transition of this workflow condition.void
setEfferentTransitions
(WorkflowTransition[] p_efferents) Set the efferent transition of this workflow condition.void
Set the name of the workflow object.void
setWorkflow
(de.uplanet.lucy.server.workflow.IWorkflow p_wfWorkflow) Set the workflow this object belongs to.toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.uplanet.lucy.server.workflow.IWorkflowCondition
process
-
Constructor Details
-
AbstractWorkflowCondition
-
-
Method Details
-
getGuid
Description copied from interface:IWorkflowObject
Get the GUID of this workflow object.Note: implementors must ensure that this is never
null
.- Specified by:
getGuid
in interfaceIWorkflowObject
- Returns:
- The GUID of this workflow object
-
getWorkflow
public de.uplanet.lucy.server.workflow.IWorkflow getWorkflow()Description copied from interface:INeedWorkflow
Get the workflow this object belongs to.- Specified by:
getWorkflow
in interfaceINeedWorkflow
- Returns:
- The workflow this object belongs to.
-
setWorkflow
public void setWorkflow(de.uplanet.lucy.server.workflow.IWorkflow p_wfWorkflow) Description copied from interface:INeedWorkflow
Set the workflow this object belongs to.- Specified by:
setWorkflow
in interfaceINeedWorkflow
- Parameters:
p_wfWorkflow
- The workflow this object belongs to.
-
getAfferentTransition
Description copied from interface:IWorkflowCondition
Get the afferent transition of this workflow condition.- Specified by:
getAfferentTransition
in interfaceIWorkflowCondition
- Returns:
- The afferent transition (this is normally not
null
).
-
setAfferentTransition
Description copied from interface:IWorkflowCondition
Set the afferent transition of this workflow condition.- Specified by:
setAfferentTransition
in interfaceIWorkflowCondition
- Parameters:
p_wfTransition
- The afferent transition to be set.
-
getEfferentTransitions
Description copied from interface:IWorkflowCondition
Get the efferent transition of this workflow condition.- Specified by:
getEfferentTransitions
in interfaceIWorkflowCondition
- Returns:
- The efferent transitions, or an empty array.
-
setEfferentTransitions
public void setEfferentTransitions(WorkflowTransition[] p_efferents) throws InvalidStructureWorkflowException Description copied from interface:IWorkflowCondition
Set the efferent transition of this workflow condition.- Specified by:
setEfferentTransitions
in interfaceIWorkflowCondition
- Parameters:
p_efferents
- The efferent transitions to be set.- Throws:
InvalidStructureWorkflowException
-
isActive
public boolean isActive()Description copied from interface:IWorkflowCondition
Check if this workflow condition is active or inactive.See
IWorkflowCondition.process(IWorkflowEvent, IWorkflowProcessingContext, IProcessingContext)
for the general contract of the activation state.- Specified by:
isActive
in interfaceIActivatableWorkflowObject
- Specified by:
isActive
in interfaceIWorkflowCondition
- Returns:
- The activation state of this workflow condition.
-
setActive
public void setActive(boolean p_bActive) Description copied from interface:IWorkflowCondition
Set this workflow condition active or inactive.See
IWorkflowCondition.process(IWorkflowEvent, IWorkflowProcessingContext, IProcessingContext)
for the general contract of the activation state.- Specified by:
setActive
in interfaceIActivatableWorkflowObject
- Specified by:
setActive
in interfaceIWorkflowCondition
- Parameters:
p_bActive
- The new activation state to be set.
-
getName
Description copied from interface:INamedWorkflowObject
Get the name of the workflow object.- Specified by:
getName
in interfaceINamedWorkflowObject
- Returns:
- The name of the workflow object.
-
setName
Description copied from interface:INamedWorkflowObject
Set the name of the workflow object.- Specified by:
setName
in interfaceINamedWorkflowObject
- Parameters:
p_strName
- The name of the workflow object.
-
toString
-