nice<br><br><div class="gmail_quote">On Fri, Nov 13, 2009 at 2:27 PM, Kris Verlaenen <span dir="ltr">&lt;<a href="mailto:kris.verlaenen@cs.kuleuven.be">kris.verlaenen@cs.kuleuven.be</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Actually, there is, and I believe the fix is already implemented in the<br>
latest snapshot, have you tried this already?<br>
<br>
<a href="https://jira.jboss.org/jira/browse/JBRULES-2324" target="_blank">https://jira.jboss.org/jira/browse/JBRULES-2324</a><br>
<br>
Kris<br>
<div class="im"><br>
Quoting Vijay K Pandey &lt;<a href="mailto:VPandey@mdes.ms.gov">VPandey@mdes.ms.gov</a>&gt;:<br>
<br>
&gt; Thanks Mauricio for the quick reply. Is there any JIRA associated<br>
&gt; with this?<br>
&gt;<br>
&gt; Thanks<br>
&gt; Vijay<br>
&gt; ________________________________<br>
&gt; From: <a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a><br>
&gt; [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</a>] On Behalf Of Mauricio<br>
&gt; Salatino<br>
&gt; Sent: Thursday, November 12, 2009 12:35 PM<br>
&gt; To: Rules Users List<br>
&gt; Subject: Re: [rules-users] Drools Flow 5.1.0.M1 - Human Task - Client<br>
&gt; Operation - getTasksAssignedAsPotentialOwner - does not return Task<br>
&gt; if &quot;Comment&quot; property is not set<br>
&gt;<br>
&gt; Yes.. I report that before,<br>
&gt; but it&#39;s not really a problem. The comment makes a relationship with<br>
&gt; all the i18n things.<br>
&gt; For now you need to set the comment to be able to retrieve the tasks<br>
&gt; that you want.<br>
&gt; Greetings.<br>
&gt; 2009/11/12 Vijay K Pandey<br>
</div>&gt; &lt;<a href="mailto:VPandey@mdes.ms.gov">VPandey@mdes.ms.gov</a>&lt;mailto:<a href="mailto:VPandey@mdes.ms.gov">VPandey@mdes.ms.gov</a>&gt;&gt;<br>
<div><div></div><div class="h5">&gt; Hi,<br>
&gt;<br>
&gt; Looks like there is some issue in the named query<br>
&gt; &quot;TasksAssignedAsPotentialOwner&quot; for the (Drools Flow 5.1.0.M1 - Human<br>
&gt; Task - Client Operation - getTasksAssignedAsPotentialOwner).<br>
&gt;<br>
&gt; It does not return the Tasks if we don&#39;t specify anything in the<br>
&gt; &quot;Comment&quot; property of the &quot;Human Task&quot;. The following code was used<br>
&gt; to retrieve the results<br>
&gt;<br>
&gt;         BlockingTaskSummaryResponseHandler responseHandler = new<br>
&gt; BlockingTaskSummaryResponseHandler();<br>
&gt;         client.getTasksAssignedAsPotentialOwner(&quot;Luke Cage&quot;, &quot;en-UK&quot;,<br>
&gt; responseHandler);<br>
&gt;<br>
&gt; I looked at the generated SQL (given below) and look like it tries to<br>
&gt; match the &#39;task id&#39; with the &quot;subjects_id, names_id, descriptions_id&quot;<br>
&gt; of the table I18NTEXT --- the values of the &quot;subjects_id&quot; and<br>
&gt; &quot;descriptions_id&quot; goes as null because there is no &quot;comment&quot;<br>
&gt; associated with the work item &#39;Human Task&#39; and since its not a left<br>
&gt; outer join on the descriptions_id - hence no returned result.<br>
&gt;<br>
&gt;    select<br>
&gt;         task0_.id as col_0_0_,<br>
&gt;         i18ntext4_.text as col_1_0_,<br>
&gt;         subjects3_.text as col_2_0_,<br>
&gt;         i18ntext5_.text as col_3_0_,<br>
&gt;         task0_.status as col_4_0_,<br>
&gt;         task0_.priority as col_5_0_,<br>
&gt;         task0_.skipable as col_6_0_,<br>
&gt;         task0_.task_data_actual_owner_id as col_7_0_,<br>
&gt;         task0_.task_data_created_by_id as col_8_0_,<br>
&gt;         task0_.created_on as col_9_0_,<br>
&gt;         task0_.activation_time as col_10_0_,<br>
&gt;         task0_.expiration_time as col_11_0_<br>
&gt;     from<br>
&gt;         WSHT_TASK task0_<br>
&gt;     left outer join<br>
&gt;         ORGANIZATIONAL_ENTITY user1_<br>
&gt;             on task0_.task_data_created_by_id=user1_.id<br>
&gt;     left outer join<br>
&gt;         ORGANIZATIONAL_ENTITY user2_<br>
&gt;             on task0_.task_data_actual_owner_id=user2_.id<br>
&gt;     left outer join<br>
&gt;         I18NTEXT subjects3_<br>
&gt;             on task0_.id=subjects3_.task_subjects_id,<br>
&gt;         I18NTEXT i18ntext4_,<br>
&gt;         I18NTEXT i18ntext5_,<br>
&gt;         ORGANIZATIONAL_ENTITY organizati6_<br>
&gt;     where<br>
&gt;         organizati6_.id=?<br>
&gt;         and (<br>
&gt;             organizati6_.id in (<br>
&gt;                 select<br>
&gt;                     potentialo9_.entity_id<br>
&gt;                 from<br>
&gt;                     PEOPLE_ASSIGNMENTS_POTENTIAL_OWNERS potentialo9_<br>
&gt;                 where<br>
&gt;                     task0_.id=potentialo9_.task_id<br>
&gt;             )<br>
&gt;         )<br>
&gt;         and i18ntext4_.language=?<br>
&gt;         and (<br>
&gt;             i18ntext4_.id in (<br>
&gt;                 select<br>
&gt;                     names10_.id<br>
&gt;                 from<br>
&gt;                     I18NTEXT names10_<br>
&gt;                 where<br>
&gt;                     task0_.id=names10_.task_names_id<br>
&gt;             )<br>
&gt;         )<br>
&gt;         and subjects3_.language=?<br>
&gt;         and i18ntext5_.language=?<br>
&gt;         and (<br>
&gt;             i18ntext5_.id in (<br>
&gt;                 select<br>
&gt;                     descriptio11_.id<br>
&gt;                 from<br>
&gt;                     I18NTEXT descriptio11_<br>
&gt;                 where<br>
&gt;                     task0_.id=descriptio11_.task_descriptions_id<br>
&gt;             )<br>
&gt;         )<br>
&gt;         and (<br>
&gt;             task0_.status in (<br>
&gt;                 &#39;Created&#39; , &#39;Ready&#39; , &#39;Reserved&#39; , &#39;InProgress&#39; ,<br>
&gt; &#39;Suspended&#39;<br>
&gt;             )<br>
&gt;         )<br>
&gt;         and (<br>
&gt;             task0_.expiration_time is null<br>
&gt;         )<br>
&gt;<br>
&gt; Can someone throw some light on this? Do we have to have &quot;Comment&quot;<br>
&gt; property set?<br>
&gt;<br>
&gt; Thanks<br>
&gt; Vijay<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
</div></div>&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&lt;mailto:<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>
<div class="im">&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; - <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>
&gt; - <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
&gt; - Salatino &quot;Salaboy&quot; Mauricio -<br>
&gt;<br>
<br>
<br>
<br>
<br>
</div>Disclaimer: <a href="http://www.kuleuven.be/cwis/email_disclaimer.htm" target="_blank">http://www.kuleuven.be/cwis/email_disclaimer.htm</a><br>
<div><div></div><div class="h5">_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">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><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> - Salatino &quot;Salaboy&quot; Mauricio -<br>