jruizgit / rules

Durable Rules Engine
MIT License
1.14k stars 209 forks source link

How to pass in objects or reference objects in run/runAsync #358

Open radiantone opened 3 years ago

radiantone commented 3 years ago

Hi, When a rule is triggered, I want to do something useful other than print to console. However, if I try to reference an object that is declared within scope it is always undefined. Is it possible to execute arbitrary functions on scoped objects as result of a rule fire?