My initial idea is, we have to create the template/styles with same look and feel in JSReport studio, spin up the JSReport server and then call a REST API to JSReport to trigger the Report generation (We dont want to use JSReport scheduling as we want to perform some custom logic to decide when is the ideal time to generate report).
What do you think about this idea?
Yes, this is the best in most of the cases.
As you said, in your proposed solution, we are really not using JSReport. In this approach, PDF can even be generated by any html-to-pdf converter.
jsreport has even in this form additional features that html-to-pdf converts don't support like pdf merge. However, still, you are right that you wouldn't be really using jsreport.
What do you mean when you say "Instead, you may end up with more complex solution and rewrite or copy your angular/styles/html to the jsreport as entities and keep the reporting separated." Could you please elaborate?
I meant the same as you with your initial idea. That you create templates with the same look and feel in the jsreport studio.
I would love to have a meeting with you to understand the full power of JSReport and its several extensions.
We try to avoid calls and instead focus our time here on the forum because it is beneficial for the majority and not just individuals. If you need faster progress and discuss on phone, you can always purchase the starter support and we can organize a call as soon as it fits you.
So I followed your instructions in a fresh testing repo and it worked as expected (over-due schedules being detected as misfires).
After a while (way too long...) of being perplexed why our own JSReports repo was not detecting misfires, I wondered if Docker was somehow caching the modules. I did a docker-compose down command, and afterwards over-due schedules were detected as misfires.
Side note - the logs showed:
info: Using extension scheduling@github:jsreport/jsreport-scheduling#0a6b8c39577c829b525a82078691d4f100426ee5
when that extension seemed to not actually be used, which was confusing.
Thanks for your help,
Info about docker setup, for reference/posterity.
#Override file will run by default if not excluded or -f is not included at local runtime. This is standard docker-compose behavior
#for local branch, docker compose will look different, attaching the local volume: Want to keep the file system files updated for version control.
playing around some more, it looks like the problem may be Sophos anti virus (as well as not liking the .exe Windows runtime, it looks like it might be blocking headless chrome according to some other reports) ... sigh. Time to see if I can persuade out security folks to allow it somehow...!