You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "tkobayas (via GitHub)" <gi...@apache.org> on 2023/11/10 08:50:23 UTC

[I] executable modes doesn't resolve mvel field access in case of ternary expression [incubator-kie-issues]

tkobayas opened a new issue, #691:
URL: https://github.com/apache/incubator-kie-issues/issues/691

   ```
   dialect "mvel"
   
   rule "Rule 1"
       when
           $fact : Fact()
       then
           System.out.print("***** " + drools.getRule().getName() + ": $fact.value=" + $fact.value);
           System.out.print("" + ($fact.value == null ? 0 : $fact.value));
           System.out.println();
   end
   ```
   fails with executable model
   ```
   [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.67.0.Final-redhat-00024:generateModel (default-generateModel) on project reproducer_notvisible_1a: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.67.0.Final-redhat-00024:generateModel failed: [com/example/reproducer/PD7/LambdaConsequenceD762AB9A0B33306E21FE8BA6DA511CCB.java (22:1025) : The field Fact.value is not visible, com/example/reproducer/PD7/LambdaConsequenceD762AB9A0B33306E21FE8BA6DA511CCB.java (22:1051) : The field Fact.value is not visible] -> [Help 1]
   ```
   
   **Acceptance Criteria**
   - Add a test case
   - Resolve the access to Java getter


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org