Unable to set values for enumeration attributes in RRC 4.0.1 M3
I am trying to set values for enumeration data attributes using OSLC.
There is no error and at the same time no value is populated. Using the following code to do the same String access = findPropertyByTitle(doc, "Artifact Usage"); I get the correct URI for this attrbute . This is an enumerated attribute having key as Integer and Value as String Tried the following to set req.addRMIntegerProperty(access, 0); Have also tried with the value corresponding to the key. req.addRMIntegerProperty(access, "Work Product"); None of them work although the requirement URL looks good. I get the attribute definition as follows: <rm_property:_G4QYIQ7-EeKaDcaAOPjzYg rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</rm_property:_G4QYIQ7-EeKaDcaAOPjzYg> Is there any idea whats the error? Thanks, Samanwita |
2 answers
I tested a similar example using the HTTP Requester and seems to be working fine ( The int value is properly changed ). I suggest to try first changing the value using a Poster tool ( like HTTP Requester ) and once you get the right body that allows the change move that to the code.
Comments
Preetam Sikdar
commented Oct 12 '12, 1:45 a.m.
Hi Gabriel,
|
The OSLC Workshop does contains the source code for the basic OSLC functionality.
https://jazz.net/library/article/635 |
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.