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

[Incubator-kie-issues#1820] Resolve "Missing Conditional element" runtime exception during model execution #6257

Merged
merged 15 commits into from
Feb 20, 2025

Conversation

AthiraHari77
Copy link
Contributor

@AthiraHari77 AthiraHari77 commented Feb 16, 2025

Fixes apache/incubator-kie-issues#1820

This PR aims to fix the runtime exception "Missing Conditional element inside model" thrown while executing a dmn model which has a conditional event present.

How to replicate CI configuration locally?
How to retest this PR or trigger a specific build:
  • for pull request and downstream checks

    • Push a new commit to the PR. An empty commit would be enough.
  • for a full downstream build

    • for github actions job: add the label run_fdb
  • for Jenkins PR check only

@kie-ci3
Copy link

kie-ci3 commented Feb 16, 2025

PR job #2 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

build-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-drools -u #6257 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://ci-builds.apache.org/job/KIE/job/drools/job/main/job/pullrequest_jobs/job/drools-pr/job/PR-6257/2/display/redirect

Test results:

  • PASSED: 23172
  • FAILED: 1

Those are the test failures:

org.kie.dmn.core.impl.DMNRuntimeEventManagerUtilsTest.testConditionalEvent Failed to find file ConditionalEvent.dmn

@kie-ci3
Copy link

kie-ci3 commented Feb 17, 2025

PR job #4 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

build-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-drools -u #6257 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://ci-builds.apache.org/job/KIE/job/drools/job/main/job/pullrequest_jobs/job/drools-pr/job/PR-6257/4/display/redirect

Test results:

  • PASSED: 23173
  • FAILED: 2

Those are the test failures:

org.kie.dmn.core.compiler.DMNEvaluatorCompilerTest.testCompileConditional Failed to find file ConditionalEvent.dmn
org.kie.dmn.core.impl.DMNRuntimeEventManagerUtilsTest.testConditionalEvent Failed to find file ConditionalEvent.dmn

@kie-ci3
Copy link

kie-ci3 commented Feb 17, 2025

PR job #5 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

build-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-drools -u #6257 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://ci-builds.apache.org/job/KIE/job/drools/job/main/job/pullrequest_jobs/job/drools-pr/job/PR-6257/5/display/redirect

Test results:

  • PASSED: 23173
  • FAILED: 2

Those are the test failures:

org.kie.dmn.core.compiler.DMNEvaluatorCompilerTest.testCompileConditional Failed to find file ConditionalEvent.dmn
org.kie.dmn.core.impl.DMNRuntimeEventManagerUtilsTest.testConditionalEvent Failed to find file ConditionalEvent.dmn

Copy link
Contributor

@gitgabrio gitgabrio left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, @AthiraHari77 !
There are minor things to be fixed, but anyway good job!

@AthiraHari77
Copy link
Contributor Author

@gitgabrio I have updated the PR with the changes requested. Please take a look.

@kie-ci3
Copy link

kie-ci3 commented Feb 19, 2025

PR job #8 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

build-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-drools -u #6257 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://ci-builds.apache.org/job/KIE/job/drools/job/main/job/pullrequest_jobs/job/drools-pr/job/PR-6257/8/display/redirect

Test results:

  • PASSED: 23185
  • FAILED: 1

Those are the test failures:

org.kie.dmn.core.impl.DMNRuntimeEventManagerUtilsTest.fireAfterConditionalEvaluation
dMNRuntimeEventListener.afterConditionalEvaluation(

);
Wanted 1 time:
-> at org.kie.dmn.api.core.event.DMNRuntimeEventListener.afterConditionalEvaluation(DMNRuntimeEventListener.java:61)
But was 2 times:
-> at org.kie.dmn.core.impl.DMNRuntimeEventManagerUtils.lambda$fireAfterConditionalEvaluation$15(DMNRuntimeEventManagerUtils.java:165)
-> at org.kie.dmn.core.impl.DMNRuntimeEventManagerUtils.lambda$fireAfterConditionalEvaluation$15(DMNRuntimeEventManagerUtils.java:165)

@gitgabrio gitgabrio changed the title [Incubator kie issues#1820] Resolve the runtime exception during model execution [Incubator kie issues#1820] Resolve "Missing Conditional element" runtime exception during model execution Feb 19, 2025
@jomarko
Copy link
Contributor

jomarko commented Feb 19, 2025

Thank you for this PR!

Copy link
Contributor

@gitgabrio gitgabrio left a comment

Choose a reason for hiding this comment

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

Great job, @AthiraHari77 Thx!

Copy link
Contributor

@yesamer yesamer left a comment

Choose a reason for hiding this comment

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

Thank you @AthiraHari77

@yesamer yesamer changed the title [Incubator kie issues#1820] Resolve "Missing Conditional element" runtime exception during model execution [Incubator-kie-issues#1820] Resolve "Missing Conditional element" runtime exception during model execution Feb 20, 2025
@yesamer yesamer added the DMN label Feb 20, 2025
@yesamer yesamer merged commit 1293f28 into apache:main Feb 20, 2025
13 checks passed
@AthiraHari77 AthiraHari77 deleted the incubator-kie-issues#1820 branch February 20, 2025 09:30
rgdoliveira pushed a commit to rgdoliveira/drools that referenced this pull request Feb 24, 2025
…time exception during model execution (apache#6257)

* [incubator-kie-issues#1820] Fix runtime exception during dmn model execution

* [incubator-kie-issues#1820] Update test cases

* [incubator-kie-issues#1820] Code refactoring

* [incubator-kie-issues#1820] Fix header for dmn file

* [incubator-kie-issues#1820] Fix test cases

* [incubator-kie-issues#1820] Implement recursive retrieval of node by id

* [incubator-kie-issues#1820] Code refactoring

* [incubator-kie-issues#1820] Fix review comments

* [incubator-kie-issues#1820] Fix test cases

---------

Co-authored-by: athira <[email protected]>
Co-authored-by: Gabriele-Cardosi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resolve "Missing Conditional element" runtime exception during model execution
5 participants