Try the code below. please note that there are other events you can use.
ksession.addEventListener(new DefaultProcessEventListener() {
@Override
public void afterProcessCompleted(ProcessCompletedEvent pce) {
public void afterProcessCompleted(ProcessCompletedEvent pce)
{
//Do my work here
}
});
Reply to this message by going to Community
Start a new discussion in jBPM Development at Community