When I use JPAKnowledgeService.newStatefulKnowledgeSession following statements are not executed resulting loss of task information.
Hibernate: insert into PeopleAssignments_BAs (task_id, entity_id) values (?, ?)
Hibernate: insert into PeopleAssignments_PotOwners (task_id, entity_id) values (?, ?)
It does not happened with
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();