Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can support rule interceptors and dynamically query to populate the context before executing the rule? #533

Open
contione opened this issue Sep 21, 2023 · 3 comments

Comments

@contione
Copy link

No description provided.

@abbasc52
Copy link
Contributor

abbasc52 commented Oct 8, 2023

@contione Can you provide more details on this? Also if you can share some example of expected behavior it will help

@ericsalim
Copy link

Hi, I'm not the issue opener, but I have a similar need. I need to log the execution time for each rule. I'm thinking about adding pre and post execution hooks for each rule.

var rule = new Rule
{
    RuleName = "Example rule",
    PreExecution = _ => Debug.WriteLine(DateTime.UtcNow),
    PostExecution = _ => Debug.WriteLine(DateTime.UtcNow);
};

Is it possible do this or something similar to this?

@contione
Copy link
Author

contione commented Nov 6, 2023

@contione Can you provide more details on this? Also if you can share some example of expected behavior it will help

I noticed that RulesEngine mentions workflow, and it may require querying data from a database before executing the process in order to determine the next step and achieve a simplified version of a dynamic workflow. Currently, I have implemented my own simplified version, so I haven’t been able to utilize RulesEngine yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants