You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm doing experiments with this engine, where I'm simulating some real cases in my work and studying possibilities where my current scenario is not able to perform.
Looking deeper into this project, all actions linked to the rules will be executed.
The scenario I'm simulating is: When I have an entity that are parameters of the rule, and I have several rules that there are actions to be executed, I want only the first success/failure match to be executed.
I know that in the library there is a method where I can execute the action in isolation.
My idea is to use it for this purpose, where I can send the only first action decision to external APIs, but the engine is designed to execute all actions when registered in success or not
A quick fix would be to add a non-required boolean parameter in the ExecuteAllRulesAsync method that indicates that we don't want to execute the actions so no action will be performed after all the rules are executed, or add a property in the rule indicating that it is not to execute the given action, so we could have the choice that that rule can execute the action automatically without handling the ExecuteActionWorkflowAsync method for that rule.
The text was updated successfully, but these errors were encountered:
Hi!
I'm doing experiments with this engine, where I'm simulating some real cases in my work and studying possibilities where my current scenario is not able to perform.
Looking deeper into this project, all actions linked to the rules will be executed.
The scenario I'm simulating is: When I have an entity that are parameters of the rule, and I have several rules that there are actions to be executed, I want only the first success/failure match to be executed.
I know that in the library there is a method where I can execute the action in isolation.
My idea is to use it for this purpose, where I can send the only first action decision to external APIs, but the engine is designed to execute all actions when registered in success or not
A quick fix would be to add a non-required boolean parameter in the ExecuteAllRulesAsync method that indicates that we don't want to execute the actions so no action will be performed after all the rules are executed, or add a property in the rule indicating that it is not to execute the given action, so we could have the choice that that rule can execute the action automatically without handling the ExecuteActionWorkflowAsync method for that rule.
The text was updated successfully, but these errors were encountered: