jruizgit / rules

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

Is it possible to run custom code in run/runAsync? #359

Open radiantone opened 3 years ago

radiantone commented 3 years ago

Hi, Mostly, in the docs here as a consequent to a rule, I see console.log and assert() with some occasional other calls.

In a custom application using rules it is necessary to invoke other objects and fire events to allow business logic to react to the rule. This, to me, would be the whole purpose of a rules engine. To trigger real business logic.

Is this possible? So far, I cannot make calls to in scope objects in a consequent.

Is this by design? Why is this? thank you

introspection3 commented 3 years ago

may be this project closed.

radiantone commented 3 years ago

I made my own rules engine on github. Called inferencegraph

Does what I need