I am trying to upload product , category and CategoryProduct relationship data from CSV files using Hot folder import. The insertion is working fine. Below is the Impex Header and ImpexRow
<bean id="batchCategoryProductRelationConverter" class="de.hybris.platform.acceleratorservices.dataimport.batch.converter.impl.DefaultImpexConverter">
<property name="header">
<value>#{defaultImpexCategoryHeader}
#Link product to category
INSERT_UPDATE CategoryProductRelation;source($categoryRef)[unique=true];target($productRef)[unique=true]
</value>
</property>
<property name="impexRow">
<value>;{+0};{+1}</value>
</property>
</bean>
CSV Data ;cameras;camera1 ;cameras_not_exists;camera1
But during any error , I want to send the user an email which will include the lines not processed from the CSV files and the details of the error.
I followed the instruction from the below wiki post
https://wiki.hybris.com/display/forum/hot+folder+error+file
and extended AbstractImpexRunnerTask and override the processFile method . with the below lines..
result.getCronJob().setSendEmail(new Boolean(true));
result.getCronJob().setEmailAddress("testemail@gmail.com");
result.getCronJob().setDumpingAllowed(new Boolean(true));
result.getCronJob().setLogToFile(new Boolean(true));
result.getCronJob().setLogLevelFile(JobLogLevel.DEBUG);
Q1. - I am not receiving any email. Even if you check the Cron Job details which got created during the process , I can't see these values reflecting in the HMC console.
Q2- How can I pass the error data in the email.