We are creating ksession in following way. We are facing concurrency issues like jbpm task are not created sometimes or jbpm tables went in nonresistance state. We are using jbpm5.3.1. What strategy we need to follow to get knowledge session.
1. What are the different options for implementation as KnowledgeBase is not thread safe ?
2. Do we need to flush the sessions explicitly ? Session flush will not create any concurrency issues ?