Thanks for a quick reply Maciej.
I have tried using StatefulKnowledgeSession.
StatefulKnowledgeSession ksession = createKnowledgeSession(kBase);
But it returns me an empty string always. May be I am not creating the session well?
What I am doing is the following.
I am mostly doing hit and trial as the version is pretty different from previous one and I am in a little bit if a hasty situation with the project. I am guessing that the WorkItemHandler should not be registered as string Human Task? but it works with starting the process so may be.
Anyway may be you could help with this. Thanks a million.
1 of 1 people found this helpful
so you want to list processes or process instances?
for processes use kBase.getProcesses()
for process instances you should enable history log and then use query methods to get active process instances from log entries as (you already noticed) runtime will load process instance only when it's needed - while it being executed.
No. I am looking for process instances, whether running, completed or terminated. Could you please tell me how the history logging is enabled? Thanks.
Thanks Maciej. You should start coming here more regularly. People wont have trouble getting jBPM5
Thanks a lot man.
trying to be as often as possible