Skip to content

Latest commit

 

History

History
60 lines (35 loc) · 967 Bytes

PITCHME.md

File metadata and controls

60 lines (35 loc) · 967 Bytes

(clara-rules)

a rules engine example

lisp warning!


A "stupid programmer" story


Declarative vs imperative

  • mapping from declarative to imperative is not always clear
  • adding new rules often is hard or even is not possible w/o rewriting

Rules engine

---?image=assets/rules_engine.jpg&size=auto 90%


Facts

  • Customer makes a booking
  • Temperature outside is 25˚C
  • Today is Feb 6
  • There were no alert notifications
  • Discount value is 5%

Rules

  • When customer makes a booking on Feb 6, give him a 5% discount
  • When temperature outside is more than 25˚C, fire up an alert

Rete algorithm


Rules for developers


Demo time!


Useful links: