public void Execute(IJobExecutionContext context) {
     var jobDataMap = context.MergedJobDataMap;
     var count = jobDataMap.GetInt<ThresholdJobDetailDataMap>(ThresholdCalculationJob.ThresholdCalcCount);
     if (count > 0) {
         var subsystem = new ThresholdCalculationEmailSubsystem(jobDataMap);
         subsystem.SendEmail(count);
     }
 }
        public void Execute(IJobExecutionContext context)
        {
            var jobDataMap = context.MergedJobDataMap;
            var count      = jobDataMap.GetInt <ThresholdJobDetailDataMap>(ThresholdCalculationJob.ThresholdCalcCount);

            if (count > 0)
            {
                var subsystem = new ThresholdCalculationEmailSubsystem(jobDataMap);
                subsystem.SendEmail(count);
            }
        }