Class TransactedAcquireLockWorkflowCondition
- All Implemented Interfaces:
IActivatableWorkflowObject
,INamedWorkflowObject
,INeedWorkflow
,IWorkflowCondition
,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 TypeMethodDescriptionGet the locker, i.e.The name of the lock.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.void
Set the locker, i.e.void
setLockName
(String p_strLockName) Set the name of the lock.void
setTransitionFailure
(WorkflowTransition p_wfTransitionFailure) void
setTransitionSuccess
(WorkflowTransition p_wfTransitionSuccess) Methods inherited from class de.uplanet.lucy.server.workflow.condition.AbstractWorkflowCondition
getAfferentTransition, getEfferentTransitions, getGuid, getName, getWorkflow, isActive, setActive, setAfferentTransition, setEfferentTransitions, setName, setWorkflow, toString
-
Constructor Details
-
TransactedAcquireLockWorkflowCondition
-
-
Method Details
-
getTransitionSuccess
-
setTransitionSuccess
-
getTransitionFailure
-
setTransitionFailure
-
getLockName
The name of the lock.If this property is not set then the
GUID
of this condition will be used. If the property value is${guidWf}
the GUID of theworkflow
this condition belongs to will be used.- Returns:
- The lock name.
-
setLockName
Set the name of the lock.If this property is not set then the
GUID
of this condition will be used. If the property value is${guidWf}
the GUID of theworkflow
this condition belongs to will be used.- Parameters:
p_strLockName
- The lock name.
-
getLocker
Get the locker, i.e. the name of the entity that tries to acquire the lock.If this property is not set then the GUID of the current thread context will be used. If the property value is
${guidWfObj}
theGUID
of this condition will be used. If the property value is${guidWf}
the GUID of theworkflow
this condition belongs to will be used.- Returns:
- The locker.
-
setLocker
Set the locker, i.e. the name of the entity that tries to acquire the lock.If this property is not set then the GUID of the current thread context will be used. If the property value is
${guidWfObj}
theGUID
of this condition will be used. If the property value is${guidWf}
the GUID of theworkflow
this condition belongs to will be used.- Parameters:
p_locker
- The locker.
-
process
public WorkflowTransition[] process(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx, de.uplanet.lucy.server.IProcessingContext p_ctx) throws NoTransactionWorkflowException Description copied from interface:IWorkflowCondition
Process a workflow event in the given context.The workflow engine will follow the resulting transitions in the order they were returned in the array.
Normally, a workflow condition should return
null
or an empty array if 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 transitions, or an empty array, or
null
. - Throws:
NoTransactionWorkflowException
-