Skip to main content

Posts

Showing posts with the label Oracle ADF Adding business rules programmatically

Adding business rules programmatically

First add a method validator to your EO. Use the method super.registerRowException to add the error.     public boolean validateEntityRules() {       //call to OBR       Collection results = RulesUtil.validateEntity(this, getClass().getName());       if (results == null || results.isEmpty()) {           return true;       } else {           for (Object result : results) {             super.registerRowException(new JboException((String) result));           }           return false;          }