cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with noRetriesLeft query

bam
Champ in-the-making
Champ in-the-making
Hello everybody,

My job query where I'm trying to select all jobs having no retries (in error) doesn't return the expected results.
Many results contains jobs having retries actually.

I've looked a bit on how the JobQuery works, and I'm wondering if something is not missing in Activiti :


in Job.xml, there is :


<if test="retriesLeft">
    and RES.RETRIES_ &gt; 0
</if>
but I don't see any equivalent for noRetriesLeft. I would I've thought something like :


<if test="noRetriesLeft">
    and RES.RETRIES_ = 0
</if>


Is this indeed a bug in Activiti Engine ?

Thanks,
Regards.
2 REPLIES 2

bam
Champ in-the-making
Champ in-the-making
And I'm really struggling with GitHub, can't do a proper pull-request. from my fork on bricefuji/Activiti…

trademak
Star Contributor
Star Contributor
Good catch. That was indeed not correctly implemented and I've fixed it on Github master now.

Thanks,