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

Value Provider error

Hi All,
            I have created a dependent enumeration between 2 value-sets. When i select the values and then save, "it says value not applicable" for all the cases and the ccm.log gives below error:

2012-09-12 10:26:11,333 [ ccm: AsynchronousTaskRunner-0] ERROR com.ibm.team.workitem.common
- Error invoking value provider 'com.ibm.team.workitem.valueproviders.VALUE_PROVIDER._Z_J7gOUEEeGdYokq8f0lZw'
org.mozilla.javascript.JavaScriptException: [object Error] ({"Bundle-SymbolicName":"org.dojotoolkit.dojo",
"path":"resources\\_base\\_loader", "name":"loader.js"}#414)
mozilla.javascript.gen.c2._c18({"Bundle-SymbolicName":"org.dojotoolkit.dojo", "path":"resources\\_base\\_loader",
"name":"loader.js"}:413)
at org.mozilla.javascript.gen.c2.call({"Bundle-SymbolicName":"org.dojotoolkit.dojo", "path":"resources\\_base\\_loader",
"name":"loader.js"})

Please advise.

Thanks.

0 votes



2 answers

Permanent link
Hello Valli,

how is the configuration of these providers? If you look in the Process Configuration Source and look for "VALUE_PROVIDER._Z_J7gOUEEeGdYokq8f0lZw" you will find the script that is throwing the error.

Regards,

Jorge.

0 votes


Permanent link
Hi Jorge,
                 My script is as below: (It is providing the required output, but with above mentioned error in ccm.log). Moreover, another dependent value-set also gets saved, but points a red cross mark saying "value is not applicable - not affecting the working though)

dojo.provide("com.ibm.workitems.providers.RequestType");

dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");


(function() {
var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;

dojo.declare("com.ibm.workitems.providers.RequestType", null, {

    getValue: function(attributeId, workItem, configuration) {
      console.log("Start..");
      var aState= workItem.getValue(WorkItemAttributes.STATE);      
      if (aState == "CRWorkflow.state.s16") return "Build and Deploy Request";
      if (aState == "CRWorkflow.state.s17") return "RTC Service Request";         
      return " "; //No Match
    }
});
})();

Thanks.

0 votes

Your answer

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
× 6,126

Question asked: Sep 12 '12, 3:01 a.m.

Question was seen: 5,069 times

Last updated: Sep 13 '12, 5:20 a.m.

Confirmation Cancel Confirm