JBoss Community

Need help with persistence and initialisation

created by Thomas Colditz in jBPM - View the full discussion

Hi all,

 

I have some questions wich I cant answer myself. What is the difference when initializing a process instance with Knowledgebuilder/KnowledgeBase/.. or with JBPMHelper and the RuntimeManager? Or better to say, when to use which one?

I just want to use jBPM in my own application. Persistance can be handled first in H2 inmem db. Later it will be handled with other db on a server. But atm I just want to test some process-scenarios. If I setup my process with that knowledgebase/... all events/task will work, but im not able to handle a usertask (cant get it working). If I set it up with JBPMHelper and the RuntimeManger the process always terminates when reaching for example a timer(probably all wait-states). No errors or something. Process just terminates. I think its just some kind of persistence problem, but I cant figure it out.

I'm using jBPM 6.0. The initialization of process is done like in chapter 4 (manual) or in type of JBPMHelper like the given exampleprocess "HumanTaskExample". If I run this example it works. But even if I copy this processfiles (bpmn+java) in own project it wont work.

Can somebody give me a hint?

Reply to this message by going to Community

Start a new discussion in jBPM at Community