taskService.getTaskContent to get data inputs of a task.
for task output you would need to create command based on GetTaskContentCommand to get the data and use it via execute method of task service. in 6.2 it will be provided as part of the services.
Maciej, you're helpful as always. I extend GetTaskContentCommand and with contentService.getContentById(taskById.getTaskData().getOutputContentId()) it works fine.