Not able to find the user operation logs

If i use the taskList and do claim and assign operations i able to get the User operation Logs.

But i am trying to do assign operations using java api
processEngine.getTaskService().claim(taskId, userId);
When doing so i am not able to get the user operation logs.
Is there some configuration that needs to be done for me to get that when a operation is done using the java api.

Have set the history-level as full using application.yaml context.

history-level: FULL
history-level-default: FULL