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

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

Open
jerbersoft opened this issue Jan 9, 2024 · 5 comments
Open
Labels
enhancement New feature or request

Comments

@jerbersoft
Copy link

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
Copy link
Contributor

abbasc52 commented Jan 12, 2024

@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.

@abbasc52 abbasc52 added the enhancement New feature or request label Jan 12, 2024
@jerbersoft
Copy link
Author

@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
Copy link
Contributor

@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
Copy link
Author

@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
Copy link

asulwer commented Jun 27, 2024

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

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

No branches or pull requests

3 participants