gigazhang [
https://community.jboss.org/people/gigazhang] created the discussion
"Re: KnowledgeStoreServiceImpl.buildCommandService
java.lang.reflect.InvocationTargetException"
To view the discussion, visit:
https://community.jboss.org/message/742603#742603
--------------------------------------------------------------
5.3.0.Final
when I do so:
KnowledgeBase kbase = readKnowledgeBase(url);
// 创建EntityManagerFactory
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, entityManagerFactory);
env.set(EnvironmentName.TRANSACTION_MANAGER, transactionManager);
env.set(EnvironmentName.GLOBALS, new MapGlobalResolver());
Properties properties = new Properties();
properties.put("drools.processInstanceManagerFactory",
"org.jbpm.persistence.processinstance.JPAProcessInstanceManagerFactory");
properties.put("drools.processSignalManagerFactory",
"org.jbpm.persistence.processinstance.JPASignalManagerFactory");
KnowledgeSessionConfiguration config =
KnowledgeBaseFactory.newKnowledgeSessionConfiguration(properties);
return JPAKnowledgeService.newStatefulKnowledgeSession(kbase, config, env);
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/742603#742603]
Start a new discussion in jBPM Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]