JBoss Community

Re: only the first human task is being saved in db!

created by Odelya Holiday in jBPM - View the full discussion

I don't use the knowledgesession  however I am debuggin the application and see that it reaches the nodes and also my HumanTask in execute method.

However, the first task is being saved after client.addTask(task, content, null); but not the second one.

 

Here is my log:

 

Hibernate: select hibernate_sequence.nextval from dual

starting

starting set process variables

Hibernate: select hibernate_sequence.nextval from dual

Hibernate: select hibernate_sequence.nextval from dual

[2011:03:68 17:03:325:debug] Message receieved on server : RegisterForEventRequest

[2011:03:68 17:03:328:debug] Arguments : [org.jbpm.task.event.TaskEventKey@3cd7f083, false, com.sintecmedia.handler.OnMediaHumanTaskHandler]

[2011:03:68 17:03:430:debug] Message receieved on server : RegisterForEventRequest

[2011:03:68 17:03:430:debug] Arguments : [org.jbpm.task.event.TaskEventKey@146b59f2, false, com.sintecmedia.handler.OnMediaHumanTaskHandler]

[2011:03:68 17:03:430:debug] Message receieved on server : RegisterForEventRequest

[2011:03:68 17:03:431:debug] Arguments : [org.jbpm.task.event.TaskEventKey@322e53d3, false, com.sintecmedia.handler.OnMediaHumanTaskHandler]

[2011:03:68 17:03:660:debug] Message receieved on server : AddTaskRequest

[2011:03:68 17:03:660:debug] Arguments : [org.jbpm.task.Task@eee9b863, null]

[2011:03:68 17:03:928:debug] Message receieved on client : AddTaskResponse

[2011:03:68 17:03:928:debug] Arguments : [569]

[2011:03:68 17:03:05:debug] Message receieved on server : QueryTaskByWorkItemId

[2011:03:68 17:03:05:debug] Arguments : [568]

[2011:03:68 17:03:304:debug] Message receieved on client : QueryTaskByWorkItemIdResponse

[2011:03:68 17:03:304:debug] Arguments : [org.jbpm.task.Task@b70d6c70]

[2011:03:68 17:03:371:debug] Message receieved on server : OperationRequest

[2011:03:68 17:03:371:debug] Arguments : [Start, 569, ONAIR]

[2011:03:68 17:03:372:debug] Command receieved on server was operation of type: Start

[2011:03:68 17:03:650:debug] Message receieved on server : OperationRequest

[2011:03:68 17:03:650:debug] Arguments : [Complete, 569, ONAIR, null, null]

[2011:03:68 17:03:650:debug] Command receieved on server was operation of type: Complete

MessagingTaskEventListener.taskCompleted 569

Found generic listeners: 1

[2011:03:68 17:03:678:debug] Message receieved on client : EventTriggerResponse

[2011:03:68 17:03:678:debug] Arguments : [org.jbpm.task.event.EventPayload@bbfed9]

[2011:03:68 17:03:704:debug] Message receieved on client : OperationResponse

[2011:03:68 17:03:704:debug] Arguments : []

[2011:03:68 17:03:704:debug] Message receieved on client : OperationResponse

[2011:03:68 17:03:704:debug] Arguments : []

[2011:03:68 17:03:721:debug] Message receieved on server : GetTaskRequest

[2011:03:68 17:03:721:debug] Arguments : [569]

[2011:03:68 17:03:794:debug] Message receieved on client : GetTaskResponse

[2011:03:68 17:03:794:debug] Arguments : [org.jbpm.task.Task@47e46d99]

Notification of completed task 568

This action between human task 1 to human task 2

Hibernate: select hibernate_sequence.nextval from dual

 

In my action between the first human task to the second one I only print This action between human task 1 to human task 2 to show that it reaches there.

 

I debug, and see that it reaches the second task but after

client.addTask(task, content, null) it doesn't save to db like the first one.

Reply to this message by going to Community

Start a new discussion in jBPM at Community