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
-
Activity
Rene Gielen
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | ACT-1170_trunk.patch [ 59528 ] |
Daniel Meyer (camunda)
made changes -
| Assignee | Daniel Meyer [ meyerd ] |
Daniel Meyer (camunda)
made changes -
Daniel Meyer (camunda)
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Daniel Meyer (camunda)
made changes -
| Fix Version/s | 5.10 [ 18341 ] | |
| Component/s | Engine [ 14460 ] |