All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jbpm.session.DisposeSessionTransactionSynchronization Maven / Gradle / Ivy

There is a newer version: 7.74.1.Final
Show newest version
package org.jbpm.session;

import org.drools.persistence.TransactionSynchronization;
import org.kie.runtime.StatefulKnowledgeSession;

/**
 * M
 */
public class DisposeSessionTransactionSynchronization implements TransactionSynchronization {

	private StatefulKnowledgeSession ksession;
	
	public DisposeSessionTransactionSynchronization(StatefulKnowledgeSession ksession) {
		this.ksession = ksession;
	}
	
	public void beforeCompletion() {
	}

	public void afterCompletion(int status) {
		ksession.dispose();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy