[JBoss JIRA] (DROOLS-3800) Parser error with executable-model on Map literal expression in constraint
by Luca Molteni (Jira)
[ https://issues.jboss.org/browse/DROOLS-3800?page=com.atlassian.jira.plugi... ]
Luca Molteni updated DROOLS-3800:
---------------------------------
Sprint: 2019 Week 14-16
> Parser error with executable-model on Map literal expression in constraint
> --------------------------------------------------------------------------
>
> Key: DROOLS-3800
> URL: https://issues.jboss.org/browse/DROOLS-3800
> Project: Drools
> Issue Type: Bug
> Components: executable model
> Affects Versions: 7.18.0.Final
> Environment: 7.18.0.Final
> 7.18.0.Final-redhat-00002 (RHDM7.3.0)
> 7.14.0.Final-redhat-00004 (RHDM7.1.2)
> Reporter: Hiroko Miura
> Assignee: Luca Molteni
> Priority: Major
> Labels: support
> Attachments: MapLiteralTest.zip
>
>
> When MAP literal expression is used in LHS like the following
> {noformat}
> when
> $fact: Fact(
> calc(["src":name, "target":"TEST"])
> )
> ...
> {noformat}
> KieBase build as Executable Model fails with parser error like:
> {noformat}
> org.drools.javaparser.ParseProblemException:
> Encountered unexpected token: "[" "["
> at line 1, column 6.
> Was expecting one of:
> ")"
> {noformat}
> This error does not happen when building this rule as normal kjar.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 6 months
[JBoss JIRA] (DROOLS-3815) Remove duplicated code in DMN validator
by Tibor Zimanyi (Jira)
[ https://issues.jboss.org/browse/DROOLS-3815?page=com.atlassian.jira.plugi... ]
Tibor Zimanyi updated DROOLS-3815:
----------------------------------
Description:
There is some code duplication in DMN validator code. E.g. in class DMNDTAnalyser. These duplications should be refactored, so the code is maintainable more easily.
Deliverables:
- No code in kie-dmn-validation is marked as duplicate when doing static analysis of the code.
was:There is some code duplication in DMN validator code. E.g. in class DMNDTAnalyser. These duplications should be refactored, so the code is maintainable more easily.
> Remove duplicated code in DMN validator
> ---------------------------------------
>
> Key: DROOLS-3815
> URL: https://issues.jboss.org/browse/DROOLS-3815
> Project: Drools
> Issue Type: Task
> Components: dmn engine
> Affects Versions: 7.19.0.Final
> Reporter: Tibor Zimanyi
> Assignee: Tibor Zimanyi
> Priority: Major
>
> There is some code duplication in DMN validator code. E.g. in class DMNDTAnalyser. These duplications should be refactored, so the code is maintainable more easily.
> Deliverables:
> - No code in kie-dmn-validation is marked as duplicate when doing static analysis of the code.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 6 months
[JBoss JIRA] (DROOLS-3815) Remove duplicated code in DMN validator
by Tibor Zimanyi (Jira)
Tibor Zimanyi created DROOLS-3815:
-------------------------------------
Summary: Remove duplicated code in DMN validator
Key: DROOLS-3815
URL: https://issues.jboss.org/browse/DROOLS-3815
Project: Drools
Issue Type: Task
Components: dmn engine
Affects Versions: 7.19.0.Final
Reporter: Tibor Zimanyi
Assignee: Tibor Zimanyi
There is some code duplication in DMN validator code. E.g. in class DMNDTAnalyser. These duplications should be refactored, so the code is maintainable more easily.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 6 months
[JBoss JIRA] (DROOLS-3811) Refactor expression evaluator for Rule and DMN
by Daniele Zonca (Jira)
Daniele Zonca created DROOLS-3811:
-------------------------------------
Summary: Refactor expression evaluator for Rule and DMN
Key: DROOLS-3811
URL: https://issues.jboss.org/browse/DROOLS-3811
Project: Drools
Issue Type: Enhancement
Components: Scenario Simulation and Testing
Reporter: Daniele Zonca
Assignee: Daniele Zonca
Rename methods and tests in both expression evaluator as follow:
- evaluate -> evaluateUnaryExpression
- getValueForGiven -> evaluateLiteralExpression
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 6 months