Skip to Content
0
Former Member
May 02, 2012 at 02:34 PM

How to use DataCollectionService API

26 Views

Hi Experts,

I am trying to do DataCollection using DataCollectionService API. I am using the following code snippet for doing it. However I am not able to do it. I did not find method to set operationRef,SfcRef,ResourceRef.etc. Please suggest me the direction.

CreateParametricMeasure createParametricMeasure = new CreateParametricMeasure();

createParametricMeasure.setActual("");

createParametricMeasure.setMeasureGroup("");

createParametricMeasure.setMeasureName("");

createParametricMeasure.setDcParameterRef("");

createParametricMeasure.setEditedUserRef("");

List<CreateParametricMeasure> createParametricMeasureList = new ArrayList();

createParametricMeasureList.add(createParametricMeasure);

CreateParametricRequest createParametricRequest = new CreateParametricRequest();

createParametricRequest.setParametricMeasureList(createParametricMeasureList);

dataCollectionService.createParametricData(createParametricRequest);

Thanks in advance.