flowable/flowable-engine

Unexpected result when querying tasks in Flowable 7.0.1

jin2001 opened this issue · 0 comments

Hi all,

I have found what it could be a bug in the recent 7.0.1 version.
When using taskService to query the running tasks, the query criterias are missing. So none of result is returned.

The code of query is as follows:
query1:
taskService.createTaskQuery().taskAssigned("user1")
.taskState(Task.CREATED).list();
query2:
taskService.createTaskQuery().taskAssigned("user1")
.taskClaimedBefore("2024-07-29").list();

I expect the search is as follows:
expectation1:
assignee_ = "user1" AND STATE_ = "created"
expectation2:
assignee_ = "user1" AND CLAIM_TIME_ < "2024-07-29"

But in the logs,the SQL generated is as follows:
assignee_ = "user1"

The query criteria STATE_ and CLAIM_TIME_ are missing.