boolean bSet=false; // get all property Names of the concept String [] propArr = Instance.Reflection.getAllPropertyNames(cp); for (int i=0;i<propArr@length;i++) { if (propArr[i]==propName) { Object returnProp = Instance.Reflection.getProperty(cp,propName); // update property value Instance.Reflection.setPropertyAtomValue(cp,propName,propValue); bSet=true; break; } }
if (bSet==false) System.debugOut("### property " + propName + " does not exist for the concept ");