/{version}/route/artifacts
The following operations are supported on this resource:
Submits samples to be assigned to or removed from a workflow. The process will handle unassigning samples from
workflows before assignment.
An example of a submitted <routing> is as follows:
<rt:routing xmlns:rt="http://genologics.com/ri/routing">
<assign stage-uri="http://localhost:8090/api/v2/configuration/workflows/7/stages/4">
<artifact uri="http://localhost:8090/api/v2/artifacts/5"/>
<artifact uri="http://localhost:8090/api/v2/artifacts/6"/>
</assign>
<assign workflow-uri="http://localhost:8090/api/v2/configuration/workflows/7">
<artifact uri="http://localhost:8090/api/v2/artifacts/8"/>
<artifact uri="http://localhost:8090/api/v2/artifacts/9"/>
</assign>
<unassign workflow-uri="http://localhost:8090/api/v2/configuration/workflows/10">
<artifact uri="http://localhost:8090/api/v2/artifacts/11"/>
<artifact uri="http://localhost:8090/api/v2/artifacts/12"/>
</unassign>
</rt:routing>
Note that there are two "assign" tags in the example. The first assign tag with the "stage-uri" attribute is
used to route samples to a specific step within the workflow while the second assign tag with the "workflow-uri"
attribute is used to route samples to the beginning of the workflow. The last unassign tag with the "workflow-uri"
attribute unassigns samples from a specific workflow.
Input Payload
element |
consumeable content type(s) |
routing (XML)
|
|
description |
the routing payload, containing the artifacts that should be assigned/unassigned to workflows |
Output Payload
element |
produceable content type(s) |
routing (XML)
|
|
description |
The system returns a response that includes the XML representation of actions that were carried out.
The response payload follows the same format as the input payload. |