Write business rules in a refreshing way
ValidationRule rule = DslSampleModel
Run with your existing JavaBeans
SampleModel beanModel = new SampleModel();
beanModel.setAccount(new Account());
beanModel.getAccount().setPhoneNumber("01 42 90 90 90");
Result result = rule.executeOn(beanModel);
Enjoy the commodities
> rule when ((user birthdate age at today > 18
and account email length is < configuration max email size)
and account country = FR)
and account phone number starts with '+33' validate

> false

> account phone number starts with '+33'
dOOv, a fluent API for typesafe domain model validation
Meet dOOv on GitHub >>
Conference session at Oracle Code Rome, April 4, 2019