Class Outcome

  • All Implemented Interfaces:
    java.io.Serializable

    public final class Outcome
    extends java.lang.Object
    implements java.io.Serializable
    Resolution of a workflow Step, such as "approve," "deny," "hold," "task error," or other potential resolutions.
    Since:
    2.5
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Two Outcome objects are equal if their message keys are equal.
      static Outcome forName​(java.lang.String key)
      Returns a named Outcome.
      java.lang.String getMessageKey()
      The i18n key for this outcome, which is prefixed by outcome..
      int hashCode()
      The hashcode of an Outcome is identical to the hashcode of its message key, multiplied by 2 if it is a "completion" Outcome.
      boolean isCompletion()
      Returns true if this Outcome represents a completion condition for a Step.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • isCompletion

        public boolean isCompletion()
        Returns true if this Outcome represents a completion condition for a Step.
        Returns:
        the result
      • getMessageKey

        public java.lang.String getMessageKey()
        The i18n key for this outcome, which is prefixed by outcome.. If calling classes wish to return a locale-specific name for this task (such as "approve this request"), they can use this method to obtain the correct key suffix.
        Returns:
        the i18n key for this outcome
      • hashCode

        public int hashCode()
        The hashcode of an Outcome is identical to the hashcode of its message key, multiplied by 2 if it is a "completion" Outcome.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash code
      • equals

        public boolean equals​(java.lang.Object obj)
        Two Outcome objects are equal if their message keys are equal.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the object to test
        Returns:
        true if logically equal, false if not
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object