Description of problem:
Platform BZ for https://issues.jboss.org/browse/JBPM-4422
Steps to Reproduce:
1. See unit tests in the pull request referred in JBPM-4422
ksession.abortProcessInstance() throws "java.lang.IllegalStateException: Invalid session was used for this context org.kie.internal.runtime.manager.context.ProcessInstanceIdContext"
Parent/Sub processes are aborted without Exception.
Maciej Swiderski <email@example.com> updated the status of jira JBPM-4422 to Resolved
fixed on master by making sure correct ksession/runtime engine is used
I used the provided unit test and it passes with BPMS 6.1.0.DR3.
However, I've tried to reproduce the problem with BPMS 6.1.0.DR2 (sync-6.2.x-2014.08.08) and the test still passed, therefore I am not sure if the reproducer  is valid and verified the problem correctly.
I've also tried to import files BPMN2-DependentCallActivity.bpmn2 and BPMN2-DependentCallActivitySubProcess.bpmn2 into business central of version 6.1.0.DR2 and 6.0.2.CR2 and still was unable to reproduce the issue. (Btw I only had to fix bpmndi reference to 'DependentParentProcess' and 'DependentSubProcess' before import, otherwise designer refused the files). I've tried to run the parent process and abort it, but still I couldn't see any exceptions nor problems.
Toshiya, can you please check on your end that the fix works as you want with DR3 build ?
You can also try my DR3 'reproducer' based on your one:
git clone firstname.lastname@example.org:bxms/brms.git
mvn clean install -Dtest=BZ1128597PpiManagerWithDependentSubprocessTest -Pjbpm-regression
Verified in BPMS 6.1.0.DR3.
Please ignore my previous comment. I forgot to change dependency version on two places in pom.xml.
Test regression has been added: