java.lang.Object
com.genologics.ri.workflowconfiguration.Workflow
- All Implemented Interfaces:
Linkable<Workflow>,Locatable,Serializable
The detailed representation of a Workflow.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PatternRegular expression to extract workflow id from a workflow URI.protected StringThe name of the workflow.protected List<ProtocolLink>The list of protocols associated with this workflow.The list of stages associated with this workflow.protected StatusThe status of the workflow.protected URIThe URI of the workflow. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProtocol(Linkable<Protocol> protocol) Adds a protocol to this workflow.Adds a stage to this workflow.getId()Get the numeric identifier for this workflow from its URI.getLink()Get a concrete link object to thisLinkablething.getName()Gets the name of the workflow.Gets the list of protocols associated with this workflow.Gets the list of stages associated with this workflow.Gets the status of the workflow.getUri()Gets the URI of the workflow.voidSets the name of the workflow.voidSets the status of the workflow.voidSets the URI of the workflow.
-
Field Details
-
ID_EXTRACTOR_PATTERN
Regular expression to extract workflow id from a workflow URI.- Since:
- 2.22
-
protocols
The list of protocols associated with this workflow. -
stages
The list of stages associated with this workflow. -
name
The name of the workflow. -
uri
The URI of the workflow. -
status
The status of the workflow.
-
-
Constructor Details
-
Workflow
public Workflow()Default constructor. -
Workflow
Constructor accepting a URI.- Parameters:
uri- The workflow URI.
-
Workflow
Constructor accepting a URI and name.- Parameters:
uri- The workflow URI.name- The workflow name.
-
-
Method Details
-
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
Gets the name of the workflow.- Returns:
- The workflow name.
-
setName
Sets the name of the workflow.- Parameters:
name- The workflow name.
-
getUri
Gets the URI of the workflow. -
setUri
Sets the URI of the workflow. -
getStatus
Gets the status of the workflow.- Returns:
- The workflow status.
-
setStatus
Sets the status of the workflow.- Parameters:
status- The workflow status.
-
getProtocols
Gets the list of protocols associated with this workflow.- Returns:
- The list of protocol links.
-
addProtocol
Adds a protocol to this workflow.- Parameters:
protocol- The protocol to add.- Returns:
- The newly created protocol link.
-
getStages
Gets the list of stages associated with this workflow.- Returns:
- The list of stage links.
-
addStage
Adds a stage to this workflow.- Parameters:
stage- The stage to add.- Returns:
- The newly created stage link.
-
getLink
Get a concrete link object to thisLinkablething.
-