How do I get the GUID when submitting a new asset?
<Administrator> Question changed to what turned out to be the real question. The answer is for the real question</Administrator>
Sorry for the newbie question but I'm not sure how this is supposed to work. I successfully uploaded an asset to RAM using the custom ant library but now I need the URL to that same asset. It seems pretty straightforward: http://ramserver/ram/oslc/assets/<guid>/<version>. The problem is, how do I get the GUID!
Sorry for the newbie question but I'm not sure how this is supposed to work. I successfully uploaded an asset to RAM using the custom ant library but now I need the URL to that same asset. It seems pretty straightforward: http://ramserver/ram/oslc/assets/<guid>/<version>. The problem is, how do I get the GUID!
I have this:
<ram:search server="ramServer"
community="${ram.asset.community}"
version="${ram.asset.version}"
name="${ram.asset.name}"/>
The query is simple because I know the name is unique. It runs successfully but there are no results anywhere. Are the results loaded into a certain property or. . .?
Thanks for any suggestions!
- Andy
Accepted answer
First off, indexing occurs in the background. This means it can take 30 seconds to a minute before an asset's changes show up in a search result.
Second, you don't need to search to get the guid. When the submit occurs you can have an ANT property set with the guid of the new asset. See Submit task and look at the "guidProperty" setting on the submit.
Second, you don't need to search to get the guid. When the submit occurs you can have an ANT property set with the guid of the new asset. See Submit task and look at the "guidProperty" setting on the submit.
Comments
1 vote
Comments
Andy Jewell
Oct 24 '13, 7:00 p.m.