How to have script based attribute customizations work from a Plain Java API based program?
I am working on a Plain Java API based application to create/manipulate work items. These work items have Attribute Customizations using Script Based calculated value providers and possibly default value providers. When I run the application, I receive the following message:
Value provider not found: com.ibm.team.workitem.shared.common.internal.valueProviders.ScriptAttributeValueProvider
Does anyone know what I need to do in order to make the value provider found so the value provider logic will run?
Thanks,
Jamie.
Value provider not found: com.ibm.team.workitem.shared.common.internal.valueProviders.ScriptAttributeValueProvider
Does anyone know what I need to do in order to make the value provider found so the value provider logic will run?
Thanks,
Jamie.
Accepted answer
3 other answers
Hello
There is a Lab 5 in this workshop that deals with this topic: https://jazz.net/library/article/1093/
You also may want to check the posts in this blog: http://rsjazz.wordpress.com/
Comments
The Lab5 of the Workshop Process Enactment Workshop doesn't explain to manage the WI that have Script based calculated attributes with the Plain Java API.
I've created the WI type "Technology Review" and the script based calculated attribute "TotalCostScriptedCalculatedValue" accoring with the Workshop. Then When I've tried to create a new WI with a script that use the Plain Java API, I've got this error:
[ERROR] [com.ibm.team.workitem.common] - Value provider com.ibm.team.workitem.shared.common.internal.valueProviders.ScriptAttributeValueProvider for Total Cost not found
Please could you help to me with the Error?
The PA source code shows this definition of the attribute:
I've created the WI type "Technology Review" and the script based calculated attribute "TotalCostScriptedCalculatedValue" accoring with the Workshop. Then When I've tried to create a new WI with a script that use the Plain Java API, I've got this error:
[ERROR] [com.ibm.team.workitem.common] - Value provider com.ibm.team.workitem.shared.common.internal.valueProviders.ScriptAttributeValueProvider for Total Cost not found
Please could you help to me with the Error?
The PA source code shows this definition of the attribute:
<valueProviders>
<valueProvider id="com.ibm.team.workitem.valueproviders.VALUE_PROVIDER._23LYULexEeardfzaH8hOdg" name="TotalCostScriptedCalculatedValue" providerId="com.ibm.team.workitem.shared.common.internal.valueProviders.ScriptAttributeValueProvider">
<script class="com.acme.providers.script.TotalCostScriptedCalculatedValue" path="/workitem/scripts/common/TotalCostScriptedCalculatedValueProvider.js"/>
</valueProvider>
</valueProviders>
Hi Ralph,
I've opened this RFE to do away with this limitation of the Plain Java API of RTC:
http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=98705
Please feel free to review the RFE to get that it will be triage asap.
I've opened this RFE to do away with this limitation of the Plain Java API of RTC:
http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=98705
Please feel free to review the RFE to get that it will be triage asap.