[jboss-user] [jBPM] - Re: Configuring JBPM 5 with other databases

Kris Verlaenen do-not-reply at jboss.com
Wed Jan 5 20:06:10 EST 2011


Kris Verlaenen [http://community.jboss.org/people/KrisVerlaenen] created the discussion

"Re: Configuring JBPM 5 with other databases"

To view the discussion, visit: http://community.jboss.org/message/579172#579172

--------------------------------------------------------------
In jBPM 5.0 CR1 you still need to configure Drools to use jBPM5 instead of the old Drools Flow (note that this is no longer necessary in the latest jBPM5 snapshot as Drools has now also updated to jBPM5), here is how you should create your session (with JPA persistence):

        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);

In jBPM5 snapshot, you can just use what you were using.

Kris
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/579172#579172]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110105/b2349f48/attachment.html 


More information about the jboss-user mailing list