I'm planning to have a view that presents a button so that when it is clicked, it will run a Quartz job and the page will finish loading successfully (no need to wait for the job to finish). Based on this documentation, you can have a custom trigger class. Can you help me implementing it?
My job:
class ReconciliationJob {
static triggers = {
custom name:'customTrigger', triggerClass:ReconciliationTrigger, targetDate:myValue
}
def execute() {
// execute task
}
}
How can I implement ReconciliationTrigger class? Also, I need to pass a parameter to the job too.
Thanks.