Explain how to create a Cron job in Hybris

I did my research, but could not find an authentic answer. Any input from hybrid experts is greatly appreciated

+4
source share
2 answers
  • Cronjob: The job to be done. To do this, create an element type that extends from CronJob.
  • Work: where the real cronjob logic will be written. To do this, create a class that extends from AbstractJobPerformable <... abovegeneratedModel> and override the perform () method. Here, the execution method will contain the actual logic of the work.
  • Define the specified work class as bean in xxxcore-spring.xml.
  • Go to hmc -> System -> Right click on Cronjobs and create a new cronjob.
  • : cron, cronjob. TimeSchedule.
  • StartCronJob , cronjob.

impex script , thijsraets.

INSERT_UPDATE Trigger;cronJob(code)[unique=true];cronExpression
;myCronJob;30 23 14 2 5 ? 2015
+10

, , cronJob , cronJob /: . bean, AbstractJobPerformable "". hMC Cron Job (System- > CronJobs), Job bean, .

, impex, :

INSERT_UPDATE CronJob;code[unique=true];job(code);sessionLanguage(isocode);sessionCurrency(isocode)
;myCronJob;myJobBean;en;EUR

INSERT_UPDATE Trigger;cronJob(code)[unique=true];cronExpression
;myCronJob;30 23 14 2 5 ? 2015

impex ( hac):

final CSVReader importReader = new CSVReader(impEx);
final Importer importer = new Importer(importReader);

importer.getReader().setDumpingAllowed(true);
try
{
    importer.importAll();
}
catch (final ImpExException e)
{
    e.printStackTrace();
}
importReader.closeQuietly();
importer.close();

( 5.5.1: , . , , , SAP )

+3

All Articles