- Code: Select all
HashMap udfs = task.getUdfValues();
if (udfs.get("Exists in Production")==null || udfs.get("Exists in Production").equals("Please Choose"))
throw new UserMessageException("No value selected for the Exists in Production field!");
return task;