Fail to create executable model

79 views
Skip to first unread message

Ricardo Martins

unread,
Sep 13, 2021, 8:27:33 AM9/13/21
to Drools Usage
Hi,

I have a scenario where it's needed to evaluate data from Map<String, Map<String, String>>.
There is a DSL for this purpose and currently works like it should, since the amount of rules in my project is getting huge I want to use an executable model.

To reproduce this scenario I used troubleticket drools example and it's available at drools-test

As said before, rule works as expected when running TroubleTicketExampleWithDSL, but when running maven clean package to generate the executable model I got the following error:

[ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.59.0.Final:generateModel (default-generateModel) on project drools-test: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.59.0.Final:generateModel failed: Unable to get KieModule, Errors Existed: Error Messages:
[ERROR] Message [id=1, kieBase=TroubleTicketWithDSLKB, level=ERROR, path=org/drools/examples/troubleticketWithDSL/TroubleTicketWithDSL.dslr, line=-1, column=0
[ERROR]    text=Unable to parse left part of expression: complexOptions["COMPLEX_OPTION"]["OPTION_1"]=="VALUE_1"]

Also, full mvn log is attached.

I'm wondering if I have to change my DSL in order to create an executable model, or my approach to use executable model is not correct?

Thanks in advance

Ricardo
mvn-drools-test.log

Luca Molteni

unread,
Sep 13, 2021, 9:17:40 AM9/13/21
to drools...@googlegroups.com


> On 13 Sep 2021, at 14:27, Ricardo Martins <ric...@gmail.com> wrote:
>
> I'm wondering if I have to change my DSL in order to create an executable model, or my approach to use executable model is not correct?
>
> Thanks in advance
>
> Ricardo
>
>


Ricardo please create a JIRA on https://issues.redhat.com/secure/Dashboard.jspa so that we can track it.

Thank you for the project


Luca

Ricardo Martins

unread,
Sep 13, 2021, 10:03:08 AM9/13/21
to Drools Usage
Hi Luca, thanks for your answer.

I've just created https://issues.redhat.com/browse/DROOLS-6599 as a task, not sure if it's a bug or not.

Regards,

Ricardo
Reply all
Reply to author
Forward
0 new messages