ChinchuAjith commented on code in PR #6577:
URL: 
https://github.com/apache/incubator-kie-drools/pull/6577#discussion_r2783123964


##########
kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/UnaryTestNode.java:
##########
@@ -224,77 +224,123 @@ static Boolean areElementsEqual(Object left, Object 
right) {
                         () -> Boolean.FALSE)
         );
     }
+    private Object evaluateRightValue(EvaluationContext context, Object left) {
+        Object right;
+        // set the value if the expression contains ('?') question mark
+        if (containsQuestionMarkReference(value)) {
+            Object existing = context.getMapping("?");
+            if (Objects.equals(existing, left)) {
+                right = value.evaluate(context);
+            } else {
+                context.enterFrame();
+                try {
+                    context.setMapping("?", left);

Review Comment:
   Yes @gitgabrio . Thanks for pointing this out. I’ve removed the newly added 
set/getMapping frame and using the existing getValue/setValue frames instead. 



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to