Class WorkflowTransition

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

public class WorkflowTransition extends Object
Return value of WorkflowService.advance(Investigation, WorkflowState, String, Long). Carries enough for the caller (and the REST layer) to round-trip a 200 response without re-fetching the dataset.

idempotent is true when the caller advanced to the state the dataset was already in; in that case previousState == currentState and auditEventId is null (no event emitted).

  • Constructor Details

    • WorkflowTransition

      public WorkflowTransition(Long datasetId, WorkflowState previousState, WorkflowState currentState, @Nullable Date enteredCurrentStateAt, @Nullable Long auditEventId)
  • Method Details

    • getDatasetId

      public Long getDatasetId()
    • getPreviousState

      public WorkflowState getPreviousState()
    • getCurrentState

      public WorkflowState getCurrentState()
    • getEnteredCurrentStateAt

      @Nullable public Date getEnteredCurrentStateAt()
    • getAuditEventId

      @Nullable public Long getAuditEventId()
    • isIdempotent

      public boolean isIdempotent()