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


##########
drools-core/src/main/java/org/drools/core/reteoo/SequenceNode.java:
##########
@@ -158,6 +171,28 @@ public void setSequencer(Sequencer sequencer) {
         this.hashcode = calculateHashCode();
     }
 
+    void replayExistingFacts(SequenceNodeMemory memory, ReteEvaluator 
reteEvaluator) {
+        // Only replay when the sequencer was activated by the InitialFact (no 
anchor pattern).
+        // When there is a real anchor, facts that arrived before it must not 
be captured —
+        // that is the documented temporal contract of the sequence API.
+        if (!anchorless) {
+            return;
+        }
+        WorkingMemoryEntryPoint ep = reteEvaluator.getDefaultEntryPoint();
+        for (AlphaAdapter adapter : alphaAdapters) {

Review Comment:
   Acted on.



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