public static void startJob ( String jobName , Map < String , Object > params ) throws SundialSchedulerException { try { JobDataMap jobDataMap = new JobDataMap ( ) ; for ( String key : params . keySet ( ) ) { // logger.debug("key= " + key); // logger.debug("value= " + pParams.get(key)); jobDataMap . put ( key , params . get ( key ) ) ; } getScheduler ( ) . triggerJob ( jobName , jobDataMap ) ; } catch ( SchedulerException e ) { throw new SundialSchedulerException ( "ERROR STARTING JOB!!!" , e ) ; } }
Starts a Job matching the the given Job Name found in jobs . xml or jobs manually added .