Characteristics value not updated from ruleset.
I am trying to update the characteristics of CustomNetworkAddress entity from ruleset.
We are using below code to update it
HashSet<CustomNetworkAddressCharacteristic> cnaCharList = new HashSet<CustomNetworkAddressCharacteristic>();
cnaCharList = supernet.getCharacteristics();
for(CustomNetworkAddressCharacteristic cnaChar: cnaCharList)
{
if("ABC".equals(cnaChar.getName()))
{
cnaChar.setValue("70");
}
}
CustomNetworkAddressManager custMgr = InventoryHelper.makeCustomNetworkAddressManager();
Collection<CustomNetworkAddress> custNetAddrObject = new ArrayList<CustomNetworkAddress>();
custNetAddrObject.add(supernet);
custMgr.updateCustomNetworkAddress(custNetAddrObject);
where
supernet is the object of CustomNetworkAddress entity.
ABC characteristics takes alphanumeric value. and have no constraint set in the studio.
The issue is that the characteristics are not updated.
Best Regards