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

multiple rules in rule descriptor #416

Open
Siktik opened this issue Oct 10, 2023 · 2 comments
Open

multiple rules in rule descriptor #416

Siktik opened this issue Oct 10, 2023 · 2 comments

Comments

@Siktik
Copy link

Siktik commented Oct 10, 2023

hey,

i want to give a customer the possibility to write a .yml file that i read from for the programm. I was wondering if it is possible to have multiple rules in a rule descriptor .yml. In the examples there is always only one rule, if there is a way to read more rules i would really want to know how this could be achieved. Thank you in advance!

@zhhaojie
Copy link
Contributor

zhhaojie commented Oct 19, 2023

Of course it can be supported, you can take a look at this implementation class.

https://github.com/j-easy/easy-rules/blob/master/easy-rules-support/src/main/java/org/jeasy/rules/support/reader/YamlRuleDefinitionReader.java

Finally, load them when your app started.

@Siktik
Copy link
Author

Siktik commented Oct 19, 2023

aah, i was too quick there, found it when studying the yaml definitions. Thank you anyway sir this would have also helped, sure

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

No branches or pull requests

2 participants