cancel
Showing results for 
Search instead for 
Did you mean: 

Why task list api returning null values?

anitapatil_bld
Confirmed Champ
Confirmed Champ

Hi ,

I used this api

http://localhost:8080/activiti-app/api/enterprise/historic-tasks/query

in the response process definition key, Process Name and some other fields are null. Why?

I tested this api in 

http://localhost:8080/activiti-app/api-explorer.html#!/tasks/listHistoricTasksUsingPOST 

In request body I passed

{
"finished": false,
"includeProcessVariables": true,
"includeTaskLocalVariables": true,
"size": 100000,
"taskAssignee": "string"
}

Can any one give me the solution?

1 ACCEPTED ANSWER

Discovered that the problem was related to a CustomVariable serializer. Same simptom, but different problem. Sorry for disturbing.

View answer in original post

6 REPLIES 6

bassam_al-saror
Star Collaborator
Star Collaborator

Tasks that aren't part of a process will have process related fields set to null. Verify whether they are part of processes or not.

Bassam Al-Sarori‌ Yes the tasks are part of process.

Ok thats weird. Not sure what the problem is. What APS version are you using? And is there a way that I can reproduce what your issue?

I've noticed this started to happen suddenly. What changed: we have upgraded from 5.21.0 to 5.22.0.

I've queried the database, and all variables are there in the scope of the process. And the task is part of the scope of the process. Only one variable, of boolean type, has been loaded. Everything else was not.

Discovered that the problem was related to a CustomVariable serializer. Same simptom, but different problem. Sorry for disturbing.

anitapatil_bld
Confirmed Champ
Confirmed Champ

Bassam Al-Sarori‌ I am using APS version 1.7