Details
Description
For DB2 and MSSQL, we had to change EXCLUSIVE_ = TRUE to EXCLUSIVE_ = 1 (it then becomes the similar statement as 'selectExclusiveJobsToExecute_oracle').
Not working for DB2 and MSSQL:
<select id="selectExclusiveJobsToExecute" parameterType="map" resultMap="jobResultMap"> select * from ACT_RU_JOB where (RETRIES_ > 0) and (DUEDATE_ is null or DUEDATE_ < #{now, jdbcType=TIMESTAMP}) and (LOCK_OWNER_ is null or LOCK_EXP_TIME_ < #{now, jdbcType=TIMESTAMP}) and (RETRIES_ > 0) and (EXCLUSIVE_ = TRUE) and (PROCESS_INSTANCE_ID_ = #{pid}) </select>
Working for DB2 and MSSQL:
<select id="selectExclusiveJobsToExecute_custom" parameterType="map" resultMap="jobResultMap"> select * from ACT_RU_JOB where (RETRIES_ > 0) and (DUEDATE_ is null or DUEDATE_ < #{now, jdbcType=TIMESTAMP}) and (LOCK_OWNER_ is null or LOCK_EXP_TIME_ < #{now, jdbcType=TIMESTAMP}) and (RETRIES_ > 0) and (EXCLUSIVE_ = 1) and (PROCESS_INSTANCE_ID_ = #{pid}) </select>
Issue Links
- is duplicated by
-
ACT-1131
Asynchronous Servicetasks with DB2
-