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

createSubCategory in RAM does not work

Exception in thread "main" com.ibm.ram.common.data.exception.RAMRuntimeException: Subcategory Business Capability Catalog/Business Capabilities/Access Financial Markets/Monitor Capital Markets/My Buss Cap SubCategory Asset was not found for the asset My Buss Cap SubCategory Asset[1.0].

      at com.ibm.ram.client.RAMAsset.categorize(RAMAsset.java:2300)

      at com.cof.custom.policy.AutoCategorizeSubCategoryUtil.createUpdateSubCategory(AutoCategorizeSubCategoryUtil.java:152)

      at com.cof.custom.policy.AutoCategorizeSubCategoryUtil.categorizeSubCategoryAssets(AutoCategorizeSubCategoryUtil.java:50)

      at com.cof.custom.policy.CustomPolicyUtility.manageAssets(CustomPolicyUtility.java:428)

      at com.cof.custom.policy.CustomPolicyUtility.main(CustomPolicyUtility.java:737)

 This is the code :-

 RAMSubCategory subCat = subCategory.createSubCategory(assetObj.getName());

session.put(categorySchema, new RAMStatusMonitor());

assetObj.categorize(subCat);

session.put(assetObj, new RAMStatusMonitor());

 

User Action - User creates a subcategory asset and wants that subcategory asset to get displayed in the Visual browse window.


Please help.


Thanks,


Sourav

0 votes


Be the first one to answer this question!

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: Feb 21 '13, 2:08 p.m.

Question was seen: 3,999 times

Last updated: Feb 26 '13, 7:37 a.m.

Confirmation Cancel Confirm