<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: only the first human task is being saved in db!
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/odelyaholiday">Odelya Holiday</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/592185#592185">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>I don't use the knowledgesession&#160; however I am debuggin the application and see that it reaches the nodes and also my HumanTask in execute method.</p><p>However, the first task is being saved after <code class="jive-code jive-java">client.addTask(task, content, <span style="color: navy;"><strong style="font-size: 12px; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">null</strong></span>); but not the second one.</code></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Here is my log:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Hibernate: select hibernate_sequence.nextval from dual</p><p>starting</p><p>starting set process variables</p><p>Hibernate: select hibernate_sequence.nextval from dual</p><p>Hibernate: select hibernate_sequence.nextval from dual</p><p>[2011:03:68 17:03:325:debug] Message receieved on server : RegisterForEventRequest</p><p>[2011:03:68 17:03:328:debug] Arguments : [org.jbpm.task.event.TaskEventKey@3cd7f083, false, com.sintecmedia.handler.OnMediaHumanTaskHandler]</p><p>[2011:03:68 17:03:430:debug] Message receieved on server : RegisterForEventRequest</p><p>[2011:03:68 17:03:430:debug] Arguments : [org.jbpm.task.event.TaskEventKey@146b59f2, false, com.sintecmedia.handler.OnMediaHumanTaskHandler]</p><p>[2011:03:68 17:03:430:debug] Message receieved on server : RegisterForEventRequest</p><p>[2011:03:68 17:03:431:debug] Arguments : [org.jbpm.task.event.TaskEventKey@322e53d3, false, com.sintecmedia.handler.OnMediaHumanTaskHandler]</p><p>[2011:03:68 17:03:660:debug] Message receieved on server : AddTaskRequest</p><p>[2011:03:68 17:03:660:debug] Arguments : [org.jbpm.task.Task@eee9b863, null]</p><p>[2011:03:68 17:03:928:debug] Message receieved on client : AddTaskResponse</p><p>[2011:03:68 17:03:928:debug] Arguments : [569]</p><p>[2011:03:68 17:03:05:debug] Message receieved on server : QueryTaskByWorkItemId</p><p>[2011:03:68 17:03:05:debug] Arguments : [568]</p><p>[2011:03:68 17:03:304:debug] Message receieved on client : QueryTaskByWorkItemIdResponse</p><p>[2011:03:68 17:03:304:debug] Arguments : [org.jbpm.task.Task@b70d6c70]</p><p>[2011:03:68 17:03:371:debug] Message receieved on server : OperationRequest</p><p>[2011:03:68 17:03:371:debug] Arguments : [Start, 569, ONAIR]</p><p>[2011:03:68 17:03:372:debug] Command receieved on server was operation of type: Start</p><p>[2011:03:68 17:03:650:debug] Message receieved on server : OperationRequest</p><p>[2011:03:68 17:03:650:debug] Arguments : [Complete, 569, ONAIR, null, null]</p><p>[2011:03:68 17:03:650:debug] Command receieved on server was operation of type: Complete</p><p>MessagingTaskEventListener.taskCompleted 569</p><p>Found generic listeners: 1</p><p>[2011:03:68 17:03:678:debug] Message receieved on client : EventTriggerResponse</p><p>[2011:03:68 17:03:678:debug] Arguments : [org.jbpm.task.event.EventPayload@bbfed9]</p><p>[2011:03:68 17:03:704:debug] Message receieved on client : OperationResponse</p><p>[2011:03:68 17:03:704:debug] Arguments : []</p><p>[2011:03:68 17:03:704:debug] Message receieved on client : OperationResponse</p><p>[2011:03:68 17:03:704:debug] Arguments : []</p><p>[2011:03:68 17:03:721:debug] Message receieved on server : GetTaskRequest</p><p>[2011:03:68 17:03:721:debug] Arguments : [569]</p><p>[2011:03:68 17:03:794:debug] Message receieved on client : GetTaskResponse</p><p>[2011:03:68 17:03:794:debug] Arguments : [org.jbpm.task.Task@47e46d99]</p><p>Notification of completed task 568</p><p>This action between human task 1 to human task 2</p><p>Hibernate: select hibernate_sequence.nextval from dual</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>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.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I debug, and see that it reaches the second task but after </p><p>client.addTask(task, content, <span style="color: navy;"><strong style="font-size: 12px; font-family: 'Lucida Sans', 'Lucida Sans Unicode', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;">null</strong></span>) it doesn't save to db like the first one.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/592185#592185">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>