AnsweredAssumed Answered

What is where_id parameter on CMLAddAspect?

Question asked by spilby on Dec 29, 2015
Latest reply on Jan 11, 2016 by spilby

I'm adding custom aspects throw java webservice client, doing something like this:

NamedValue[] customProps = new NamedValue[2];
customProps[0] = Utils.createNamedValue("{example}AAA", "111");
customProps[1] = Utils.createNamedValue("{example}BBB", "222");
CMLAddAspect addCustomAspect1 = new CMLAddAspect("{example}my_aspect1", customProps, null, "1");

NamedValue[] customProps2 = new NamedValue[1];
customProps2 [0] = Utils.createNamedValue("{example}CCC", "333");
CMLAddAspect addCustomAspect2 = new CMLAddAspect("{example}my_aspect2", customProps2 , null, "2");

cml.setAddAspect(new CMLAddAspect[] { addCustomAspect1 , addCustomAspect2 });

My question is… What means the last parameter of CMLAddAspect? The API say that is a String where_id. On examples I allways see null or "1". But if I add various aspects, I need to put "1" and "2" to specify what is what? Better always "1"? Or whats means?

Thanks a lot!