<div dir="ltr">and this is how i am listing the tasks.<div><div>try {</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>MinaTaskClient client = new MinaTaskClient(&quot;client 1&quot;, new TaskClientHandler(SystemEventListenerFactory.getSystemEventListener()));</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>NioSocketConnector connector = new NioSocketConnector();</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>SocketAddress address = new InetSocketAddress(&quot;127.0.0.1&quot;,9123);</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>client.connect(connector, address);</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>BlockingTaskSummaryResponseHandler summaryHandler = new BlockingTaskSummaryResponseHandler();</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>client.getTasksAssignedAsPotentialOwner(&quot;Joe&quot;, &quot;en-UK&quot;, summaryHandler);</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>List&lt;TaskSummary&gt; arg0 = summaryHandler.getResults();</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>System.out.println(&quot;Joe&#39;s task list size is &quot;+arg0.size());</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>for(int i=0; i &lt; arg0.size(); i++){</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                        </span>System.out.println(&quot;Task Listed for Administrator &quot;+arg0.get(i).getId()+&quot;, name=&quot;+arg0.get(i).getName()+&quot;, status=&quot;+arg0.get(i).getStatus());</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>}catch(Exception ex){</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span></div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>}</div><div><br></div>are you sure that you&#39;re connecting to the same TaskService that the drools flow engine is connected to?</div><div><br><div class="gmail_quote">
On Thu, Apr 22, 2010 at 5:29 PM, rudolf michael <span dir="ltr">&lt;<a href="mailto:roudolf@gmail.com">roudolf@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">well i had your problem when i started doing some human task processing then after i have set the Comment for the tasks, the task list worked fine for me.<div>Find below my Test case logs:<br><div><div><br>
</div>
<div>Hibernate: update ProcessInstanceInfo set externalVariables=?, lastModificationDate=?, lastReadDate=?, processId=?, processInstanceByteArray=?, startDate=?, state=?, OPTLOCK=? where processInstanceId=? and OPTLOCK=?</div>

<div>Hibernate: select user_.id from OrganizationalEntity user_ where user_.id=?</div><div>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, skipable, status, workItemId) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)</div>

<div>Hibernate: update WorkItemInfo set creationDate=?, name=?, processInstanceId=?, state=?, OPTLOCK=?, workItemByteArray=? where workItemId=? and OPTLOCK=?</div><div>Hibernate: insert into I18NText (language, text) values (?, ?)</div>

<div>Hibernate: update SessionInfo set dirty=?, lastModificationDate=?, rulesByteArray=?, startDate=? where id=?</div><div>Hibernate: insert into I18NText (language, text) values (?, ?)</div><div>Hibernate: insert into I18NText (language, text) values (?, ?)</div>

<div>Hibernate: update I18NText set Task_Descriptions_Id=? where id=?</div><div>Hibernate: update I18NText set Task_Names_Id=? where id=?</div><div>Hibernate: insert into PeopleAssignments_BusinessAdministrators (task_id, entity_id) values (?, ?)</div>

<div>Hibernate: insert into PeopleAssignments_PotentialOwners (task_id, entity_id) values (?, ?)</div><div>Hibernate: update I18NText set Task_Subjects_Id=? where id=?</div><div>INFO: RECEIVED: HeapBuffer[pos=0 lim=199 cap=2048: 00 00 00 C3 AC ED 00 05 73 72 01 00 1F 6F 72 67...]</div>

<div>[2010:04:112 17:04:846:debug] Message receieved on server : QueryTasksAssignedAsPotentialOwner</div><div>[2010:04:112 17:04:846:debug] Arguments : [Joe, en-UK]</div><div>Task Claimed for Joe, Task Name=1</div><div>Apr 22, 2010 5:23:13 PM org.apache.mina.filter.logging.LogLevel$4 log</div>

<div>INFO: SENT: HeapBuffer[pos=0 lim=216 cap=256: 00 00 00 D4 AC ED 00 05 73 72 01 00 1F 6F 72 67...]</div><div>Apr 22, 2010 5:23:13 PM org.apache.mina.filter.logging.LogLevel$4 log</div><div>INFO: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]</div>

<div>[2010:04:112 17:04:886:debug] Message receieved on client : AddTaskResponse</div><div>[2010:04:112 17:04:887:debug] Arguments : [1]</div><div>Hibernate: select task0_.id as col_0_0_, i18ntext4_.text as col_1_0_, subjects3_.text as col_2_0_, i18ntext5_.text as col_3_0_, task0_.status as col_4_0_, task0_.priority as col_5_0_, task0_.skipable as col_6_0_, task0_.actualOwner_id as col_7_0_, task0_.createdBy_id as col_8_0_, task0_.createdOn as col_9_0_, task0_.activationTime as col_10_0_, task0_.expirationTime as col_11_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, I18NText i18ntext4_, I18NText i18ntext5_, OrganizationalEntity organizati6_ where organizati6_.id=? and (organizati6_.id in (select potentialo9_.entity_id from PeopleAssignments_PotentialOwners potentialo9_ where task0_.id=potentialo9_.task_id)) and i18ntext4_.language=? and (i18ntext4_.id in (select names10_.id from I18NText names10_ where task0_.id=names10_.Task_Names_Id)) and subjects3_.language=? and i18ntext5_.language=? and (i18ntext5_.id in (select descriptio11_.id from I18NText descriptio11_ where task0_.id=descriptio11_.Task_Descriptions_Id)) and (task0_.status in (&#39;Created&#39; , &#39;Ready&#39; , &#39;Reserved&#39; , &#39;InProgress&#39; , &#39;Suspended&#39;)) and (task0_.expirationTime is null)</div>

<div>Apr 22, 2010 5:23:13 PM org.apache.mina.filter.logging.LogLevel$4 log</div><div>INFO: RECEIVED: HeapBuffer[pos=0 lim=1036 cap=2048: 00 00 01 57 AC ED 00 05 73 72 01 00 1F 6F 72 67...]</div><div>Hibernate: select user0_.id as id64_0_ from OrganizationalEntity user0_ where user0_.id=? and user0_.DTYPE=&#39;User&#39;</div>

<div>[2010:04:112 17:04:896:debug] Message receieved on server : RegisterForEventRequest</div><div>[2010:04:112 17:04:896:debug] Arguments : [org.drools.task.event.TaskEventKey@c6e7d8b, true, org.drools.process.workitem.wsht.WSHumanTaskHandler]</div>

<div>[2010:04:112 17:04:898:debug] Message receieved on server : RegisterForEventRequest</div><div>[2010:04:112 17:04:898:debug] Arguments : [org.drools.task.event.TaskEventKey@28075cfe, true, org.drools.process.workitem.wsht.WSHumanTaskHandler]</div>

<div>[2010:04:112 17:04:898:debug] Message receieved on server : RegisterForEventRequest</div><div>[2010:04:112 17:04:898:debug] Arguments : [org.drools.task.event.TaskEventKey@28f7c114, true, org.drools.process.workitem.wsht.WSHumanTaskHandler]</div>

<div>[2010:04:112 17:04:901:debug] Message receieved on client : QueryTaskSummaryResponse</div><div>[2010:04:112 17:04:901:debug] Arguments : [[org.drools.task.query.TaskSummary@a467e05f]]</div><div>Joe&#39;s task list size is 1</div>

<div>Task Listed for Administrator 1, name=User submits request, status=Reserved</div><div><div></div><div class="h5"><br><div class="gmail_quote">On Thu, Apr 22, 2010 at 4:16 PM, HMandic <span dir="ltr">&lt;<a href="mailto:trbuhom@net.hr" target="_blank">trbuhom@net.hr</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Still no resolution...<br>
<br>
I was reading through gazillion rows of log output (I&#39;ve put<br>
log4j.logger.org.hibernate=debug and<br>
log4j.logger.org.hibernate.hql.ast.AST=debug in log4j.properties) for the<br>
last few days, and still can&#39;t figure it out.<br>
It has nothing to do with my human task item (I populated all the fields).<br>
The problem remains that hibernate generates the wrong SQL from<br>
&quot;TasksAssignedAsPotentialOwner&quot; (named query as found in orm.xml). It<br>
generates inner join on actualOwner which is null before somebody claims<br>
that task, that way I&#39;ll never get the list of tasks that I need to claim.<br>
<br>
I&#39;m using hibernate 3.5.1FINAL and orm.xml from drools 5.1.0M1 (but it&#39;s the<br>
same as in 5.0.1).<br>
<br>
Could it be that I&#39;m the only one with this problem?<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-Another-problem-with-Human-Task-tp724086p742826.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-Another-problem-with-Human-Task-tp724086p742826.html</a><br>


</font><div><div></div><div>Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div></div>