public void testJbpmSessionSynchronization(){
log.info("jbpmSessionSynchronization");
TransactionTemplate transactionTemplate = new TransactionTemplate(this.transactionManager);
transactionTemplate.execute(new TransactionCallback() {
public Object doInTransaction(TransactionStatus status) {
JbpmTemplate jbpmTemplate = new JbpmTemplate(jbpmSessionFactory, processDefinition);
jbpmTemplate.execute(new JbpmCallback() {
public Object doInJbpm(JbpmSession session) {
session.getGraphSession().saveProcessDefinition(processDefinition);
return null;
}
});