Hi all,
I have a task as following.
{
“id”: “f1389054-9b56-11ea-a0da-005056b63d36”,
“name”: “Select Operator”,
“assignee”: null,
“created”: “2020-05-21T14:33:50.473+0300”,
“due”: null,
“followUp”: null,
“delegationState”: null,
“description”: null,
“executionId”: “f1389051-9b56-11ea-a0da-005056b63d36”,
“owner”: null,
“parentTaskId”: null,
“priority”: 50,
“processDefinitionId”: “restServiceCallDemo:1:3a2dec8e-9b48-11ea-a0da-005056b63d36”,
“processInstanceId”: “f1389051-9b56-11ea-a0da-005056b63d36”,
“taskDefinitionKey”: “selectOperator”,
“caseExecutionId”: null,
“caseInstanceId”: null,
“caseDefinitionId”: null,
“suspended”: false,
“formKey”: null,
“tenantId”: null
}
By calling /task/f1389054-9b56-11ea-a0da-005056b63d36/variables/sunny api, my task has variable as following:
{
“sunny”: {
“type”: “Integer”,
“value”: 1,
“valueInfo”: {}
}
}
If I call /task/f1389054-9b56-11ea-a0da-005056b63d36/variables then I can see my variable. But when I want to filter task list by this variable, I can’t get the task. It returns an empty list. I am calling /task (POST) with following request body:
{
“taskVariables”:
[{“name”: “summy”,
“value”: “1”,
“operator”: “eq”
}]
}
When I call /task (POST) with following request I can get the task.
{
“processInstanceId”: “f1389051-9b56-11ea-a0da-005056b63d36”
}
What is the main problem here? Why isn’t task list filtering by task variables working? I need your help because this is very crucial on my project. I should filter tasks according to task variables for my work pool.
Thanks