java.lang.Object
com.genologics.ri.workflowconfiguration.Workflow
All Implemented Interfaces:
Linkable<Workflow>, Locatable, Serializable

public class Workflow extends Object implements Linkable<Workflow>, Serializable
The detailed representation of a Workflow.
See Also:
  • Field Details

    • ID_EXTRACTOR_PATTERN

      public static final Pattern ID_EXTRACTOR_PATTERN
      Regular expression to extract workflow id from a workflow URI.
      Since:
      2.22
    • protocols

      protected List<ProtocolLink> protocols
    • stages

      protected List<StageLink> stages
    • name

      protected String name
    • uri

      protected URI uri
    • status

      protected Status status
  • Constructor Details

    • Workflow

      public Workflow()
    • Workflow

      public Workflow(URI uri)
    • Workflow

      public Workflow(URI uri, String name)
  • Method Details

    • getId

      public Integer getId()
      Get the numeric identifier for this workflow from its URI.
      Returns:
      The workflow id, or null if either the URI is not set or it doesn't match the form expected for a workflow URI.
      Since:
      2.22
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getUri

      public URI getUri()
      Description copied from interface: Locatable
      Get the URI of this object.
      Specified by:
      getUri in interface Locatable
      Returns:
      The URI.
    • setUri

      public void setUri(URI uri)
      Description copied from interface: Locatable
      Set the URI of this object.
      Specified by:
      setUri in interface Locatable
      Parameters:
      uri - The new URI.
    • getStatus

      public Status getStatus()
    • setStatus

      public void setStatus(Status status)
    • getProtocols

      public List<ProtocolLink> getProtocols()
    • addProtocol

      public ProtocolLink addProtocol(Linkable<Protocol> protocol)
    • getStages

      public List<StageLink> getStages()
    • addStage

      public StageLink addStage(Linkable<Stage> stage)