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

DROOLS-2628: [DMN Designer] DataInput toolbox actions #1919

Merged
merged 1 commit into from
Jun 27, 2018
Merged

DROOLS-2628: [DMN Designer] DataInput toolbox actions #1919

merged 1 commit into from
Jun 27, 2018

Conversation

manstis
Copy link
Member

@manstis manstis commented Jun 26, 2018

See https://issues.jboss.org/browse/DROOLS-2628

@romartin The issue was that the anyMatch(..) in isSourceConnectionAllowed(..) results in ALL permitted connections matching and hence the target role for all source node types are collected. I've modified the code to get permitted connections whose startRole matches the source node's role(s) and then collect the endRole. This fixes DMN and fixes all Unit Tests that broke as a result of adding the extra permitted connection in DomainLookupFunctionsTest.

@manstis manstis requested review from romartin and jomarko June 26, 2018 19:57
@manstis
Copy link
Member Author

manstis commented Jun 26, 2018

@romartin I kept isSourceConnectionAllowed(..) as it is public static and might be used elsewhere and it's purpose is still valid - it checks if a Rule supports a source node role as connection start point.

Copy link
Contributor

@romartin romartin left a comment

Choose a reason for hiding this comment

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

Ohh good catch @manstis yeah! It makes sense for me! sorry, it was my fault.. :)
Thanks!! 👍

@manstis manstis merged commit 019f48e into kiegroup:master Jun 27, 2018
jomarko pushed a commit to jomarko/kie-wb-common that referenced this pull request Aug 3, 2018
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