Adding a category to an asset in a custom policy
![]()
Hello
I need to create a custom policy that will add a category to an asset. I've been digging through the Java API and think I have a good approach, but it is not working. My code looks like this...
However, this gives me an exception...
exception java.lang.NullPointerException stack trace=[com.ibm.ram.client.RAMCategorySchema.setDirty(RAMCategorySchema.java:411), com.ibm.ram.client.RAMCategory.setDirty(RAMCategory.java:415), com.ibm.ram.client.RAMSubCategory.setDirty(RAMSubCategory.java:432), com.ibm.ram.client.RAMSubCategory.setSubCategories(RAMSubCategory.java:706), com.ibm.ram.client.RAMCategory.setSubCategories(RAMCategory.java:474), ......
What is the correct way to categorize an asset via a custom policy? I've tried many variations of the above, but keep hitting exceptions of one kind or another.
Thanks for any help!
|
Accepted answer
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.