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

Allow rules to have optional facts annotated with @Nullable #15

Conversation

nvervelle
Copy link
Contributor

The current code prevents executing a rule if one of the facts listed in the parameters of the condition or the action is missing. It would be nice to be able to modify this behavior so that in some situations missing facts do not prevent the execution of the rule if they are specified as being optional (issue #390).

In this PR I take into account the @Nullable annotation on parameters to consider them as optional.

@dvgaba
Copy link
Owner

dvgaba commented Aug 5, 2022

I have raise a PR against your repo to remove dependency on hard-coded annotation in core.

@dvgaba
Copy link
Owner

dvgaba commented Aug 5, 2022

Merged with minor fixes in #16

@dvgaba dvgaba closed this Aug 5, 2022
@dvgaba
Copy link
Owner

dvgaba commented Aug 5, 2022

@nvervelle
Copy link
Contributor Author

Thanks a lot @dvgaba !

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

Successfully merging this pull request may close these issues.

None yet

2 participants