-
1. Re: Jbpm 5 weird behavior starting a process
roxy1987 Jan 7, 2013 3:17 PM (in response to roxy1987)Logic behind the GUI is correct. Even in the jbpm schema, I can see the same information.
-
2. Re: Jbpm 5 weird behavior starting a process
roxy1987 Jan 10, 2013 11:02 AM (in response to roxy1987)Guys i am still struggling with this issue. Please help. Is tthis a bug?
-
3. Re: Jbpm 5 weird behavior starting a process
doboss Jan 10, 2013 12:45 PM (in response to roxy1987)Maybe a shot in the dark, but are you disposing your ksession?
-
4. Re: Jbpm 5 weird behavior starting a process
roxy1987 Jan 10, 2013 1:16 PM (in response to doboss)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?
-
5. Re: Jbpm 5 weird behavior starting a process
doboss Jan 10, 2013 1:21 PM (in response to roxy1987)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.
From the docs:
{noformat}
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.
{noformat}
-
6. Re: Jbpm 5 weird behavior starting a process
roxy1987 Jan 10, 2013 1:30 PM (in response to doboss)That was some pretty kick ass shooting.. That indeed was the problem. Thanks man.
-
7. Re: Jbpm 5 weird behavior starting a process
doboss Jan 10, 2013 1:32 PM (in response to roxy1987)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.