Discussion:
[jboss-user] [jBPM] - Re: Jbpm 5 weird behavior starting a process
doboss
2013-01-10 17:45:11 UTC
Permalink
doboss [https://community.jboss.org/people/doboss] created the discussion

"Re: Jbpm 5 weird behavior starting a process"

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

--------------------------------------------------------------
Maybe a shot in the dark, but are you disposing your ksession?
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
roxy1987
2013-01-10 18:16:50 UTC
Permalink
roxy1987 [https://community.jboss.org/people/roxy1987] created the discussion

"Re: Jbpm 5 weird behavior starting a process"

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

--------------------------------------------------------------
nope. Not disposing ksession. I have a static ksession object so that I can use the same over and over again. But it might be a reason for the issue I am having. Is there another way you aware of to just clean the session may be and not kill it?
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
doboss
2013-01-10 18:20:57 UTC
Permalink
doboss [https://community.jboss.org/people/doboss] created the discussion

"Re: Jbpm 5 weird behavior starting a process"

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

--------------------------------------------------------------
Right, I was thinking you *should* be disposing of the ksession (and maybe this is causing multiple processes to get started). You can keep the KnowledgeBase around, and still dispose the KnowledgeSession:



A knowledge base can be shared across sessions and usually is only created once, at the start of the application (as creating a knowledge base can be rather heavy-weight as it involves parsing and compiling the process definitions).  Knowledge bases can be dynamically changed (so you can add or remove processes at runtime).
Sessions can be created based on a knowledge base and are used to execute processes and interact with the engine.  You can create as many independent session as you need and creating a session is considered relatively lightweight.
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
roxy1987
2013-01-10 18:30:20 UTC
Permalink
roxy1987 [https://community.jboss.org/people/roxy1987] created the discussion

"Re: Jbpm 5 weird behavior starting a process"

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

--------------------------------------------------------------
That was some pretty kick ass shooting.. That indeed was the problem. Thanks man.
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
doboss
2013-01-10 18:32:24 UTC
Permalink
doboss [https://community.jboss.org/people/doboss] created the discussion

"Re: Jbpm 5 weird behavior starting a process"

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

--------------------------------------------------------------
Lucky, just got lucky this time. :)

Wow, I think I'll go buy myself a lotto ticket!

Glad to help someone who's been helping others... even if it was just by luck. :)
--------------------------------------------------------------

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

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