-
1. Persisted human tasks do not trigger workitem complete
bpmn2user Apr 12, 2011 10:51 AM (in response to robert.atherton)Could you post the code sample you have used for the workitem?
-
2. Re: Persisted human tasks do not trigger workitem complete
robert.atherton Apr 12, 2011 12:54 PM (in response to bpmn2user)I am using the CommandBasedWSHumanTaskHandler class that is provided by jbpm-human-task-5.1-SNAPSHOT.jar. Attached are the configuration files, and the classes for managing the knowledgebase and mina server.
-
MinaServerManager.java.zip 2.6 KB
-
task-orm.xml 14.2 KB
-
jbpm-orm.xml 592 bytes
-
persistence.xml 3.8 KB
-
-
3. Persisted human tasks do not trigger workitem complete
bpmn2user Apr 13, 2011 1:15 PM (in response to robert.atherton)Robert Atherton:
I am trying to understand and reproduce the problem. I will start with the simple example in http://community.jboss.org/people/bpmn2user/blog/2011/03/25/jbpm5--persistence-hello-process-example and see if I can reproduce the issue.
How do I proceed to re-create the problem?
1.) Start the task server (TaskServer.java).
2.) Start the tasks (e.g modify the code in ProcessTest.java) and shutdown the task server before completing the tasks.
3.) Start the task server and see if the task started in Step2 can be completed (i.e status is set to 'Completed' in database)
-
4. Persisted human tasks do not trigger workitem complete
robert.atherton Apr 17, 2011 9:27 AM (in response to bpmn2user)Yes those steps are correct, but there is also a 4th step, verify that the bpm continues to the next task once the human task is completed. Currently step 4 is what is faililng for me.
-
5. Persisted human tasks do not trigger workitem complete
salaboy21 Apr 17, 2011 9:54 AM (in response to robert.atherton)What's exactly the problem? Are you sure that you have the knowledge session that creates the process in memory, so it can be notified?
Greetings.
-
6. Persisted human tasks do not trigger workitem complete
robert.atherton Apr 18, 2011 8:40 AM (in response to salaboy21)If the configured persistence does not automatically load the persisted sessions, then no I am not loading the session. From what I read, it looks like I need to use JPAKnowledgeService.newStatefulKnowledgeSession, but it requires the persisted sessions id. What is the best way to get a list of persisted session ids?
Thanks,
-
7. Persisted human tasks do not trigger workitem complete
bpmn2user Apr 25, 2011 4:26 PM (in response to robert.atherton)Robert,
Also please note that task handler connects to the task service using a lazy connection approach.
You, however, can connect immediately so that you retrieve the task completion events even before the first task is created. To instantiate the listener using this approach you might modifying your code like this:
CommandBasedWSHumanTaskHandler taskHandler = new CommandBasedWSHumanTaskHandler(ksession);
ksession.getWorkItemManager().registerWorkItemHandler("Human Task",taskHandler);
taskHandler.connect();