j-easy / easy-rules

The simple, stupid rules engine for Java
https://github.com/j-easy/easy-rules/wiki
MIT License
4.83k stars 1.04k forks source link

Is it possible to define facts in JSon or Yaml ? #387

Open Echopraxium opened 2 years ago

Echopraxium commented 2 years ago

Since Rules Can be defined with a Yaml or JSon descriptor, is it possible to define facts in the same way ? e.g: p: Person p.age = 18

zhhaojie commented 2 years ago

The answer is yes, that‘s what Gson or Jackson does!EasyRule doesn’t care facts came from.