Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to get the last version of an Asset?

I am using RAM Client API and want to retrieve an asset that has several Versions, I only want that last one. Is there a smart solution or do I have to scroll through the SearchResult?

Thx

0 votes



One answer

Permanent link
I am using RAM Client API and want to retrieve an asset that has several Versions, I only want that last one. Is there a smart solution or do I have to scroll through the SearchResult?

Thx


You can use...


RAMAsset asset = session.getAsset(new AssetIdentification(GUID, "*"));


to get the latest version if all versions are in lexicographical order. You can also use other patterns such as...


RAMAsset asset = session.getAsset(new AssetIdentification(GUID, "4.0*"));


to get the latest 4.0x version of your asset.

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 30 '10, 11:11 a.m.

Question was seen: 5,937 times

Last updated: Apr 30 '10, 11:11 a.m.

Confirmation Cancel Confirm