Why task list api returning null values?

cancel
Showing results for 
Search instead for 
Did you mean: 
Active Member II

Why task list api returning null values?

Jump to solution

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 Solution

Accepted Solutions
Active Member II

Re: Why task list api returning null values?

Jump to solution

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

View solution in original post

6 Replies
Alfresco Employee

Re: Why task list api returning null values?

Jump to solution

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.

Active Member II

Re: Why task list api returning null values?

Jump to solution

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

Alfresco Employee

Re: Why task list api returning null values?

Jump to solution

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?

Active Member II

Re: Why task list api returning null values?

Jump to solution

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.

Active Member II

Re: Why task list api returning null values?

Jump to solution

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

View solution in original post

Active Member II

Re: Why task list api returning null values?

Jump to solution

Bassam Al-Sarori‌ I am using APS version 1.7