I am trying to change the state of asset from "review" to "Approved", but I am getting error. I am doing this through java code use RAM api. Below is the error message:
Exception in thread "main" com.ibm.ram.common.data.exception.RAMRuntimeException: The asset ID can only be set by the server.
I am using asset.setStateID(RAMState.ASSET_APPROVED_ID);
Can anyone help me in this regard?
kbauer 1100008S9A22 Posts
Re: Getting error while approving the asset.2010-01-20T11:57:18ZThis is the accepted answer. This is the accepted answer.
- kbauer 1100008S9A
In 7.2 and beyond you can call a getAvailableActions() methods on and asset, call setAction(Action) on an asset and finally put the asset to the session to change an asset's state.