Enum Class ProcessState

java.lang.Object
java.lang.Enum<ProcessState>
com.appiancorp.suiteapi.epex.process.ProcessState
All Implemented Interfaces:
Serializable, Comparable<ProcessState>, Constable

public enum ProcessState extends Enum<ProcessState>
ProcessState represents the state of a process. Not all process states are visible in all environments.
  • Enum Constant Details

    • ACTIVE

      public static final ProcessState ACTIVE
      Active process. The process has started and is either currently running or it has started running and is eligible to continue to run.
    • ARCHIVED_AND_DELETED

      public static final ProcessState ARCHIVED_AND_DELETED
      The process has been archived and deleted. You may not be able to distinguish anything further about this process.
    • CANCELLED

      public static final ProcessState CANCELLED
      The process has been cancelled. It cannot be restarted.
    • COMPLETED

      public static final ProcessState COMPLETED
      Process has completed, but has not yet been deleted.
    • DELETED

      public static final ProcessState DELETED
      The process has been deleted. You may not be able to distinguish anything further about this process.
    • ERROR_RETRIEVING_STATE

      public static final ProcessState ERROR_RETRIEVING_STATE
      This status should never be returned, but would be if the pp!status could not be retrieved from storage, such as due to a connection error. A log message should be generated if this is returned.
    • INVALID_STATUS_CODE

      public static final ProcessState INVALID_STATUS_CODE
      This status should never be returned, but would be if the pp!status were set to an invalid value.
    • PAUSED

      public static final ProcessState PAUSED
      The process has been paused. It will not make further progress until resumed.
    • PAUSED_BY_EXCEPTION

      public static final ProcessState PAUSED_BY_EXCEPTION
      The process is paused by an exception. It could be resumed if the cause of the exception is resolved.
    • REQUESTED

      public static final ProcessState REQUESTED
      The process instance has been REQUESTED, but the process has not yet been picked up by the queue and started. This state allows one to distinguish a requested, but not yet started, process vs. one that has completed and deleted its data. (EPEx only)
    • TERMINATING

      public static final ProcessState TERMINATING
      The process is terminating, but the end node has not yet completed.
    • UNFINISHED

      public static final ProcessState UNFINISHED
      The process is unfinished, in that the parent process ended before this process ended.
  • Method Details

    • values

      public static ProcessState[] 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 ProcessState 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
    • getCode

      public int getCode()
      Returns:
      code number for this state
    • getProcessState

      public static ProcessState getProcessState(int code)
      Parameters:
      code -
      Returns:
      the code number converted into a ProcessState