Thanks Donato for your reply!
Below is the output from swagger ui:
{
"task-instance": [
{
"task-id": 103,
"task-priority": 0,
"task-name": "Task1",
"task-subject": null,
"task-description": "",
"task-type": null,
"task-form": null,
"task-status": "Completed",
"task-actual-owner": "bcadmin",
"task-created-by": "bcadmin",
"task-created-on": {
"java.util.Date": 1559108197153
},
"task-activation-time": {
"java.util.Date": 1559108197153
},
"task-expiration-time": null,
"task-skippable": null,
"task-workitem-id": null,
"task-process-instance-id": 21,
"task-parent-id": null,
"task-process-id": "TestProject.sample",
"task-container-id": "TestProject_1.0.0-SNAPSHOT",
"task-pot-owners": null,
"task-excl-owners": null,
"task-business-admins": null,
"task-input-data": null,
"task-output-data": null
}
]
}
But when i am using above api using "kie-server-client-7.12.0.Final.jar", it doesn't return full response JSON. Below is the code snippet i am using.
String queryName = "jbpmHumanTasks";
String mapper = "UserTasks";
TaskQueryFilterSpec filterSpec = new TaskQueryFilterSpecBuilder().equalsTo(TaskField.PROCESSINSTANCEID, processInstanceId).get();
List<TaskInstance> query = queryClient.query(queryName, mapper, filterSpec, page, pageSize, TaskInstance.class);
Output:
[TaskInstance{id=103, name='Task1', description='', status='Completed', actualOwner='XXXX', processInstanceId=21, processId='TestProject.sample', containerId='TestProject_1.0.0-SNAPSHOT'}, TaskInstance{id=104, name='Task2', description='', status='Completed', actualOwner='XXXX', processInstanceId=21, processId='TestProject.sample', containerId='TestProject_1.0.0-SNAPSHOT'}]
In both the cases, same end point url is being called, but response json is different.
Is there any switch to enable full response? or am i missing any parameter?
Thanks,
Pankaj K.