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

Cannot include models: I get a "failed to import" when running a test with imported models #1627

Open
gbuckholtz opened this issue Nov 19, 2024 · 2 comments
Assignees
Labels
area:engine Related to the runtime engines area:test-scenario Related to Test Scenario (scesim) type:bug Something is behaving unexpectedly

Comments

@gbuckholtz
Copy link

gbuckholtz commented Nov 19, 2024

  • Both models exist in the same directory
  • Both models open with no errors
  • The model will import with no errors
  • The test works if I simply change the drools version to 9.4.4.0.Final with no other changes
  • The scesim test will fail with the following output:
2024-11-19 11:14:23,499 [main] INFO  No executable model found for artifact ca.queensu:sror:1.0-SNAPSHOT. Falling back to resources parsing.
2024-11-19 11:14:23,925 [main] INFO  Start creation of KieBase: defaultKieBase
2024-11-19 11:14:24,350 [main] ERROR DMN Model with name=gror and namespace=https://kiegroup.org/dmn/_676F9720-3A0C-4EAD-9D0A-A68E7016CED7 failed to import a DMN with namespace=https://kiegroup.org/dmn/_691425E9-D743-4F6F-9019-2607F6766BFD name=SROR locationURI=sror.dmn, modelName=null.
2024-11-19 11:14:25,066 [main] ERROR Error compiling FEEL expression 'Consecutive Years Taught(Term Adjunct.courses_Taught,SROR.Academic Year(today()))' for name 'Served 4 Consecutive Years as Term Adjunct' on node 'Served 4 Consecutive Years as Term Adjunct': Unknown variable 'SROR'

(I had to change the extension to .txt to attach)
gror.txt
sror.txt

SRORDecision.txt

@yesamer yesamer self-assigned this Nov 19, 2024
@yesamer
Copy link

yesamer commented Nov 19, 2024

The test works if I simply change the drools version to 9.44.0.Final with no other changes
@gbuckholtz Thank you for sharing. Not clear to me which is the drools version that makes the test fail.

@yesamer yesamer added area:engine Related to the runtime engines area:test-scenario Related to Test Scenario (scesim) type:bug Something is behaving unexpectedly labels Nov 19, 2024
@gbuckholtz
Copy link
Author

gbuckholtz commented Nov 19, 2024

Sorry, it is 999-SNAPSHOT that is causing the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:engine Related to the runtime engines area:test-scenario Related to Test Scenario (scesim) type:bug Something is behaving unexpectedly
Projects
None yet
Development

No branches or pull requests

2 participants