Is there a way to retrieve via oslc all states urls
Is there a service that shows all sates urls?
I found a few by searching through workitems, but I wanna know if there's a service that returns all of them, if not, how to know if there's more?
The version of rtc I'm using is 5.0
https://localhost:9443/ccm/oslc/workflows/_VXfnAFntEeSkPKc3ubLimQ/states/orientacao_operacao_workflow
https://localhost:9443/ccm/oslc/workflows/_VXfnAFntEeSkPKc3ubLimQ/states/defeito_producao
https://localhost:9443/ccm/oslc/workflows/_VXfnAFntEeSkPKc3ubLimQ/states/projeto_fluxo
https://localhost:9443/ccm/oslc/workflows/_VXfnAFntEeSkPKc3ubLimQ/states/entrega_fluxo
https://localhost:9443/ccm/oslc/workflows/_VXfnAFntEeSkPKc3ubLimQ/states/com.ibm.team.workitem.taskWorkflow
Accepted answer
I checked it out, but still not what I'm looking for.
I need the equivalent of this:
Select distinct status_id
from workitem_statuses
where project_area_id = _VXfnAFntEeSkPKc3ubLimQ
and the return would be a xml like this:
<rdf:RDF>
<rdf:Description rdf:about="https://localhost:9443/ccm/oslc/contexts/_VXfnAFntEeSkPKc3ubLimQ/states">
<rdfs:member rdf:resource="https://localhost:9443/ccm/oslc/workflows/_VXfnAFntEeSkPKc3ubLimQ/states/orientacao_operacao_workflow" />
<rdfs:member rdf:resource="https://localhost:9443/ccm/oslc/workflows/_VXfnAFntEeSkPKc3ubLimQ/states/defeito_producao" />
<rdfs:member rdf:resource="https://localhost:9443/ccm/oslc/workflows/_VXfnAFntEeSkPKc3ubLimQ/states/projeto_fluxo" />
<rdfs:member rdf:resource="https://localhost:9443/ccm/oslc/workflows/_VXfnAFntEeSkPKc3ubLimQ/states/entrega_fluxo" />
<rdfs:member rdf:resource="https://localhost:9443/ccm/oslc/workflows/_VXfnAFntEeSkPKc3ubLimQ/states/com.ibm.team.workitem.taskWorkflow" />
</rdf:Description>
</rdf:RDF>
UPDATE:
I found this url that I must send the types and it returns its possible status:
https://localhost:9443/ccm/oslc/context/_VXfnAFntEeSkPKc3ubLimQ/shapes/workitems/:type_id/property/internalState/allowedValues
One other answer
Hello I believe that you are looking for a service to display the exact set of resources available within your OSLC application. In that case please check the Tracked resource set spec - TRS at http://open-services.net/wiki/core/TrackedResourceSet-2.0/ .
Definition:
The Tracked Resource Set protocol allows a server to expose a set of resources in a way that allows clients to discover the exact set of resources in the set, to track all additions to and removals from the set, and to track state changes to all resources in the set. The protocol does not assume that clients will dereference the resources. ...
The link to the TRS document for RTC is https://localhost:9443/ccm/oslc/workitem/trs
Best regards,
Definition:
The Tracked Resource Set protocol allows a server to expose a set of resources in a way that allows clients to discover the exact set of resources in the set, to track all additions to and removals from the set, and to track state changes to all resources in the set. The protocol does not assume that clients will dereference the resources. ...
The link to the TRS document for RTC is https://localhost:9443/ccm/oslc/workitem/trs
Best regards,