You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The executable filter excludes jobs tied to a suspended process instance but does not exclude suspended jobs. The documentation doesn't cover either scenario (look above as part of the screenshot).
Expected behavior (Required on creation)
It looks like it should exclude both process instances that are suspended (it already does) and also should exclude jobs that are suspended.
Solution Ideas
replace this:
and (RES.RETRIES_ > 0)
and (RES.DUEDATE_ is null or RES.DUEDATE_ <= #{now, jdbcType=TIMESTAMP})
and (
(RES.EXECUTION_ID_ is null)
or
(PI.SUSPENSION_STATE_ = 1 or PI.SUSPENSION_STATE_ is null)
)
to:
and (RES.RETRIES_ > 0)
and (RES.DUEDATE_ is null or RES.DUEDATE_ <= #{now, jdbcType=TIMESTAMP})
and (
(RES.EXECUTION_ID_ is null)
or
(PI.SUSPENSION_STATE_ = 1 or PI.SUSPENSION_STATE_ is null)
)
_and RES.SUSPENSION_STATE_ = 1_
Hints
Links
Breakdown
The content you are editing has changed. Please copy your edits and refresh the page.
Environment (Required on creation)
reproduced on develop & 7.22
Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket)
In job.xml it is implemented like this:
In docs:
Steps to reproduce (Required on creation)
job.xml -> selectJobByQueryCriteriaSql -> flag
camunda-bpm-platform/engine/src/main/resources/org/camunda/bpm/engine/impl/mapping/entity/Job.xml
Line 369 in 44544f2
Observed Behavior (Required on creation)
The executable filter excludes jobs tied to a suspended process instance but does not exclude suspended jobs. The documentation doesn't cover either scenario (look above as part of the screenshot).
Expected behavior (Required on creation)
It looks like it should exclude both process instances that are suspended (it already does) and also should exclude jobs that are suspended.
Solution Ideas
replace this:
and (RES.RETRIES_ > 0)
and (RES.DUEDATE_ is null or RES.DUEDATE_ <= #{now, jdbcType=TIMESTAMP})
and (
(RES.EXECUTION_ID_ is null)
or
(PI.SUSPENSION_STATE_ = 1 or PI.SUSPENSION_STATE_ is null)
)
to:
and (RES.RETRIES_ > 0) and (RES.DUEDATE_ is null or RES.DUEDATE_ <= #{now, jdbcType=TIMESTAMP}) and ( (RES.EXECUTION_ID_ is null) or (PI.SUSPENSION_STATE_ = 1 or PI.SUSPENSION_STATE_ is null) ) _and RES.SUSPENSION_STATE_ = 1_Hints
Links
Breakdown
Pull Requests
Dev2QA handover
The text was updated successfully, but these errors were encountered: