Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Activate entities by Rules #119

Open
sleipnir opened this issue Feb 20, 2022 · 2 comments
Open

Activate entities by Rules #119

sleipnir opened this issue Feb 20, 2022 · 2 comments
Labels
enhancement New feature or request platform

Comments

@sleipnir
Copy link
Member

This is a feature proposal.

We can add activation rules processing for entities, so we could assess whether a given entity should be activated (called) only if it meets the requirements proposed by the rules.

What should we change for this to work?

  1. Add a rule evaluation engine (options: Drools, Retex, Ruler)
  2. Add a CRD where the user can describe the rules in some kind of language/DSL.
  3. Add the call to the rule evaluation engine to the message dispatching engine, passing the entity as an argument.
@sleipnir sleipnir added enhancement New feature or request platform labels Feb 20, 2022
@marcellanz
Copy link
Member

Interesting option. This could even be "asked" and a function itself can evaluate to the result of the decision. This way any languages or stacks rule evaluation library can provide an implementation.

@sleipnir
Copy link
Member Author

Interesting option. This could even be "asked" and a function itself can evaluate to the result of the decision. This way any languages or stacks rule evaluation library can provide an implementation.

Yes, we can provide it as an adapter.

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

No branches or pull requests

2 participants