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

Junit test for duplicate rule invocations #75

Merged
merged 3 commits into from
Nov 8, 2022

Conversation

seime
Copy link
Collaborator

@seime seime commented Nov 4, 2022

This test fails.

The test defines 2 overlapping JRuleWhen-conditions.
A single event is fired - which matches both conditions.

Currently we invoke the rule method twice.

I would argue a single invocation is correct, but this is not a bug but a design decision.

@querdenker2k @seaside1

@querdenker2k
Copy link
Collaborator

Yes I think one event should trigger one execution

@seaside1
Copy link
Owner

seaside1 commented Nov 5, 2022

And I agree should be triggered once. Possibly we could add something in the annotation to tell that it can trigger multiple times, but I don't see any personal need for it at least.

Copy link
Collaborator

@querdenker2k querdenker2k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one small thing

@seime seime merged commit b02a076 into seaside1:main Nov 8, 2022
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.

3 participants