SUNILathulya opened a new pull request, #6865:
URL: https://github.com/apache/incubator-kie-drools/pull/6865

   Closes https://github.com/apache/incubator-kie-issues/issues/2384 and 
https://github.com/apache/incubator-kie-issues/issues/2363
   
   ## Root Cause
   
   RuleFlowProcessFactory.linkBoundaryEvents() handled Timer, Signal, and Error 
boundary events but did not handle Escalation boundary events. As a result, the 
CancelNodeInstanceAction was never registered, so the subprocess was not 
cancelled when the escalation event was triggered.
   nodeInstanceCompleted() depended on isAutoComplete() to complete the 
process. Since standard BPMN processes have autoComplete=false by default, 
reaching the end node after the escalation path did not complete the process.
   
   ## Fix
   
   Added linkBoundaryEscalationEvent() in RuleFlowProcessFactory to register 
the cancellation action for interrupting Escalation Boundary Events.
   Updated nodeInstanceCompleted() to complete the process when an 
EndNodeInstance or FaultNodeInstance finishes and canComplete() returns true, 
without requiring isAutoComplete().
   Added a nodeInstanceCancelled() callback in NodeInstanceContainer to 
re-evaluate process completion when a child node is cancelled.
   Migrated testEscalationBoundaryEventInterrupting and 
testInterruptingEscalationBoundaryEventOnTask from the v7 API to the v9 API.


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