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

Are there future plans to support multiple success or fail actions? #569

Open jerbersoft opened 5 months ago

jerbersoft commented 5 months ago

I know we can just simply use custom actions that will execute any number of actions. however, I am talking about when trying to build a facility to design rules and actions where you have prebuilt actions that you just want to "use" in a chain or parallel fashion.

for example: If a certain rule is satisfied, I want to: a.) change something in the entity and then b.) send an email. These actions are prebuilt that can be reused in different rules and that they can execute in a chain or parallel depending on the config.

I just feel that creating custom actions with predefined multiple actions are like "hardcoding" them.

Are there plans to have this capabilities in the future?

abbasc52 commented 5 months ago

@jerbersoft We dont plan on changing the schema of Actions in workflow json. But we can add a generic action, which takes other actions as input and executes them sequentially.

jerbersoft commented 5 months ago

@abbasc52 thanks for the response. I'm sorry, I don't understand the concept as it does not appear to be in the documentation. How are the Actions passed to the generic action? Through constructor or input parameters or context? Also, I'd like the idea of having to use DI containers when instantiating actions (if that is possible). I understand this is a tall ask but if you can point me to the right direction, I'll take it from there. Cheers.

abbasc52 commented 5 months ago

@jerbersoft sorry, if i was not clear enough, but what i meant is we will add capability of multiple actions.It may take sometime to finalize the design. I will keep this thread up to date

jerbersoft commented 5 months ago

@abbasc52 that would be great. also, since I am actively working on a project that uses Rules Engine, I might be able to help when I can. Do you already have some design documentation in place or anything that I can read in advance? Cheers!

asulwer commented 5 days ago

this project is no longer being maintained. please use my fork as it is being maintained.