Work with pending assets
If an approved asset is modified and subject to a review
process, the approved asset remains available until the revision under
review replaces it by becoming approved. While under review, there
are two revisions of this asset:
- the asset that was approved (the main asset)
- the asset under review (the pending asset)
//Fetch a pending asset
AssetIdentification revisedId = new AssetIdentification(GUID, version,true);
RAMAsset revised= session.getAsset(revisedId);
//Fetch main asset
RAMAsset main = session.getAsset(revised.getMainAssetId());
//Back to the pending
revised = session.getAsset(main.getPendingAssetId());