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


##########
drools-base/src/main/java/org/drools/base/reteoo/sequencing/signalprocessors/LogicGateOutputSignalProcessor.java:
##########
@@ -46,4 +46,10 @@ protected void reset(SequenceMemory memory, ValueResolver 
valueResolver) {
         // by each downstream LogicGate resetting itself via resetPrior(). 
There is no
         // state held here that needs clearing.
     }
+
+    public void clearParentBit(SequenceMemory memory) {
+        long[] gateMemory = memory.getLogicGateMemory();
+        gateMemory[gate.getGateIndex()] = gateMemory[gate.getGateIndex()] & 
~(1L << (index - 1));
+        memory.setLogicGateMatched(gate.getGateIndex(), false);

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