if (!JexlUtils.isExpressionValid(itemTO.getMandatoryCondition() == null ? "false" : itemTO.getMandatoryCondition())) { invalidMandatoryCondition.getElements().add(itemTO.getMandatoryCondition()); scce.addException(invalidMandatoryCondition); item.setIntAttrName(itemTO.getIntAttrName()); item.setExtAttrName(itemTO.getExtAttrName()); item.setMandatoryCondition(itemTO.getMandatoryCondition()); item.setConnObjectKey(itemTO.isConnObjectKey()); item.setPassword(itemTO.isPassword());
if (!JexlUtils.isExpressionValid(itemTO.getMandatoryCondition() == null ? "false" : itemTO.getMandatoryCondition())) { invalidMandatoryCondition.getElements().add(itemTO.getMandatoryCondition()); scce.addException(invalidMandatoryCondition); item.setIntAttrName(itemTO.getIntAttrName()); item.setExtAttrName(itemTO.getExtAttrName()); item.setMandatoryCondition(itemTO.getMandatoryCondition()); item.setConnObjectKey(itemTO.isConnObjectKey()); item.setPassword(itemTO.isPassword());
} else { if (!JexlUtils.isExpressionValid(itemTO.getMandatoryCondition() == null ? "false" : itemTO.getMandatoryCondition())) { invalidMandatoryCondition.getElements().add(itemTO.getMandatoryCondition()); scce.addException(invalidMandatoryCondition); item.setExtAttrName(itemTO.getExtAttrName()); item.setPurpose(itemTO.getPurpose()); item.setMandatoryCondition(itemTO.getMandatoryCondition()); item.setConnObjectKey(itemTO.isConnObjectKey()); item.setPassword(itemTO.isPassword());
if (!JexlUtils.isExpressionValid(itemTO.getMandatoryCondition() == null ? "false" : itemTO.getMandatoryCondition())) { invalidMandatoryCondition.getElements().add(itemTO.getMandatoryCondition()); scce.addException(invalidMandatoryCondition); item.setExtAttrName(itemTO.getExtAttrName()); item.setPurpose(itemTO.getPurpose()); item.setMandatoryCondition(itemTO.getMandatoryCondition()); item.setConnObjectKey(itemTO.isConnObjectKey()); item.setPassword(itemTO.isPassword());