It's all about the answers!

Ask a question

Value provider not found


James Leone (2132) | asked Feb 09 '11, 5:05 p.m.
Hello,

I am working with RTC 2.0.0.2 and attempting to make a calculated value field following these instructions: https://jazz.net/wiki/bin/view/Main/AttributeValueProviders

I must be doing something wrong, but don't know where to go from here. Whenever I save a workitem that has this attribute, the jazz.log says

2011-02-09 13:52:51,435 [ http-443-Processor25] ERROR com.ibm.team.workitem.common - Value provider not found: com.sjm.team.attribute.provider.CalculatedBusinessValueProvider


Background
I have created a very simple valueProvider in JavaScript

dojo.provide("com.sjm.team.attribute.provider.CalculatedBusinessValueProvider");

(function() {

dojo.declare("com.sjm.team.attribute.provider.CalculatedBusinessValueProvider", null, {

getValue: function(attribute, workItem, configuration) {
return 5;
}

});

})();


I added this .js file as an process attachment in /workitems/scripts/common/CalculatedBusinessValueProvider.js

And finally I updated the process config XML appropriately

I would love to paste my XML here, but the BB seems to strip it!

<configuration>
...
<valueProviders>
<valueProvider>
<script>
</valueProvider>
</valueProviders>
...
</configuration>

<configuration>
...
<attributeDefinitions>
...
<attributeDefinition>
<valueProvider>
<dependsOn>
<dependsOn>
<dependsOn>
<dependsOn>
<dependsOn>
</attributeDefinition>
...

</attributeDefinitions>
</configuration>


PS. I also updated teamserver.properties and restarted the service

com.ibm.team.workitem.process.scripts.enabled=true

Be the first one to answer this question!


Register or 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.