Class ProcessStepDefinition

java.lang.Object
com.aquima.interactions.process.impl.nodes.NodeDefinition
com.aquima.interactions.process.impl.nodes.ProcessStepDefinition
All Implemented Interfaces:
IProcessNodeDefinition, IProcessStepDefinition
Direct Known Subclasses:
CallNodeDefinition, ConditionNodeDefinition, EventNodeDefinition, TaskNodeDefinition, TimerNodeDefinition

public abstract class ProcessStepDefinition extends NodeDefinition implements IProcessStepDefinition
Abstract base class for task and process nodes.
Since:
7.1
Author:
O. Kerpershoek
  • Constructor Details

  • Method Details

    • parseCondition

      protected final ICondition parseCondition(String strCondition, IExpressionParser parser)
    • getNextNode

      public IProcessNodeDefinition getNextNode()
      Description copied from interface: IProcessNodeDefinition
      This method returns the next node that should be processed after this node has been completed. If there is no next node, because the process has completed, this method will return null.
      Specified by:
      getNextNode in interface IProcessNodeDefinition
      Overrides:
      getNextNode in class NodeDefinition
      Returns:
      the next node that should be processed after this node has been completed.
    • getNextNode

      public IProcessNodeDefinition getNextNode(String exitState)
      Description copied from interface: IProcessNodeDefinition
      This method returns the next node for the specified exit state. As each defined exit state should have a next node, this method will never return null, unless the default exit state (null) is provided as argument.
      Specified by:
      getNextNode in interface IProcessNodeDefinition
      Overrides:
      getNextNode in class NodeDefinition
      Parameters:
      exitState - The exit state for which the next node is requested.
      Returns:
      The next node in the process.
    • isAdhoc

      public final boolean isAdhoc()
      Description copied from interface: IProcessStepDefinition
      This method returns a boolean indicating if the node is an adhoc node in a process definition. Adhoc nodes are not part of the normal flow, and thus don't have any exit states. The adhoc nodes become active depending on their trigger.
      Specified by:
      isAdhoc in interface IProcessStepDefinition
      Returns:
      boolean indicating if the node is an adhoc node in a process definition.
    • isRepeatable

      public boolean isRepeatable()
      Description copied from interface: IProcessStepDefinition
      This method returns a boolean indicating if the task may be repeated once it has been completed. Note: Only ad hoc tasks can be repeatable, ad hoc condition nodes can not be repeatable.
      Specified by:
      isRepeatable in interface IProcessStepDefinition
      Returns:
      a boolean indicating if the task may be repeated once it has been completed.
    • getCondition

      public ICondition getCondition()
      Description copied from interface: IProcessStepDefinition
      This method returns the conditions that should be met in order for the task to be scheduled. The condition is only relevant for an adhoc node in a process. Note: Timer and event nodes can not have a condition
      Specified by:
      getCondition in interface IProcessStepDefinition
      Returns:
      The condition that should be met in order for the task to be scheduled.