Enum Class ReviewStatus
- All Implemented Interfaces:
Serializable,Comparable<ReviewStatus>,Constable
Lifecycle state of an
interactiveView review document.
A document starts OPEN. A reviewer decision moves it to APPROVED,
REJECTED, ACKNOWLEDGED or CHANGES_REQUESTED; a blocking (wait:true)
view whose SLA elapses moves to EXPIRED. All states other than OPEN are terminal
decisions and resolve a paused pipeline step.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe owning build was aborted/stopped while a blocking review was still open.A reviewer acknowledged the report without an approve/reject verdict.A reviewer approved the report.A reviewer requested changes ("Regenerate"): the review's comments are handed back to the pipeline so a generator can course-correct and publish a new review.A blocking review's SLA elapsed with no decision; the pipeline received a timeout.Published for review; no decision recorded yet (comments/edits are still allowed).A reviewer rejected the report. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic ReviewStatusReturns the enum constant of this class with the specified name.static ReviewStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPEN
Published for review; no decision recorded yet (comments/edits are still allowed). -
APPROVED
A reviewer approved the report. -
REJECTED
A reviewer rejected the report. -
ACKNOWLEDGED
A reviewer acknowledged the report without an approve/reject verdict. -
CHANGES_REQUESTED
A reviewer requested changes ("Regenerate"): the review's comments are handed back to the pipeline so a generator can course-correct and publish a new review. A terminal decision like the others. -
EXPIRED
A blocking review's SLA elapsed with no decision; the pipeline received a timeout. -
ABORTED
The owning build was aborted/stopped while a blocking review was still open.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
isDecided
public boolean isDecided()- Returns:
trueonce a decision (or expiry) has been recorded; no further transitions.
-
allowsEdit
public boolean allowsEdit()- Returns:
truewhile the durable review copy may still be edited (versioned). Editing is allowed whileOPENand, deliberately, whileCHANGES_REQUESTED: that state exists precisely so a generator (e.g. the regenerate-agent) can course-correct the document in place and record the new version — every other terminal decision is final and read-only.
-