It's all about the answers!

Ask a question

Value Provider error


VK L (8177128159) | asked Sep 12 '12, 3:01 a.m.
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.

2 answers



permanent link
Jorge Diaz (8664134) | answered Sep 12 '12, 4:38 a.m.
JAZZ DEVELOPER
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.

permanent link
VK L (8177128159) | answered Sep 13 '12, 5:20 a.m.
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.

Your answer


Register or to post your answer.