jarlesat opened a new issue, #6579:
URL: https://github.com/apache/incubator-kie-drools/issues/6579

   I can't see that this has been reported. When running a process defined in a 
bpmn file, and that file includes a node of type reusable subprocess, that in 
turn run another process in another bpmn file, it fails immediately with a 
**java.lang.IllegalStateException: Illegal method call. This session was 
previously disposed.**
   
   This is introduced in v10.1.0, and does not happen in v10.0.0 (nor in 
earlier version neither). As far as I can tell this is introduced in a commit, 
5810447b0cbb20e036a9a6f3fec07faa929f2231, that has one single change in the 
code that disposes the kieSession as the last activity in 
RuleFlowGroupRuleTypeEngineImpl::evaluate. The comment says "Dispose KieSession 
after rules execution when using ruleFlowGroup (#3678)",  but that can seems to 
not be a intended behaviour? But I may of cource have missed something :-)
   
   I have included a minimal maven project as a zip file that demonstrates it.
   
   [sample.zip](https://github.com/user-attachments/files/25041549/sample.zip)


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