on 2018 May 02 6:31 PM
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,
Request clarification before answering.
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.