-
1. Re: how to fire rules after human task!!!
eaa Jun 6, 2011 7:20 AM (in response to houxiaojun)You can use ksession.fireUntilHalt() before you start your process. Something like this:
new Thread(new Runnable() { public void run() { ksession.fireUntilHalt(); } }).start(); ksession.startProcess("processId");
fireUntilHalt() will fire whenever a rule gets activated.
-
2. Re: how to fire rules after human task!!!
houxiaojun Jun 7, 2011 3:16 AM (in response to eaa)Thank you very much for your answer.My problem has been solved successfullly.But now i have another one,sometimes when i start a process,the database has the saved the related task successfully.But when i complete the task through the human task view,in the console,information will be printed just like this:
[2011:06:158 15:06:580:debug] Message receieved on client : AddTaskResponse
[2011:06:158 15:06:581:debug] Arguments : [5]
[2011:06:158 15:06:743:debug] Message receieved on client : EventTriggerResponse
[2011:06:158 15:06:743:debug] Arguments : [org.jbpm.task.event.EventPayload@98bbf6]
Task completed 5
[2011:06:158 15:06:745:debug] Message receieved on client : EventTriggerResponse
[2011:06:158 15:06:745:debug] Arguments : [org.jbpm.task.event.EventPayload@147e668]
[2011:06:158 15:06:745:debug] Message receieved on client : EventTriggerResponse
[2011:06:158 15:06:746:debug] Arguments : [org.jbpm.task.event.EventPayload@167c5e3]
[2011:06:158 15:06:747:debug] Message receieved on client : EventTriggerResponse
[2011:06:158 15:06:750:debug] Arguments : [org.jbpm.task.event.EventPayload@1f0cf51]
Task completed 5
[2011:06:158 15:06:751:debug] Message receieved on client : EventTriggerResponse
[2011:06:158 15:06:751:debug] Arguments : [org.jbpm.task.event.EventPayload@c9b196]
Task completed 5
[2011:06:158 15:06:805:debug] Message receieved on client : GetTaskResponse
[2011:06:158 15:06:805:debug] Arguments : [javax.persistence.EntityNotFoundException: No Task with ID 5 was found!]
[2011:06:158 15:06:806:debug] Message receieved on client : GetTaskResponse
[2011:06:158 15:06:806:debug] Arguments : [javax.persistence.EntityNotFoundException: No Task with ID 5 was found!]
[2011:06:158 15:06:807:debug] Message receieved on client : GetTaskResponse
[2011:06:158 15:06:807:debug] Arguments : [javax.persistence.EntityNotFoundException: No Task with ID 5 was found!]
By the way,the task with id 5 shows completed in the database.Can you help me with this?
-
3. Re: how to fire rules after human task!!!
leon_ Jun 20, 2011 3:16 AM (in response to houxiaojun)Check your BPMN proces in eclipse and see if the ID's of the components are all set right. In particular look if the human task that succeeds your rule-task is task 5. Otherwise rename it :-)