[jboss-dev-forums] [jBPM Development] - Re: Can I show my apps' knowledge session in the jBPM Console?
Jim B
do-not-reply at jboss.com
Mon Apr 29 17:02:09 EDT 2013
Jim B [https://community.jboss.org/people/jamesbeam] created the discussion
"Re: Can I show my apps' knowledge session in the jBPM Console?"
To view the discussion, visit: https://community.jboss.org/message/810851#810851
--------------------------------------------------------------
In case anyone is trying to do the same thing, I've got this largely going now. The big piece I was missing is that the console is just using the logs, so as long as I log to the same DB the console is using (with JPAWorkingMemoryDbLogger) everything pretty much automagically works. I use either JBPMHelper.newStatefulKnowledgeSession(kbase) (if I start from my app) or JBPMHelper.loadStatefulKnowledgeSession(kbase, sessionId) if I want to use the knowledge session started from the Console. Also, I don't dispose of the session of course if I am borowing the Console's. I read somewhere that you can give the session a business id (and soon do the same from your own code so that they automatically use the same session), but currently I have a kludge that just assume the highest session is the one from the Console (if I want to borrow that one).
Hope that helps someone.
-J
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/810851#810851]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130429/4e0ed3cd/attachment.html
More information about the jboss-dev-forums
mailing list