gitgabrio commented on code in PR #2253:
URL: 
https://github.com/apache/incubator-kie-kogito-apps/pull/2253#discussion_r2282723431


##########
jitexecutor/jitexecutor-dmn/src/main/java/org/kie/kogito/jitexecutor/dmn/DMNEvaluator.java:
##########
@@ -191,9 +192,10 @@ public Collection<DMNModel> getAllDMNModels() {
         return dmnRuntime.getModels();
     }
 
-    public JITDMNResult evaluate(Map<String, Object> context) {
+    public JITDMNResult evaluate(Map<String, Object> context, boolean 
isStrictMode) {
         DMNContext dmnContext =
                 new DynamicDMNContextBuilder(dmnRuntime.newContext(), 
dmnModel).populateContextWith(context);
+        ((DMNRuntimeImpl) this.dmnRuntime).setOption(new 
RuntimeModeOption(isStrictMode ? RuntimeModeOption.MODE.STRICT : 
RuntimeModeOption.MODE.LENIENT));

Review Comment:
   👍 



##########
jitexecutor/jitexecutor-common/src/main/java/org/kie/kogito/jitexecutor/common/requests/MultipleResourcesPayload.java:
##########
@@ -33,6 +34,12 @@ public MultipleResourcesPayload(String mainURI, 
List<ResourceWithURI> resources)
         this.resources = resources;
     }
 
+    public MultipleResourcesPayload(String mainURI, List<ResourceWithURI> 
resources, boolean isStrictMode) {

Review Comment:
   👍 



-- 
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