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,TransactedAcquireLockWorkflowCondition
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.IWorkflowGet the workflow this object belongs to.booleanisActive()Check if this workflow condition is active or inactive.voidsetActive(boolean p_bActive) Set this workflow condition active or inactive.voidsetAfferentTransition(WorkflowTransition p_wfTransition) Set the afferent transition of this workflow condition.voidsetEfferentTransitions(WorkflowTransition[] p_efferents) Set the efferent transition of this workflow condition.voidSet the name of the workflow object.voidsetWorkflow(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, waitMethods inherited from interface de.uplanet.lucy.server.workflow.IWorkflowCondition
process
-
Constructor Details
-
AbstractWorkflowCondition
-
-
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.
-
getAfferentTransition
Description copied from interface:IWorkflowConditionGet the afferent transition of this workflow condition.- Specified by:
getAfferentTransitionin interfaceIWorkflowCondition- Returns:
- The afferent transition (this is normally not
null).
-
setAfferentTransition
Description copied from interface:IWorkflowConditionSet the afferent transition of this workflow condition.- Specified by:
setAfferentTransitionin interfaceIWorkflowCondition- Parameters:
p_wfTransition- The afferent transition to be set.
-
getEfferentTransitions
Description copied from interface:IWorkflowConditionGet the efferent transition of this workflow condition.- Specified by:
getEfferentTransitionsin interfaceIWorkflowCondition- Returns:
- The efferent transitions, or an empty array.
-
setEfferentTransitions
public void setEfferentTransitions(WorkflowTransition[] p_efferents) throws InvalidStructureWorkflowException Description copied from interface:IWorkflowConditionSet the efferent transition of this workflow condition.- Specified by:
setEfferentTransitionsin interfaceIWorkflowCondition- Parameters:
p_efferents- The efferent transitions to be set.- Throws:
InvalidStructureWorkflowException
-
isActive
public boolean isActive()Description copied from interface:IWorkflowConditionCheck if this workflow condition is active or inactive.See
IWorkflowCondition.process(IWorkflowEvent, IWorkflowProcessingContext, IProcessingContext)for the general contract of the activation state.- Specified by:
isActivein interfaceIActivatableWorkflowObject- Specified by:
isActivein interfaceIWorkflowCondition- Returns:
- The activation state of this workflow condition.
-
setActive
public void setActive(boolean p_bActive) Description copied from interface:IWorkflowConditionSet this workflow condition active or inactive.See
IWorkflowCondition.process(IWorkflowEvent, IWorkflowProcessingContext, IProcessingContext)for the general contract of the activation state.- Specified by:
setActivein interfaceIActivatableWorkflowObject- Specified by:
setActivein interfaceIWorkflowCondition- 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.
-
toString
-