Camunda task complete process

Hi,
I want to complete camunda process without passing any values.
Just compl task.

String taskProcess=task.taskAssignee(“ABC”).singleResult().getId();

taskService.complete(taskProcess);

Is correct approach. Can any pls guide me…

My task is pening with user task want to compl without passing any values. Please guide

Not really sure what’s going on in line

but if the variable taskProcess is the id of the task then this should work.

Here my query is… One task is waiting for user task. I want to compl this task without passing any values. Simply exit the task