[jboss-user] [jBPM] - Re: How to save history of the process in a database

Pedro Gonçalves do-not-reply at jboss.com
Wed Jun 20 06:12:28 EDT 2012


Pedro Gonçalves [https://community.jboss.org/people/pgoncalves] created the discussion

"Re: How to save history of the process in a database"

To view the discussion, visit: https://community.jboss.org/message/743019#743019

--------------------------------------------------------------
Just declare it after initialize your knowledge session


StatefulKnowledgeSession kSession = JPAKnowledgeService.newStatefulKnowledgeSession(getKbase(), null, env);
 
JPAWorkingMemoryDbLogger jbpmLogger = new JPAWorkingMemoryDbLogger(kSession);
 
// do stuff (start processes, etc...)
 
jbpmLogger.dispose();
 


Everything should be logged in the database!
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://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/20120620/a3054041/attachment.html 


More information about the jboss-user mailing list