how to set custom enum attributes of DNG artifacts using extended properties?
Hello, Im trying to set the custom enum value of a DNG artifact using extended properties of a requirement object. But im getting a 403 forbidden error. Im able to set the string attributes using the same code but not enum attributes. Any hints on this?
QName targetQName = new QName(namespaceURI, localPart, prefix);
|
Accepted answer
Finally I found what was missing. The value should be the URI object as mentioned below
Map<QName, Object> reqMap = requirement.getExtendedProperties(); reqMap.put(targetQName, new URI( “rdf uri of enum value”)); requirement.setExtendedProperties(reqMap);
this updates the enum values using extended properties.
Ralph Schoon selected this answer as the correct answer
|
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.
Comments
What version+ifix are you using?
Its the 7.0.2 version with ifix013. I'm able to set the custom attributes using put request in the Restlcient, But i'm unable to do so using extended properties api.
Need much more detail - please edit into your question an example of a PUT that fails - the actual URL used, all the headers (titles of cookies is sufficient), the body, obfuscating SERVER:PORT as needed. Also show the full response/headers/body.
test