Cancel
Showing results for 
Search instead for 
Did you mean: 

Classify more than one item revision (ICO object) via SOA customization

Creator
Creator

Hi All,

 

Is anybody have an idea that how to classify more than one ICO Object or Item Revision using SOA customization.

I have tried for one ICO obejct and it is working fine. But customer required to classify more than one object also.

Attached teh reference image.

 

Please suggest some help, its really needed.

 

Regards,

Vinita

2 REPLIES 2

Re: Classify more than one item revision (ICO object) via SOA customization

Siemens Phenom Siemens Phenom
Siemens Phenom

It looks like you are trying to classify the same ItemRevision into multiple classes.

I assume you are using ClassificationService createClassificationObjects.

If not then please let us know what you are trying.

 

You can pass an array of ClassificationObject to this method.  Each object represents a classification ICO.

You specify the ItemRevision you want to classify as the wsoId in this structure.

So all you would need to do would be

  • Create an array of ClassificationObject
  • Set the wsoId of each entry to be the ItemRevision you are classifying
  • Set the classId and attributes appropriately for each ICO
  • Call createClassificationObjects passing your array
  • You get back a response whose clsObjs array is the classification data (like you get from calling findClassificationObjects, then getClassificationObjects)

 

Re: Classify more than one item revision (ICO object) via SOA customization

Legend
Legend

ClassificationObject[] cls_objs = new ClassificationObject[ico_count];

for(int i=0;i< cls_objs.lentgh;i++)

{

  cls_objs[i] = new ClassificationObject();
 cls_objs[i].classId = storage_class_id;
 cls_objs[i].wsoId = itemRev;
 cls_objs[i].unitBase = "METRIC";// or INCH

cls_objs[i].properties = ico_properties;// must be predefined 

}

try
{
CreateClassificationObjectsResponse classificationObjectsResponse = clsService.createClassificationObjects(cls_objs);
}
catch (ServiceException e)
{}