oakes / odoyle-rules

A rules engine for Clojure(Script)
The Unlicense
530 stars 20 forks source link

O'Doyle Rules Cookbook #17

Open thomascothran opened 2 years ago

thomascothran commented 2 years ago

I think it would be helpful to document common tips and tricks for using O'Doyle Rules, similar to cookbooks like this

If it is helpful, I can put together a PR with some patterns that have emerged for me while using O'Doyle Rules. Some examples:

oakes commented 2 years ago

That would be excellent. Maybe make it a separate file since the readme is already gigantic :D I'm interested to read what patterns you've come up with. I've been using to build a fairly complex system for my company (i think around 70 rules) and i bet we've come up with similar things. I could add to it as well.

oakes commented 1 year ago

I ended up cutting a release, see the notes here:

https://github.com/oakes/odoyle-rules/releases/tag/1.0.0

The new debugging section shows how to use wrap-rule. I improved the function quite a bit and it now lets you track when individual facts reach each rule.

thomascothran commented 1 year ago

The wrap-rule functionality is great. I've done a little with it, and it's super helpful so far! Thanks @oakes