Class WorkflowQueueEntry

java.lang.Object
ubic.gemma.persistence.service.expression.experiment.WorkflowQueueEntry

public class WorkflowQueueEntry extends Object
Lightweight projection used by GET /workflow/queue. One row per dataset currently sitting in the queried state.

currentAssignee / ticketCountOpen are forward-compatible with the Ticket integration that AUDIT_AS_WORKFLOW_RECCE.md Phase B-3 will deliver; on this first cut they are populated via the TicketService open-ticket lookup (count of OPEN/IN_PROGRESS tickets targeting the dataset, and the assignee of the single such ticket if exactly one).

datasetType is a string rather than an enum so a forthcoming PreboardedExperiment subclass can populate "preboarded_experiment" without an enum-extension migration. // TODO(preboarded-integration): wire the PreboardedExperiment path through the queue query once the subclass lands.

  • Constructor Details

    • WorkflowQueueEntry

      public WorkflowQueueEntry(Long datasetId, String datasetType, @Nullable String accession, @Nullable Date enteredCurrentStateAt)
  • Method Details

    • getDatasetId

      public Long getDatasetId()
    • getDatasetType

      public String getDatasetType()
    • getAccession

      @Nullable public String getAccession()
    • getEnteredCurrentStateAt

      @Nullable public Date getEnteredCurrentStateAt()
    • getCurrentAssignee

      @Nullable public String getCurrentAssignee()
    • setCurrentAssignee

      public void setCurrentAssignee(@Nullable String currentAssignee)
    • getTicketCountOpen

      public int getTicketCountOpen()
    • setTicketCountOpen

      public void setTicketCountOpen(int ticketCountOpen)
    • peekState

      @Nullable public WorkflowState peekState()
      Helper for tests / queue assembly; never the persisted state.