<!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;">
    Process flow stops after human task completion in jBPM5.1
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/michal.warecki">MichaƂ Warecki</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/623308#623308">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have very simple process flow:</p><p>1. Script task: Log "Before"</p><p>2. Human Task</p><p>3. Script task: Log "After"</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>When I'm running process instance I can see log "Before". Next, I'm starting human task and next completing ( I can see in database that task is in stated "Completed"). Flow stops after human task completion and I can't do anything. There is no exception.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Here are logs from console:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><blockquote class="jive-quote"><p>Hibernate: insert into ProcessInstanceInfo (lastModificationDate, lastReadDate, processId, processInstanceByteArray, startDate, state, OPTLOCK) values (?, ?, ?, ?, ?, ?, ?)</p><p>Hibernate: insert into VariableInstanceLog (log_date, processId, processInstanceId, value, variableId, variableInstanceId) values (?, ?, ?, ?, ?, ?)</p><p>Hibernate: insert into ProcessInstanceLog (end_date, processId, processInstanceId, start_date) values (?, ?, ?, ?)</p><p>Hibernate: insert into NodeInstanceLog (log_date, nodeId, nodeInstanceId, nodeName, processId, processInstanceId, type) values (?, ?, ?, ?, ?, ?, ?)</p><p>Hibernate: insert into NodeInstanceLog (log_date, nodeId, nodeInstanceId, nodeName, processId, processInstanceId, type) values (?, ?, ?, ?, ?, ?, ?)</p><p>Hibernate: insert into NodeInstanceLog (log_date, nodeId, nodeInstanceId, nodeName, processId, processInstanceId, type) values (?, ?, ?, ?, ?, ?, ?)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>BEFORE</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Hibernate: insert into NodeInstanceLog (log_date, nodeId, nodeInstanceId, nodeName, processId, processInstanceId, type) values (?, ?, ?, ?, ?, ?, ?)</p><p>Hibernate: insert into NodeInstanceLog (log_date, nodeId, nodeInstanceId, nodeName, processId, processInstanceId, type) values (?, ?, ?, ?, ?, ?, ?)</p><p>Hibernate: insert into WorkItemInfo (creationDate, name, processInstanceId, state, OPTLOCK, workItemByteArray) values (?, ?, ?, ?, ?, ?)</p><p>Hibernate: select user_.id from OrganizationalEntity user_ where user_.id=?</p><p>Hibernate: update WorkItemInfo set creationDate=?, name=?, processInstanceId=?, state=?, OPTLOCK=?, workItemByteArray=? where workItemId=? and OPTLOCK=?</p><p>Hibernate: insert into Task (allowedToDelegate, taskInitiator_id, priority, activationTime, actualOwner_id, createdBy_id, createdOn, documentAccessType, documentContentId, documentType, expirationTime, faultAccessType, faultContentId, faultName, faultType, outputAccessType, outputContentId, outputType, parentId, previousStatus, processInstanceId, skipable, status, workItemId) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)</p><p>Hibernate: insert into I18NText (language, text) values (?, ?)</p><p>Hibernate: insert into I18NText (language, text) values (?, ?)</p><p>Hibernate: insert into I18NText (language, text) values (?, ?)</p><p>Hibernate: insert into Content (content) values (?)</p><p>Hibernate: update Task set allowedToDelegate=?, taskInitiator_id=?, priority=?, activationTime=?, actualOwner_id=?, createdBy_id=?, createdOn=?, documentAccessType=?, documentContentId=?, documentType=?, expirationTime=?, faultAccessType=?, faultContentId=?, faultName=?, faultType=?, outputAccessType=?, outputContentId=?, outputType=?, parentId=?, previousStatus=?, processInstanceId=?, skipable=?, status=?, workItemId=? where id=?</p><p>Hibernate: update I18NText set Task_Descriptions_Id=? where id=?</p><p>Hibernate: update I18NText set Task_Names_Id=? where id=?</p><p>Hibernate: insert into PeopleAssignments_BAs (task_id, entity_id) values (?, ?)</p><p>Hibernate: insert into PeopleAssignments_PotOwners (task_id, entity_id) values (?, ?)</p><p>Hibernate: update I18NText set Task_Subjects_Id=? where id=?</p><p>Hibernate: update SessionInfo set lastModificationDate=?, rulesByteArray=?, startDate=?, OPTLOCK=? where id=? and OPTLOCK=?</p><p>Hibernate: update ProcessInstanceInfo set lastModificationDate=?, lastReadDate=?, processId=?, processInstanceByteArray=?, startDate=?, state=?, OPTLOCK=? where InstanceId=? and OPTLOCK=?</p><p>Hibernate: select task0_.id as col_0_0_, task0_.processInstanceId as col_1_0_, names5_.text as col_2_0_, subjects3_.text as col_3_0_, descriptio4_.text as col_4_0_, task0_.status as col_5_0_, task0_.priority as col_6_0_, task0_.skipable as col_7_0_, task0_.actualOwner_id as col_8_0_, task0_.createdBy_id as col_9_0_, task0_.createdOn as col_10_0_, task0_.activationTime as col_11_0_, task0_.expirationTime as col_12_0_ from Task task0_ left outer join OrganizationalEntity user1_ on task0_.createdBy_id=user1_.id left outer join OrganizationalEntity user2_ on task0_.actualOwner_id=user2_.id left outer join I18NText subjects3_ on task0_.id=subjects3_.Task_Subjects_Id left outer join I18NText descriptio4_ on task0_.id=descriptio4_.Task_Descriptions_Id left outer join I18NText names5_ on task0_.id=names5_.Task_Names_Id, OrganizationalEntity organizati6_ where organizati6_.id=? and (organizati6_.id in (select potentialo9_.entity_id from PeopleAssignments_PotOwners potentialo9_ where task0_.id=potentialo9_.task_id)) and (names5_.language=? or (select count(names10_.Task_Names_Id) from I18NText names10_ where task0_.id=names10_.Task_Names_Id)=0) and (subjects3_.language=? or (select count(subjects11_.Task_Subjects_Id) from I18NText subjects11_ where task0_.id=subjects11_.Task_Subjects_Id)=0) and (descriptio4_.language=? or (select count(descriptio12_.Task_Descriptions_Id) from I18NText descriptio12_ where task0_.id=descriptio12_.Task_Descriptions_Id)=0) and (task0_.status in ('Created' , 'Ready' , 'Reserved' , 'InProgress' , 'Suspended')) and (task0_.expirationTime is null)</p><p>Hibernate: select user0_.id as id19_0_ from OrganizationalEntity user0_ where user0_.id=? and user0_.DTYPE='User'</p><p>Hibernate: select task0_.id as id24_3_, task0_.allowedToDelegate as allowedT2_24_3_, task0_.taskInitiator_id as taskIni23_24_3_, task0_.priority as priority24_3_, task0_.activationTime as activati4_24_3_, task0_.actualOwner_id as actualO24_24_3_, task0_.createdBy_id as createdBy25_24_3_, task0_.createdOn as createdOn24_3_, task0_.documentAccessType as document6_24_3_, task0_.documentContentId as document7_24_3_, task0_.documentType as document8_24_3_, task0_.expirationTime as expirati9_24_3_, task0_.faultAccessType as faultAc10_24_3_, task0_.faultContentId as faultCo11_24_3_, task0_.faultName as faultName24_3_, task0_.faultType as faultType24_3_, task0_.outputAccessType as outputA14_24_3_, task0_.outputContentId as outputC15_24_3_, task0_.outputType as outputType24_3_, task0_.parentId as parentId24_3_, task0_.previousStatus as previou18_24_3_, task0_.processInstanceId as process19_24_3_, task0_.skipable as skipable24_3_, task0_.status as status24_3_, task0_.workItemId as workItemId24_3_, user1_.id as id19_0_, user2_.id as id19_1_, user3_.id as id19_2_ from Task task0_ left outer join OrganizationalEntity user1_ on task0_.taskInitiator_id=user1_.id left outer join OrganizationalEntity user2_ on task0_.actualOwner_id=user2_.id left outer join OrganizationalEntity user3_ on task0_.createdBy_id=user3_.id where task0_.id=?</p><p>Hibernate: update Task set allowedToDelegate=?, taskInitiator_id=?, priority=?, activationTime=?, actualOwner_id=?, createdBy_id=?, createdOn=?, documentAccessType=?, documentContentId=?, documentType=?, expirationTime=?, faultAccessType=?, faultContentId=?, faultName=?, faultType=?, outputAccessType=?, outputContentId=?, outputType=?, parentId=?, previousStatus=?, processInstanceId=?, skipable=?, status=?, workItemId=? where id=?</p><p>Hibernate: select task0_.id as id24_3_, task0_.allowedToDelegate as allowedT2_24_3_, task0_.taskInitiator_id as taskIni23_24_3_, task0_.priority as priority24_3_, task0_.activationTime as activati4_24_3_, task0_.actualOwner_id as actualO24_24_3_, task0_.createdBy_id as createdBy25_24_3_, task0_.createdOn as createdOn24_3_, task0_.documentAccessType as document6_24_3_, task0_.documentContentId as document7_24_3_, task0_.documentType as document8_24_3_, task0_.expirationTime as expirati9_24_3_, task0_.faultAccessType as faultAc10_24_3_, task0_.faultContentId as faultCo11_24_3_, task0_.faultName as faultName24_3_, task0_.faultType as faultType24_3_, task0_.outputAccessType as outputA14_24_3_, task0_.outputContentId as outputC15_24_3_, task0_.outputType as outputType24_3_, task0_.parentId as parentId24_3_, task0_.previousStatus as previou18_24_3_, task0_.processInstanceId as process19_24_3_, task0_.skipable as skipable24_3_, task0_.status as status24_3_, task0_.workItemId as workItemId24_3_, user1_.id as id19_0_, user2_.id as id19_1_, user3_.id as id19_2_ from Task task0_ left outer join OrganizationalEntity user1_ on task0_.taskInitiator_id=user1_.id left outer join OrganizationalEntity user2_ on task0_.actualOwner_id=user2_.id left outer join OrganizationalEntity user3_ on task0_.createdBy_id=user3_.id where task0_.id=?</p><p>Hibernate: select subtaskstr0_.Task_Id as Task4_1_, subtaskstr0_.id as id1_, subtaskstr0_.id as id25_0_, subtaskstr0_.name as name25_0_, subtaskstr0_.DTYPE as DTYPE25_0_ from SubTasksStrategy subtaskstr0_ where subtaskstr0_.Task_Id=?</p><p>Hibernate: update Task set allowedToDelegate=?, taskInitiator_id=?, priority=?, activationTime=?, actualOwner_id=?, createdBy_id=?, createdOn=?, documentAccessType=?, documentContentId=?, documentType=?, expirationTime=?, faultAccessType=?, faultContentId=?, faultName=?, faultType=?, outputAccessType=?, outputContentId=?, outputType=?, parentId=?, previousStatus=?, processInstanceId=?, skipable=?, status=?, workItemId=? where id=?</p><p>Hibernate: select task0_.id as id24_3_, task0_.allowedToDelegate as allowedT2_24_3_, task0_.taskInitiator_id as taskIni23_24_3_, task0_.priority as priority24_3_, task0_.activationTime as activati4_24_3_, task0_.actualOwner_id as actualO24_24_3_, task0_.createdBy_id as createdBy25_24_3_, task0_.createdOn as createdOn24_3_, task0_.documentAccessType as document6_24_3_, task0_.documentContentId as document7_24_3_, task0_.documentType as document8_24_3_, task0_.expirationTime as expirati9_24_3_, task0_.faultAccessType as faultAc10_24_3_, task0_.faultContentId as faultCo11_24_3_, task0_.faultName as faultName24_3_, task0_.faultType as faultType24_3_, task0_.outputAccessType as outputA14_24_3_, task0_.outputContentId as outputC15_24_3_, task0_.outputType as outputType24_3_, task0_.parentId as parentId24_3_, task0_.previousStatus as previou18_24_3_, task0_.processInstanceId as process19_24_3_, task0_.skipable as skipable24_3_, task0_.status as status24_3_, task0_.workItemId as workItemId24_3_, user1_.id as id19_0_, user2_.id as id19_1_, user3_.id as id19_2_ from Task task0_ left outer join OrganizationalEntity user1_ on task0_.taskInitiator_id=user1_.id left outer join OrganizationalEntity user2_ on task0_.actualOwner_id=user2_.id left outer join OrganizationalEntity user3_ on task0_.createdBy_id=user3_.id where task0_.id=?</p><p>Hibernate: select names0_.Task_Names_Id as Task5_1_, names0_.id as id1_, names0_.id as id20_0_, names0_.language as language20_0_, names0_.text as text20_0_ from I18NText names0_ where names0_.Task_Names_Id=?</p><p>Hibernate: select subjects0_.Task_Subjects_Id as Task4_1_, subjects0_.id as id1_, subjects0_.id as id20_0_, subjects0_.language as language20_0_, subjects0_.text as text20_0_ from I18NText subjects0_ where subjects0_.Task_Subjects_Id=?</p><p>Hibernate: select descriptio0_.Task_Descriptions_Id as Task6_1_, descriptio0_.id as id1_, descriptio0_.id as id20_0_, descriptio0_.language as language20_0_, descriptio0_.text as text20_0_ from I18NText descriptio0_ where descriptio0_.Task_Descriptions_Id=?</p><p>Hibernate: select potentialo0_.task_id as task1_1_, potentialo0_.entity_id as entity2_1_, organizati1_.id as id19_0_, organizati1_.DTYPE as DTYPE19_0_ from PeopleAssignments_PotOwners potentialo0_ left outer join OrganizationalEntity organizati1_ on potentialo0_.entity_id=organizati1_.id where potentialo0_.task_id=?</p><p>Hibernate: select excludedow0_.task_id as task1_1_, excludedow0_.entity_id as entity2_1_, organizati1_.id as id19_0_, organizati1_.DTYPE as DTYPE19_0_ from PeopleAssignments_ExclOwners excludedow0_ left outer join OrganizationalEntity organizati1_ on excludedow0_.entity_id=organizati1_.id where excludedow0_.task_id=?</p><p>Hibernate: select taskstakeh0_.task_id as task1_1_, taskstakeh0_.entity_id as entity2_1_, organizati1_.id as id19_0_, organizati1_.DTYPE as DTYPE19_0_ from PeopleAssignments_Stakeholders taskstakeh0_ left outer join OrganizationalEntity organizati1_ on taskstakeh0_.entity_id=organizati1_.id where taskstakeh0_.task_id=?</p><p>Hibernate: select businessad0_.task_id as task1_1_, businessad0_.entity_id as entity2_1_, organizati1_.id as id19_0_, organizati1_.DTYPE as DTYPE19_0_ from PeopleAssignments_BAs businessad0_ left outer join OrganizationalEntity organizati1_ on businessad0_.entity_id=organizati1_.id where businessad0_.task_id=?</p><p>Hibernate: select recipients0_.task_id as task1_1_, recipients0_.entity_id as entity2_1_, organizati1_.id as id19_0_, organizati1_.DTYPE as DTYPE19_0_ from PeopleAssignments_Recipients recipients0_ left outer join OrganizationalEntity organizati1_ on recipients0_.entity_id=organizati1_.id where recipients0_.task_id=?</p><p>Hibernate: select delegates0_.task_id as task1_1_, delegates0_.entity_id as entity2_1_, organizati1_.id as id19_0_, organizati1_.DTYPE as DTYPE19_0_ from Delegation_delegates delegates0_ left outer join OrganizationalEntity organizati1_ on delegates0_.entity_id=organizati1_.id where delegates0_.task_id=?</p><p>Hibernate: select comments0_.TaskData_Comments_Id as TaskData5_2_, comments0_.id as id2_, comments0_.id as id16_1_, comments0_.addedAt as addedAt16_1_, comments0_.addedBy_id as addedBy4_16_1_, comments0_.text as text16_1_, user1_.id as id19_0_ from task_comment comments0_ left outer join OrganizationalEntity user1_ on comments0_.addedBy_id=user1_.id where comments0_.TaskData_Comments_Id=?</p><p>Hibernate: select attachment0_.TaskData_Attachments_Id as TaskData9_2_, attachment0_.id as id2_, attachment0_.id as id13_1_, attachment0_.accessType as accessType13_1_, attachment0_.attachedAt as attachedAt13_1_, attachment0_.attachedBy_id as attachedBy8_13_1_, attachment0_.attachmentContentId as attachme4_13_1_, attachment0_.contentType as contentT5_13_1_, attachment0_.name as name13_1_, attachment0_.attachment_size as attachment7_13_1_, user1_.id as id19_0_ from Attachment attachment0_ left outer join OrganizationalEntity user1_ on attachment0_.attachedBy_id=user1_.id where attachment0_.TaskData_Attachments_Id=?</p><p>Hibernate: select startdeadl0_.Deadlines_StartDeadLine_Id as Deadlines4_1_, startdeadl0_.id as id1_, startdeadl0_.id as id17_0_, startdeadl0_.deadline_date as deadline2_17_0_, startdeadl0_.escalated as escalated17_0_ from Deadline startdeadl0_ where startdeadl0_.Deadlines_StartDeadLine_Id=?</p><p>Hibernate: select enddeadlin0_.Deadlines_EndDeadLine_Id as Deadlines5_1_, enddeadlin0_.id as id1_, enddeadlin0_.id as id17_0_, enddeadlin0_.deadline_date as deadline2_17_0_, enddeadlin0_.escalated as escalated17_0_ from Deadline enddeadlin0_ where enddeadlin0_.Deadlines_EndDeadLine_Id=?</p><p>Hibernate: select subtaskstr0_.Task_Id as Task4_1_, subtaskstr0_.id as id1_, subtaskstr0_.id as id25_0_, subtaskstr0_.name as name25_0_, subtaskstr0_.DTYPE as DTYPE25_0_ from SubTasksStrategy subtaskstr0_ where subtaskstr0_.Task_Id=?</p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>What could be the reason of such behaviour?</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/623308#623308">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>