Rikkola opened a new pull request, #7262:
URL: https://github.com/apache/incubator-kie/pull/7262

   
   Fix anchor skip for named consequences placed before a later sequence.
   
   Sequence-step variables are read from SequencerMemory anchors found by 
walking up from the firing terminal, counting `skip` anchors. The skip was 
computed from the rule-wide sequence count, which is only correct for the 
default (last) consequence. A named consequence placed before a later sequence 
has fewer anchors above it, so the skip overshot and the consequence failed 
with "no SequencerMemory anchor found".
   
   Snapshot the number of sequences seen so far when the LHS walk reaches a 
named consequence (plain and conditional when/elseWhen branches), and use that 
snapshot, keyed by consequence name, when computing the skip.
   
   Assisted-by: IBM Bob
   
   


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