This content has been marked as final.
Show 2 replies
-
1. Re: jbpm6 session management
c00823ue Mar 23, 2015 4:54 AM (in response to c00823ue)I use two call activities in bpmn process file. I put a script task right before end event (Terminate) of parent process. The follwing is the content of script task.
System.out.println("kcontext dispose session"); kcontext.getKieRuntime().dispose();
However, I got the error
Caused by: java.lang.IllegalStateException: Illegal method call. This session was previously disposed.
Why session is already disposed? The error log is attached.
Thanks!
-
error log.txt.zip 6.0 KB
-
-
2. Re: jbpm6 session management
swiderski.maciej Mar 24, 2015 2:35 AM (in response to c00823ue)whenever you use runtime manager you should use disposeRuntimeEngine on manager which will dispose the ksession internally. Alternatively you can get runtime manager within active JTA transaction the runtime engine will be disposed automatically at transaction completion.
HTH