Rikkola commented on code in PR #7160:
URL: https://github.com/apache/incubator-kie/pull/7160#discussion_r4193213511


##########
drools-base/src/main/java/org/drools/base/reteoo/sequencing/signalprocessors/LogicGate.java:
##########
@@ -97,19 +118,24 @@ public void resetPrior(SequenceMemory memory, 
ValueResolver valueResolver) {
             gate.reset(memory, valueResolver);
         }
 
-        memory.resetLogicGateMemory(gateIndex, valueResolver);
+        if (!statusCanRevert) {
+            memory.resetLogicGateMemory(gateIndex, valueResolver);
+        }
     }
 
     public void reset(SequenceMemory memory, ValueResolver valueResolver) {
         resetPrior(memory, valueResolver);
         output.reset(memory, valueResolver);
     }
 
-    public void activate(SequenceMemory memory) {
+    public void activate(SequenceMemory memory, ValueResolver valueResolver) {
         for (int i = 0; i < filterIndexes.length; i++) {
             memory.activateSignalAdapter(filterIndexes[i], this, 
signalAdapterIndexes[i], i + 1); // bit indexes start at 1
         }
-
+        if (predicate.test(0L, allMatched)) {

Review Comment:
   Fixed



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