Error while fetching the list of records from specific Filter

Hi Team,
i’m getting below error while fetching the list of claimed task from specific filter.

  "type": "ProcessEngineException",
    "message": "Unable to invoke method 'taskAssignee' on class 'org.camunda.bpm.engine.impl.TaskQueryImpl'"

image

this the query used in Filter table

when i remove “taskAssigneeExpression”:“${ currentUser() }” from QUERY_ then i’m getting all the data but i need specific filter list using rest call.

i tried to give Authorizations to claimed user but still facing same issue.

Please help on this!

Thanks,

Can any one help on this.!
I have two filters -

  1. Claimed By Me
  2. Claimed Cases
    I want to get the list of Claimed task details from specific filter ‘Claimed By Me’.
    below sample DB script i tried for create filter and fetching the list of claimed task.
    but i’m getting above error plzz can any one suggest how can i proceed further.
BEGIN
DECLARE @FILTER_UUID4 UNIQUEIDENTIFIER = NEWID();
INSERT Into [dbo].[ACT_RU_FILTER] (ID_,REV_, RESOURCE_TYPE_, NAME_, QUERY_, PROPERTIES_)
values (@FILTER_UUID4, 5, 'Task', 'Claimed By Me','{"candidateGroup":"Approver","includeAssignedTasks":true,"taskAssigneeExpression":"${ currentUser() }"}',
'{"variables":[{"name":"claimedDate","label":"Claimed date"}]}');

DECLARE @AUTORIZATION_UUID3 UNIQUEIDENTIFIER = NEWID();
INSERT Into [dbo].[ACT_RU_AUTHORIZATION] (ID_,REV_,TYPE_,GROUP_ID_,RESOURCE_TYPE_,RESOURCE_ID_,PERMS_) 
values ( @AUTORIZATION_UUID3, 1, 1, 'Approver', 5, @FILTER_UUID4, 2)
END

Hi @Purushotham,

the task queries from the REST API (Get Tasks | docs.camunda.org and Get Tasks (POST) | docs.camunda.org) contain a parameter assigneeExpression, but no taskAssigneeExpression.

Maybe just remove the task?

Hope this helps, Ingo

Hi @Ingo_Richtsmeier ,

If we use assigneeExpression , then the tasks are not loading in the tasklist. (not recommended)
if we use this “taskAssigneeExpression”:"${ currentUser() }" getting tasks in the tasklist properly,
but if i want to get those tasks from postman then getting below error.
URI : http://localhost:8080/engine-rest/filter/{filter Id}/list

"type": "ProcessEngineException",
    "message": "Unable to invoke method 'taskAssignee' on class 'org.camunda.bpm.engine.impl.TaskQueryImpl'"

Thanks,

Hi,

We are still facing this issue, can someone please guide on above issue.

Thanks and regards,
Deepika

Hi,
We are still facing the issue where we are not able to retrieve data in postman but able to retrieve it on workbench portal.
Can you please help with this.

Thanks and regards,
Deepika