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);
Map<QName, Object> reqMap = requirement.getExtendedProperties();
reqMap.put(targetQName, “rdf uri of enum value”);
requirement.setExtendedProperties(reqMap);
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.
Comments
Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Oct 20 '22, 3:39 a.m.What version+ifix are you using?
thimmaiah aa
Oct 20 '22, 5:20 a.m.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.
Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Oct 20 '22, 7:06 a.m.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.
Shailee Sinha
FORUM ADMINISTRATOR / FORUM MODERATOR Nov 11 '22, 2:16 a.m.test