Task Tracker Successful Completion - How to get stream uri after its created.
I am using the oslc rm apis on my java backend. I have a baseline and wanting to create a stream from it. I send the request to oslc client create a stream and get back a 202 response as expected. Now I am taking that location header for the task tracker. I am polling the task tracker just fine and finally when I get the progress 100 and confirmation that state is COMPLETE/PASS I am now trying to get the url of the stream that was created in that task. In order to do that I am getting 'references' (http://purl.org/dc/terms/references) and successfully getting back the following references string:
|
One answer
David Honey (1.8k●1●7)
| answered Aug 29 '23, 4:04 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Aug 29 '23, 4:06 a.m.
This is described in the OSLC Configuration Management specification at https://docs.oasis-open-projects.org/oslc-op/config/v1.0/ps01/config-resources.html#longoperations. The
oslc_config:Activity
has the following description for
dcterms:references
. That should be the URI of the created resource. If an application is returning a string rather than a URI, that application is not conformant with the OSLC Configuration Management specification.
Comments
Eduard Hasa
commented Aug 29 '23, 10:28 a.m.
Im confused because im making this call to the DNG oslc api. Im getting a succesful response for the task tracker that it is complete and getting that string back in the references. So are you saying this is an issue with the oslc api for dng?
GCM code creates a DOOR Next (or any other local configuration provider) stream from a DOORS Next baseline by:
Eduard Hasa
commented Aug 29 '23, 10:50 a.m.
I am understanding that and everything 1-4 is happening accordingly except at the end im not getting a URI of the created stream but rather getting "1443a0fa-b8cc-41fa-8a21-df307274a26d" for dcterms:references
David Honey
commented Aug 29 '23, 10:55 a.m.
| edited Aug 29 '23, 11:47 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Sounds like you are not using the above OSLC defined mechanism but something else. Is the resource you see of RDF type
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.