Class AbstractWorkflowCondition
- java.lang.Object
-
- de.uplanet.lucy.server.workflow.condition.AbstractWorkflowCondition
-
- All Implemented Interfaces:
IActivatableWorkflowObject
,INamedWorkflowObject
,INeedWorkflow
,IWorkflowCondition
,IWorkflowObject
,Serializable
- Direct Known Subclasses:
CheckPermissionWorkflowCondition
,GroovyScriptWorkflowCondition
,ListingWorkflowCondition
,RandomWorkflowCondition
,StandardWorkflowCondition
public abstract class AbstractWorkflowCondition extends Object implements IWorkflowCondition, INamedWorkflowObject, INeedWorkflow
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description AbstractWorkflowCondition(String p_strGuid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowTransition
getAfferentTransition()
Get the afferent transition of this workflow condition.WorkflowTransition[]
getEfferentTransitions()
Get the efferent transition of this workflow condition.String
getGuid()
Get the GUID of this workflow object.String
getName()
Get the name of the workflow object.de.uplanet.lucy.server.workflow.IWorkflow
getWorkflow()
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
setName(String p_strName)
Set the name of the workflow object.void
setWorkflow(de.uplanet.lucy.server.workflow.IWorkflow p_wfWorkflow)
Set the workflow this object belongs to.String
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 Detail
-
AbstractWorkflowCondition
public AbstractWorkflowCondition(String p_strGuid)
-
-
Method Detail
-
getGuid
public String 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
public WorkflowTransition 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
public void setAfferentTransition(WorkflowTransition p_wfTransition)
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
public WorkflowTransition[] 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
public String 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
public void setName(String p_strName)
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.
-
-