Class RandomWorkflowCondition

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

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

    • RandomWorkflowCondition

      public RandomWorkflowCondition(String p_strGuid)
  • Method Details

    • 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 interface IWorkflowCondition
      Overrides:
      setEfferentTransitions in class AbstractWorkflowCondition
      Parameters:
      p_efferents - The efferent transitions to be set.
      Throws:
      InvalidStructureWorkflowException
    • getWeightTrue

      public double getWeightTrue()
    • setWeightTrue

      public void setWeightTrue(double p_dblWeightTrue)
    • getWeightFalse

      public double getWeightFalse()
    • setWeightFalse

      public void setWeightFalse(double p_dblWeightFalse)
    • process

      public WorkflowTransition[] process(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx, de.uplanet.lucy.server.IProcessingContext p_ctx) throws Exception
      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:
      InterruptedException - If processing of this condition has been interrupted.
      Exception - If an error occurred.