Description of problem: Platform BZ for JBRULES-3155 : Bug with default properties in KnowledgeStoreServiceImpl You cannot overwrite default properties set by KnowledgeStoreServiceImpl. Steps to Reproduce: The following code doesn't affect "drools.processInstanceManagerFactory". Environment env = KnowledgeBaseFactory.newEnvironment(); env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf); Properties properties = new Properties(); properties.put("drools.processInstanceManagerFactory", "com.example.CustomJPAProcessInstanceManagerFactory"); KnowledgeSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration(properties); StatefulKnowledgeSession ksession = JPAKnowledgeService.newStatefulKnowledgeSession(KnowledgeService.getKnowledgeBase(), config, env); Actual results: ksession.getProcessInstanceManagerFactory() returns "org.jbpm.persistence.processinstance.JPAProcessInstanceManagerFactory" And the class is used in the ksession. Expected results: ksession.getProcessInstanceManagerFactory() returns "com.example.CustomJPAProcessInstanceManagerFactory" And the class is used in the ksession.
Mario Fusco <mario.fusco> updated the status of jira JBRULES-3155 to Resolved
Verified in 5.3.1.ER1.
Hi Mario, could you review this bug to see if it should be included in the release notes, and if so provide the release notes content? Thanks Lee
Hi Lee, I just added the content for the release notes. Thanks for having pointed this out. Mario
Thanks Mario!