Use Java API to delete pending asset
Hi,
I am trying to use the API to delete a pending asset. My simplified code is:
RAMAsset pending = session.getAsset(new AssetIdentification(guid, version, true));
asset.setAction(RAMAction.DELETE);
session.put(asset, new NullProgressMonitor());
I consistently receive an exception even though I am an administrator of the community. I have tried this with several pending assets.
com.ibm.ram.common.data.exception.RAMRuntimeException: You are not authorized to delete asset "XYZ"
I can pull up the web UI and delete the pending asset without a problem.
What is the right way to do this through the API? This is a 7.2.0.2 system.
Thanks in advance!
I am trying to use the API to delete a pending asset. My simplified code is:
RAMAsset pending = session.getAsset(new AssetIdentification(guid, version, true));
asset.setAction(RAMAction.DELETE);
session.put(asset, new NullProgressMonitor());
I consistently receive an exception even though I am an administrator of the community. I have tried this with several pending assets.
com.ibm.ram.common.data.exception.RAMRuntimeException: You are not authorized to delete asset "XYZ"
I can pull up the web UI and delete the pending asset without a problem.
What is the right way to do this through the API? This is a 7.2.0.2 system.
Thanks in advance!
4 answers
I have opened defect 45187 to track.
https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/45187
https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/45187
Hi,
I am trying to use the API to delete a pending asset. My simplified code is:
RAMAsset pending = session.getAsset(new AssetIdentification(guid, version, true));
asset.setAction(RAMAction.DELETE);
session.put(asset, new NullProgressMonitor());
I consistently receive an exception even though I am an administrator of the community. I have tried this with several pending assets.
com.ibm.ram.common.data.exception.RAMRuntimeException: You are not authorized to delete asset "XYZ"
I can pull up the web UI and delete the pending asset without a problem.
What is the right way to do this through the API? This is a 7.2.0.2 system.
Thanks in advance!
hi folks,
I created a custom workflow in RTC client following the Infocenter instruction.
The workflow looks pretty similar to the one provided OOTB. When I saved it and restarted the RAM server the workflow didn't show up among other workflows available for the Community.
I verified the workflow ID and binding.
Is there any way to troubleshoot this? What's missing?
FYI. My RAM version is 7.5.0.1
Thanks in advance.
Dmitry
I created a custom workflow in RTC client following the Infocenter instruction.
The workflow looks pretty similar to the one provided OOTB. When I saved it and restarted the RAM server the workflow didn't show up among other workflows available for the Community.
I verified the workflow ID and binding.
Is there any way to troubleshoot this? What's missing?
FYI. My RAM version is 7.5.0.1
Thanks in advance.
Dmitry