java.lang.Object
com.genologics.ri.stage.Stage
- All Implemented Interfaces:
Linkable<Stage>,Locatable,Serializable
The detailed representation of a workflow stage.
A stage represents a step within a workflow in the Clarity LIMS system. Each stage is associated with a specific workflow, protocol, and protocol step. Stages define the sequence of operations that samples or artifacts undergo during laboratory processing.
This class provides access to the stage's name, index within its workflow, and links to the associated workflow, protocol, and protocol step entities.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PatternRegular expression pattern to extract workflow id and workflow stage id from a workflow stage URI.protected IntegerThe index of the stage in the workflow.protected StringThe name of the stage.protected ProtocolLinkLink to the protocol for this stage.protected ProtocolStepLinkLink to the protocol step for this stage.protected URIThe URI of the stage.protected WorkflowLinkLink to the workflow this stage belongs to. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Gets the numeric identifier for this workflow stage from its URI.getIndex()Gets the index of the stage in the workflow.getLink()Gets a link to this stage entity.getName()Gets the name of the stage.Gets the protocol link for this stage.getStep()Gets the protocol step link for this stage.getUri()Gets the URI of the stage.Gets the workflow link for this stage.Gets the numeric identifier for this stage's workflow from its URI.voidSets the index of the stage in the workflow.voidSets the name of the stage.voidsetProtocol(Linkable<Protocol> protocol) Sets the protocol for this stage.voidsetStep(Linkable<ProtocolStep> step) Sets the protocol step for this stage.voidSets the URI of the stage.voidsetWorkflow(Linkable<Workflow> workflow) Sets the workflow for this stage.
-
Field Details
-
ID_EXTRACTOR_PATTERN
Regular expression pattern to extract workflow id and workflow stage id from a workflow stage URI. This pattern is constructed from the URI sections defined in theClarityEntityannotations.- Since:
- 2.22
-
workflow
Link to the workflow this stage belongs to. -
protocol
Link to the protocol for this stage. -
step
Link to the protocol step for this stage. -
uri
The URI of the stage. -
name
The name of the stage. -
index
The index of the stage in the workflow.
-
-
Constructor Details
-
Stage
public Stage()Default constructor. -
Stage
Constructor with URI.- Parameters:
uri- The URI of the stage.
-
Stage
Constructor with URI and name.- Parameters:
uri- The URI of the stage.name- The name of the stage.
-
-
Method Details
-
getId
Gets the numeric identifier for this workflow stage from its URI.- Returns:
- The workflow stage id, or null if either the URI is not set or it doesn't match the form expected for a workflow stage URI.
- Since:
- 2.22
-
getWorkflowId
Gets the numeric identifier for this stage's 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 stage URI.
- Since:
- 2.22
-
getWorkflow
Gets the workflow link for this stage.- Returns:
- The workflow link.
-
setWorkflow
Sets the workflow for this stage.- Parameters:
workflow- The linkable workflow object to set.
-
getProtocol
Gets the protocol link for this stage.- Returns:
- The protocol link.
-
setProtocol
Sets the protocol for this stage.- Parameters:
protocol- The linkable protocol object to set.
-
getStep
Gets the protocol step link for this stage.- Returns:
- The protocol step link.
-
setStep
Sets the protocol step for this stage.- Parameters:
step- The linkable protocol step object to set.
-
getUri
Gets the URI of the stage. -
setUri
Sets the URI of the stage. -
getName
Gets the name of the stage.- Returns:
- The name of the stage.
-
setName
Sets the name of the stage.- Parameters:
name- The name of the stage.
-
getIndex
Gets the index of the stage in the workflow.- Returns:
- The index of the stage.
-
setIndex
Sets the index of the stage in the workflow.- Parameters:
index- The index of the stage.
-
getLink
Gets a link to this stage entity.
-