Class ExitState

java.lang.Object
com.aquima.interactions.flow.ExitState
All Implemented Interfaces:
Serializable

public final class ExitState extends Object implements Serializable
This class defines the available exit node types of the flow engine.
Since:
5.0
Author:
F. van der Meer
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ExitState
    This member defines the static CANCEL type.
    static final int
    The CANCEL identifier number.
    static final ExitState
    This member defines the static EXCEPTION type.
    static final int
    The EXCEPTION identifier number.
    static final ExitState
    This member defines the static OK type.
    static final int
    The OK identifier number.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ExitState(int id, String name)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
    This method returns the unique ID of the node type.
    This method returns the unique name of the node type.
    int
     
     
    static ExitState
    valueOf(int id)
    This method can be used to lookup a ExitState of an id.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • OK_ID

      public static final int OK_ID
      The OK identifier number.
      See Also:
    • CANCEL_ID

      public static final int CANCEL_ID
      The CANCEL identifier number.
      See Also:
    • EXCEPTION_ID

      public static final int EXCEPTION_ID
      The EXCEPTION identifier number.
      See Also:
    • OK

      public static final ExitState OK
      This member defines the static OK type.
    • CANCEL

      public static final ExitState CANCEL
      This member defines the static CANCEL type.
    • EXCEPTION

      public static final ExitState EXCEPTION
      This member defines the static EXCEPTION type.
  • Constructor Details

    • ExitState

      protected ExitState(int id, String name)
  • Method Details

    • getId

      public int getId()
      This method returns the unique ID of the node type.
      Returns:
      the unique ID of the node type.
    • getName

      public String getName()
      This method returns the unique name of the node type.
      Returns:
      the unique name of the node type.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • valueOf

      public static ExitState valueOf(int id)
      This method can be used to lookup a ExitState of an id.
      Parameters:
      id - integer containing the id of the exit state that should be returned.
      Returns:
      ExitState instance for the specified id.