apache / incubator-kie-drools

Drools is a rule engine, DMN engine and complex event processing (CEP) engine for Java.
http://www.drools.org
Apache License 2.0
5.89k stars 2.5k forks source link

Decision Service cannot be recognized in output columns of decision table #6058

Open dmitry-buykin opened 2 months ago

dmitry-buykin commented 2 months ago
image

Validator throws error: DECISION_TABLE_ANALYSIS_ERROR: Skipped Decision Table Analysis of table 'PayersByCountry' because: Name of function is not instance of NameRefNode!FunctionInvocationNode{CountryAD.CountryAD(Input)}

Evaluation of such imported decision services works fine without issues, it's only validation broken. It doesn't work for imported or internal decision services. Both cases are failing.

yesamer commented 2 months ago

Hi @dmitry-buykin, thank you for reporting that. Can you please share a reproducer for that issue? If your asset contains sensitive data, you can just create a fake DMN file with minimal info just to reproduce the same issue. Thank you.

jomarko commented 2 months ago

@yesamer I double-checked the issue is my favorite topic - DMN. I can confirm it is reproducible, I am attaching the reproducer.

CountryAD model

CountryAD.dmn.txt

Main model

main.dmn.txt

Screenshot 2024-08-30 071806

Due to the message in DMN Runner panel, I tend to think one piece of fix is needed in the drools repository. However, in the ticket https://github.com/apache/incubator-kie-tools/issues/2549 we can notice also FEEL Syntax highlighting is not working, notice the red text. We need to check if tooling syntax highlighting is independent of https://github.com/apache/incubator-kie-drools/issues/6058 or once it is fixed also the tooling will be fine.