Class AttributeRuleValidator

java.lang.Object
com.ptc.core.businessRules.validation.AttributeRuleValidator
All Implemented Interfaces:
RuleValidation

public class AttributeRuleValidator extends Object implements RuleValidation
This class validates the objects against the attributes check criteria below.
  • validate attribute is not null
  • validate attribute is not 0
  • Confirm boolean attribute value
  • validate a string attribute value
  • validate a missing attribute
  • Ability to skip validation for excluded types
  • validate range for attributes
This class will return success if for each object that passes the attribute conditions and will return a failure on objects that fails the attribute conditions. This can be invoked by calling the business rules engine:

BusinessRulesHelper.engine.execute("CHANGEABLE_PRE_RELEASE", criteria);



Supported API: true

Extendable: true