<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Asynchronous Process with DB2 in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/asynchronous-process-with-db2/m-p/94210#M64523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a bug in the &lt;/SPAN&gt;&lt;A href="http://activiti-engine-5.9.jar/org.activiti.db.mapping.entity/job.xml" rel="nofollow noopener noreferrer"&gt;activiti-engine-5.9.jar/org.activiti.db.mapping.entity/job.xml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;lt;select id="selectExclusiveJobsToExecute" parameterType="map" resultMap="jobResultMap"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from ACT_RU_JOB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where (RETRIES_ &amp;amp;gt; 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and (DUEDATE_ is null or DUEDATE_ &amp;amp;lt; #{now, jdbcType=TIMESTAMP})&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and (LOCK_OWNER_ is null or LOCK_EXP_TIME_ &amp;amp;lt; #{now, jdbcType=TIMESTAMP})&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and (RETRIES_ &amp;amp;gt; 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and (EXCLUSIVE_ = TRUE)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and (PROCESS_INSTANCE_ID_ = #{pid})&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;lt;/select&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;This sql tries to compare the EXCLUSIVE_ with "TRUE". But in DB2 "EXCLUSIVE_" is created as a smallint and should be compared with "1" (like oracle)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I fixed the problem by replacing "TRUE" with "1"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2012 14:19:26 GMT</pubDate>
    <dc:creator>kirek</dc:creator>
    <dc:date>2012-03-08T14:19:26Z</dc:date>
    <item>
      <title>Asynchronous Process with DB2</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/asynchronous-process-with-db2/m-p/94209#M64522</link>
      <description>Hi,i have a problem with an asynchronous service task.I built a very simple process..[attachment=0]process.JPG[/attachment]..with an asynchronous serviceTask.The process fails all the time with db2 and throws this exception:&amp;nbsp; :roll: ### Error querying database.&amp;nbsp; Cause: com.ibm.db2.jcc.am.SqlSyntaxEr</description>
      <pubDate>Wed, 07 Mar 2012 09:44:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/asynchronous-process-with-db2/m-p/94209#M64522</guid>
      <dc:creator>kirek</dc:creator>
      <dc:date>2012-03-07T09:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous Process with DB2</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/asynchronous-process-with-db2/m-p/94210#M64523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a bug in the &lt;/SPAN&gt;&lt;A href="http://activiti-engine-5.9.jar/org.activiti.db.mapping.entity/job.xml" rel="nofollow noopener noreferrer"&gt;activiti-engine-5.9.jar/org.activiti.db.mapping.entity/job.xml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;lt;select id="selectExclusiveJobsToExecute" parameterType="map" resultMap="jobResultMap"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from ACT_RU_JOB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where (RETRIES_ &amp;amp;gt; 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and (DUEDATE_ is null or DUEDATE_ &amp;amp;lt; #{now, jdbcType=TIMESTAMP})&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and (LOCK_OWNER_ is null or LOCK_EXP_TIME_ &amp;amp;lt; #{now, jdbcType=TIMESTAMP})&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and (RETRIES_ &amp;amp;gt; 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and (EXCLUSIVE_ = TRUE)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and (PROCESS_INSTANCE_ID_ = #{pid})&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;lt;/select&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;This sql tries to compare the EXCLUSIVE_ with "TRUE". But in DB2 "EXCLUSIVE_" is created as a smallint and should be compared with "1" (like oracle)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I fixed the problem by replacing "TRUE" with "1"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 14:19:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/asynchronous-process-with-db2/m-p/94210#M64523</guid>
      <dc:creator>kirek</dc:creator>
      <dc:date>2012-03-08T14:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous Process with DB2</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/asynchronous-process-with-db2/m-p/94211#M64524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi kirek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nice catch, would you be willing to attach a patch to ACT-1131 ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 10:13:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/asynchronous-process-with-db2/m-p/94211#M64524</guid>
      <dc:creator>meyerd</dc:creator>
      <dc:date>2012-03-09T10:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous Process with DB2</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/asynchronous-process-with-db2/m-p/94212#M64525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;see more here..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://jira.codehaus.org/browse/ACT-1131" rel="nofollow noopener noreferrer"&gt;https://jira.codehaus.org/browse/ACT-1131&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but only use the attaced file, if you only work with DB2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The changed Methods are used by every database (excluded oracle), so you cannot&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;work with other databases anymore.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2012 07:00:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/asynchronous-process-with-db2/m-p/94212#M64525</guid>
      <dc:creator>kirek</dc:creator>
      <dc:date>2012-03-12T07:00:23Z</dc:date>
    </item>
  </channel>
</rss>

