cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to implement one Cron Job for creating report from bckoffice

Former Member
0 Likes
429

I have to implement one Cron Job for automatically create backoffice report ,So for the business team , no need to create report manually from backoffice .

Could anyone suggest me on this and how i can start work on this ?

Thanks in advance.

Regards,

Accepted Solutions (1)

Accepted Solutions (1)

VinayKumarS
Active Contributor
0 Likes

Write a CronJob., Event and Event Listener. When Cron job is called/triggered. It will trigger an event. Which calls an event listener. From that event listener call the business process. which interally calls the database and get the data which you want to populate in the report.From here you can send the email or generate a pdf..

Answers (1)

Answers (1)

Former Member
0 Likes

Hi Sam,

Thanks for your reply ....

Could you help me to write correct logic for "get start date and end date from model class "

so that i can able to use dynamic date from hac through impex and from backoffice .

    final int startDate = XXXXXXXModel.getStartDate();  

   final Calendar cal = Calendar.getInstance();

   cal.add(Calendar.DAY_OF_MONTH,startDate);



  final int endDate = XXXXXXXModel.getEndDate();

   final Calendar cal = Calendar.getInstance();

   cal.add(Calendar.DAY_OF_MONTH,endDate);

Basically i need to use these dynamic date in cron job .

Regards,