Enum Class ScreeningResult

java.lang.Object
java.lang.Enum<ScreeningResult>
ubic.gemma.model.common.auditAndSecurity.curation.ScreeningResult
All Implemented Interfaces:
Serializable, Comparable<ScreeningResult>, Constable

public enum ScreeningResult extends Enum<ScreeningResult>
The outcome a curator or agent recorded for one TicketTarget when screening it.

Deliberately generic and interpreted by the ticket's situation rather than fixed to one workflow (Paul, 2026-08-29). On a "which experiments should we include" screen, INCLUDE / REJECT mean admit / do not admit; on a ticket that forwards experiments to some other process, the same three read as "yes, act" / "no, skip" / "not yet decided". What the result then drives — a load, a blacklist entry, a re-run — is not encoded here and not wired up in Gemma yet: the results are exported and CLI tools take the action. This enum is only the recorded decision.

It is intentionally NOT coupled to TicketTargetStatus: a REJECT that means "does not need this process" is not the same as the target being DONE, so the two are set independently. null means nobody has screened this target yet — distinct from UNDECIDED, which is a reviewer's recorded "looked, cannot resolve".

Not called a "triage" result on purpose — that word already names the audit verdict (TriageVerdict: fine / wont_fix / might_fix / must_fix on an annotation set), a different decision on a different thing.

  • Enum Constant Details

    • INCLUDE

      public static final ScreeningResult INCLUDE
      Admit / accept / act on this target.
    • REJECT

      public static final ScreeningResult REJECT
      Do not admit / reject / this target needs no further action.
    • UNDECIDED

      public static final ScreeningResult UNDECIDED
      Reviewed but could not be resolved — a curator or agent looked and could not decide.

      🛑 This is NOT the same state as null. null means nobody has looked yet; UNDECIDED means someone looked and it is genuinely open. The curation store keeps these apart as undecided (never looked) vs unsure (reviewed, unresolved), and its own summary warns that folding them together hides exactly the rows a curator most needs to pick up. So an untouched target is null, and a target a reviewer parked is UNDECIDED; do not default one to the other.

  • Method Details

    • values

      public static ScreeningResult[] 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 ScreeningResult 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