microsoft / RulesEngine

A Json based Rules Engine with extensive Dynamic expression support
https://microsoft.github.io/RulesEngine/
MIT License
3.47k stars 528 forks source link

Is it possible to get the RulesEngine instance in the custom Action? #564

Open daxnet opened 6 months ago

daxnet commented 6 months ago

Currently, in the custom Actions, within the Run method, there is no way of getting the instance of the RulesEngine, ActionContext also doesn't supply a property/method of referencing the RulesEngine instance. Is it possible to do that?

abbasc52 commented 6 months ago

@daxnet Currently it is not possible to pass same RulesEngine instance to a custom action but it is possible to pass a different instance.

Can you share your requirement? it will help us identify the need to access RulesEngine instance in an action.