cancel
Showing results for 
Search instead for 
Did you mean: 

import data use api how can i monitor the process ????

Former Member
0 Kudos

I use the API RepositoryListener to monitor the process of the import!

i implement the method "fieldsPositioned(FieldsEvent arg0)" of the interface RepositoryListener,but why I do a import and the method "fieldsPositioned(FieldsEvent arg0)" be called many times??????

can anyone help me????thank you!!!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

FieldsPositioned method is used to catch the event when the position of any field is changed in repository.

Use importProcessed method which will be getting called when the import of data to repository is processed.

Cheers,

Veeru.

Former Member
0 Kudos

oh!sorry i have a mistake!i actualy use the method importProcessed(ImportEvent arg0),but once import the method be called many times.

Former Member
0 Kudos

Hi ,

I have never used this method.....I think if you are importing 100 records , this method will get called 100 times ......Try to import2 or 3 records and check how many time the method is getting called.

Thanks & Regards,

Veeru

Former Member
0 Kudos

hello,i have try this ,whether import 100 or import 3 records the method getting called about ten times!

Edited by: xuhuanjun on Sep 22, 2009 11:49 AM

Former Member
0 Kudos

Hi,

It is strange,Please print file names inside the importProcessed method.

String [] fileList = importEvent.getFileNames() ;

for(int i=0;i<fileList.length;i++){

System.out.println("File Name:"+fileList<i>);

}

Cheers,

Veeru.

Former Member
0 Kudos

yes i have do this ,i do import onec and one file,the method be called many times!!

Answers (1)

Answers (1)

Former Member
0 Kudos

no method