private void causeConditionforSubmitSavedDataType(ClaimantReminder claimantReminder) { if (claimantReminder.getClaimantClaim() != null && claimantReminder.getReminderType().getDescription().equals("Submit Saved Data") && (claimantReminder.getReminderStatus().toString().equals("Pending") || claimantReminder.getReminderStatus().toString().equals("NO_ADDRESS_AVAILABLE"))) { claimantReminder.setReminderStatus(ClaimantReminder.ReminderStatus.AUTO_RESOLVED); } }
private void causeConditionforSubmitDocumentsandNIGOType(ClaimantReminder claimantReminder) { if (claimantReminder.getClaimantClaim() != null && claimantReminder.getClaimantClaim().getClaimProofs() != null && (claimantReminder.getReminderType().getDescription().equals("Submit for NIGO") || claimantReminder.getReminderType().getDescription().equals("Submit Documents")) && (claimantReminder.getReminderStatus().toString().equals("Pending") || claimantReminder.getReminderStatus().toString().equals("NO_ADDRESS_AVAILABLE"))) { List proofstatus = new ArrayList<String>(); Integer claimproofssize = claimantReminder.getClaimantClaim().getClaimProofs().size(); Iterator i = claimantReminder.getClaimantClaim().getClaimProofs().iterator(); while (i.hasNext()) { ClaimProof claimproof = (ClaimProof) i.next(); if (claimproof.getStatus().toString().equals("IGO")) { proofstatus.add(claimproof.getStatus().toString()); } } if (proofstatus.size() == claimproofssize) claimantReminder.setReminderStatus(ClaimantReminder.ReminderStatus.AUTO_RESOLVED); } }