title: Execute a Quartz Job with a Trigger from a Controller
body: <p>I can run a cron from a static trigger from within the job folder and it will execute, but when I try to fire a trigger from my controller it just plain fails...What am I missing? </p>
  
  <p>ERROR CODE: No signature of method: static com.example.TaskReminderJob.triggerNow() is applicable for argument types: (java.util.LinkedHashMap) values: [[params:[name:Frank, email:frank@test.com]]]</p>
  
  <p><strong>Quartz Job in grails-app/jobs/example</strong> </p>
  
  <pre><code>  package com.example
    class TaskReminderJob {
       def reminderMailService 
       static triggers = { }
  
       def execute(context) {
           def email = context.mergedJobDataMap.get('email')
           def name = context.mergedJobDataMap.get('name')
           reminderMailService.remindMail1(name, email)  //send email via service       
       }
    }
  </code></pre>
  
  <p><strong>CONTROLLER CALLING THE JOB</strong>  </p>
  
  <pre><code>package example
  
  class UserController {
      def quartzScheduler 
      ...
      //user is created
      ...                     
      TaskReminderJob.triggerNow([name:"frank",email:"frank@test.com"] )
  } 
  </code></pre>