return queryResource.taskSummaryQuery();
}
@Override
public Response getTask(long taskId) {
TaskCommand<?> cmd = new GetTaskCommand(taskId);
JaxbTask task = (JaxbTask) doRestTaskOperationWithTaskId(taskId, cmd);
if( task == null ) {
throw KieRemoteRestOperationException.notFound("Task " + taskId + " could not be found.");
}
return createCorrectVariant(task, headers);