@Override public void validate(Map<String,Object> processVariables,Map<String,String> userParameter) throws AbortException {
  final Date dueDate=(Date)processVariables.get(IGenericProcess.VAR_DUEDATE);
  final int reminderDays=(Integer)processVariables.get(IIndividualProcess.VAR_REMINDER_DAYS);
  final Date reminderDate=getReminderDate(dueDate,reminderDays);
  final Calendar now=Calendar.getInstance();
  if (reminderDate.after(now.getTime())) {
    throw new AbortException("Reminder date is in the future.");
  }
}

@ Override public void validate ( Map < String , Object > processVariables , Map < String , String > userParameter ) throws AbortException { final Date dueDate = ( Date ) processVariables . get ( IGenericProcess . VAR_DUEDATE ) ; final int reminderDays = ( Integer ) processVariables . get ( IIndividualProcess . VAR_REMINDER_DAYS ) ; final Date reminderDate = getReminderDate ( dueDate , reminderDays ) ; final Calendar now = Calendar . getInstance ( ) ; if ( reminderDate . after ( now . getTime ( ) ) ) { throw new AbortException ( "Reminder date is in the future." ) ; } }
throws abortexception if reminder date is in the future .
