the completWithResults method hides the content marshalling stuff so you can simply pass your result data (usually Map) instead of preparing ContentData object first.
What results you want to get back after task is completed? When completing you are giving the results to the task server so you already have results...
I would like the system I am building to be a bit more interactive.
I am building my own REST API and when completing a task e.g. Verifying a user it would be helpful to get back the result from the human task to immediately notify the user that the verification failed.
I realise that this doesn't make sense.
I will use a custom service task to update a database and query that.
Slight misunderstanding on my part.