<!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="https://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;">
JBPM Workflow not proceeding further after human task completion
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/abuinigate">Mohamed Abuthahir</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/786958#786958">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;"> </p><p>I am having a jbpm process as below </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>Start--->Script--->Human Task---->Script---->End</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I have created web service and am calling the above jbpm process inside the webservice. The process is started fine. And it is waiting in the human task node.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>For the human task handling I have created a separate web project and claiming,completing. After my completion the task status is changed to <strong>"completed"</strong> but my workflow is not proceeding further means my script task is getting executed.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I am using jbpm spring implementation in my web service project and web project.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The configuration is as follows in both of my projects</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><bean id="ds" class="org.springframework.jdbc.datasource.DriverManagerDataSource"></p><p><property name="driverClassName" value="com.mysql.jdbc.Driver"></property></p><p><property name="url" value="jdbc:mysql://localhost:3306/jbpmworkflow?autoReconnect=true"/></p><p><property name="username" value="root"/></p><p><property name="password" value="Abu@123a"/></p><p></bean></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"</p><p>                  p:dataSource-ref="ds"></p><p><property name="persistenceXmlLocation" value="classpath:META-INF/persistence.xml" /></p><p><property name="persistenceUnitName" value="org.jbpm.persistence.jpa" /> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><property name="jpaVendorAdapter"></p><p><bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"></p><p><property name="database" value="MYSQL"/></p><p><property name="showSql" value="true"/>   </p><p><property name="databasePlatform" value="org.hibernate.dialect.MySQL5Dialect" /></p><p></bean>          </p><p></property></p><p></bean></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager" p:entityManagerFactory-ref="entityManagerFactory"></p><p><property name="dataSource" ref="ds"/></p><p></bean></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><jbpm:kbase id="kbase"></p><p>    <jbpm:resources></p><p>    <jbpm:resource type="BPMN2" source="classpath:com/igate/dam/dynamic/workflow/process/TestWorkFlow.bpmn"/>   </p><p>    <jbpm:resource type="DRL" source="classpath:com/igate/dam/dynamic/workflow/process/AXN.drl"></jbpm:resource></p><p>    <jbpm:resource type="CHANGE_SET" source="classpath:com/igate/dam/dynamic/workflow/changeset/ChangeSet.xml"/></p><p>    </p><p>    </jbpm:resources></p><p>  </jbpm:kbase></p><p>  </p><p><jbpm:ksession id="ksession" type="stateful" kbase="kbase" ></p><p><jbpm:configuration></p><p>      <jbpm:jpa-persistence></p><p>        <jbpm:entity-manager-factory ref="entityManagerFactory"/></p><p>        <jbpm:transaction-manager ref="transactionManager"/></p><p>      </jbpm:jpa-persistence></p><p>      </p><p>    </jbpm:configuration></p><p></jbpm:ksession></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><!-- Declare a TaskClient --></p><p>  <bean class="org.jbpm.task.service.mina.MinaTaskClientConnector" id="taskClientConnector"></p><p>    <constructor-arg value="taskClient"/></p><p>    <constructor-arg></p><p>      <bean class="org.jbpm.task.service.mina.MinaTaskClientHandler"></p><p>        <constructor-arg></p><p>          <bean class="org.drools.SystemEventListenerFactory" factory-method="getSystemEventListener"/></p><p>        </constructor-arg></p><p>      </bean></p><p>    </constructor-arg></p><p>  </bean></p><p>  <bean class="org.jbpm.task.service.TaskClient" id="taskClient"></p><p>    <constructor-arg ref="taskClientConnector"/></p><p>  </bean></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>  <!-- Declare a HumanTaskHandler. It uses previously created TaskClient --></p><p>  <bean class="org.jbpm.task.service.AsyncTaskServiceWrapper" id="humanTaskClient"></p><p>    <constructor-arg ref="taskClient"/></p><p>  </bean></p><p>  <bean class="org.jbpm.process.workitem.wsht.SyncWSHumanTaskHandler" id="humanTaskHandler"></p><p>    <constructor-arg ref="humanTaskClient"/></p><p>    <constructor-arg ref="ksession"/></p><p>  </bean></p><p>  <!-- Configure its connection to the local server --></p><p>  <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="humanTaskHandler" id="setConnection"></p><p>    <property name="targetObject" ref="humanTaskHandler"/></p><p>    <property name="targetMethod" value="setConnection"/></p><p>    <property name="arguments"></p><p>      <list></p><p>        <value>127.0.0.1</value></p><p>        <value>9123</value></p><p>      </list></p><p>    </property></p><p>  </bean></p><p>  <!-- And connect HumanTaskHandler (implicit TaskClient connection) --></p><p>  <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="setConnection"></p><p>    <property name="targetObject" ref="humanTaskHandler"/></p><p>    <property name="targetMethod" value="connect"/></p><p>  </bean></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>  <!-- Finnaly, register HumanTaskHandler in the session --></p><p>  <bean factory-bean="ksession" factory-method="getWorkItemManager" id="workItemManager"/></p><p>  <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"></p><p>    <property name="targetObject" ref="workItemManager"/></p><p>    <property name="targetMethod" value="registerWorkItemHandler"/></p><p>    <property name="arguments"></p><p>      <list></p><p>        <value>Human Task</value></p><p>        <ref bean="humanTaskHandler"/></p><p>      </list></p><p>    </property></p><p>  </bean></p><p></beans></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Kindly help me on this....</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>--Abuthahir</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/786958#786958">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://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>