Enum Class SessionStatus

java.lang.Object
java.lang.Enum<SessionStatus>
com.scivicslab.turingworkflow.plugins.logdb.SessionStatus
All Implemented Interfaces:
Serializable, Comparable<SessionStatus>, Constable

public enum SessionStatus extends Enum<SessionStatus>
Represents the lifecycle status of a workflow execution session.

A session transitions from RUNNING to one of the terminal states: COMPLETED, FAILED, or CANCELLED.

Since:
1.0
Author:
devteam@scivicslab.com
  • Enum Constant Details

    • RUNNING

      public static final SessionStatus RUNNING
      The session is currently executing.
    • COMPLETED

      public static final SessionStatus COMPLETED
      The session completed successfully.
    • FAILED

      public static final SessionStatus FAILED
      The session terminated due to one or more failures.
    • CANCELLED

      public static final SessionStatus CANCELLED
      The session was cancelled before completion.
  • Method Details

    • values

      public static SessionStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SessionStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null