Class TransactedAcquireLockWorkflowCondition

java.lang.Object
de.uplanet.lucy.server.workflow.condition.AbstractWorkflowCondition
de.uplanet.lucy.server.workflow.condition.TransactedAcquireLockWorkflowCondition
All Implemented Interfaces:
IActivatableWorkflowObject, INamedWorkflowObject, INeedWorkflow, IWorkflowCondition, IWorkflowObject, Serializable

public final class TransactedAcquireLockWorkflowCondition extends AbstractWorkflowCondition
See Also:
  • Constructor Details

    • TransactedAcquireLockWorkflowCondition

      public TransactedAcquireLockWorkflowCondition(String p_strGuid)
  • Method Details

    • getTransitionSuccess

      public WorkflowTransition getTransitionSuccess()
    • setTransitionSuccess

      public void setTransitionSuccess(WorkflowTransition p_wfTransitionSuccess)
    • getTransitionFailure

      public WorkflowTransition getTransitionFailure()
    • setTransitionFailure

      public void setTransitionFailure(WorkflowTransition p_wfTransitionFailure)
    • getLockName

      public String 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 the workflow this condition belongs to will be used.

      Returns:
      The lock name.
    • setLockName

      public void setLockName(String p_strLockName)
      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 the workflow this condition belongs to will be used.

      Parameters:
      p_strLockName - The lock name.
    • getLocker

      public String 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} the GUID of this condition will be used. If the property value is ${guidWf} the GUID of the workflow this condition belongs to will be used.

      Returns:
      The locker.
    • setLocker

      public void setLocker(String p_locker)
      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} the GUID of this condition will be used. If the property value is ${guidWf} the GUID of the workflow 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 not active.

      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