Source:
<code>protected void processConcurEventNotification(ConcurEventNotification concurEventNotification) { try { ValidationResult validationResult = new ValidationResult(false, new ArrayList<String>()); LOG.info("Extract concur report with objectURI: " + concurEventNotification.getObjectURI()); ConcurReport concurReport = concurReportsService.extractConcurReport(concurEventNotification.getObjectURI()); if (concurReport != null) { LOG.info("Concur report status code from Concur: " + concurReport.getConcurStatusCode() + ", workflow URI: " + concurReport.getWorkflowURI()); if (ConcurUtils.isConcurReportStatusAwaitingExternalValidation(concurReport.getConcurStatusCode())) { LOG.info("Validate report accounting info"); validateAccountInfo(validationResult, concurReport); LOG.info("Update report status in Concur"); concurReportsService.updateExpenseReportStatusInConcur(concurReport.getWorkflowURI(), validationResult); } else{ LOG.info("Concur Report not in Awaiting External Validation status"); validationResult.addMessage(configurationService.getPropertyValueAsString(ConcurKeyConstants.INCORRECT_CONCUR_STATUS_CODE)); } LOG.info("Update ConcurEventNotification flags and validationMessage in KFS database: " + validationResult.isValid() + "," + validationResult.getErrorMessagesAsOneFormattedString()); <START> concurEventNotificationService.updateConcurEventNotificationFlagsAndValidationMessage(concurEventNotification, false, true, validationResult.isValid(), validationResult.getErrorMessagesAsOneFormattedString()); <END> } } catch (Exception e) { LOG.error("An exception occured while processing this request: id " + concurEventNotification.getConcurEventNotificationId() + ", object URI" + concurEventNotification.getObjectURI() + ", error: " + e.getMessage(), e); } }</code><technical_language>local variables descriptive names give clarity "false" "true" representing in this method call</technical_language>

Target:
protected void processConcurEventNotification(ConcurEventNotification concurEventNotification) { try { ValidationResult validationResult = new ValidationResult(false, new ArrayList<String>()); LOG.info("Extract concur report with objectURI: " + concurEventNotification.getObjectURI()); ConcurReport concurReport = concurReportsService.extractConcurReport(concurEventNotification.getObjectURI()); if (concurReport != null) { LOG.info("Concur report status code from Concur: " + concurReport.getConcurStatusCode() + ", workflow URI: " + concurReport.getWorkflowURI()); if (ConcurUtils.isConcurReportStatusAwaitingExternalValidation(concurReport.getConcurStatusCode())) { LOG.info("Validate report accounting info"); validateAccountInfo(validationResult, concurReport); LOG.info("Update report status in Concur"); concurReportsService.updateExpenseReportStatusInConcur(concurReport.getWorkflowURI(), validationResult); } else{ LOG.info("Concur Report not in Awaiting External Validation status"); validationResult.addMessage(configurationService.getPropertyValueAsString(ConcurKeyConstants.INCORRECT_CONCUR_STATUS_CODE)); } LOG.info("Update ConcurEventNotification flags and validationMessage in KFS database: " + validationResult.isValid() + "," + validationResult.getErrorMessagesAsOneFormattedString()); concurEventNotificationService.updateConcurEventNotificationFlagsAndValidationMessage(concurEventNotification, ConcurConstants.EVENT_NOTIFICATION_NOT_IN_PROCESS, ConcurConstants.EVENT_NOTIFICATION_PROCESSED, validationResult.isValid(), validationResult.getErrorMessagesAsOneFormattedString()); } } catch (Exception e) { LOG.error("An exception occured while processing this request: id " + concurEventNotification.getConcurEventNotificationId() + ", object URI" + concurEventNotification.getObjectURI() + ", error: " + e.getMessage(), e); } }