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

Value provider not found

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

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 09 '11, 5:05 p.m.

Question was seen: 4,562 times

Last updated: Feb 09 '11, 5:05 p.m.

Confirmation Cancel Confirm