Retrieve a task comment and write to another task

Hi Guys!

Good day, I am reaching out to anyone who can help me understand on how I can retrieve the comments made from one task so I can place it to another task, since right now any comment made to a task disappears when you move on to another task. The goal is to have continuity for comments made for the whole process.

I am also fairly new to Java concepts so please bear with me…

so far here are the packages that I’m trying to work with.

image

Knowing that these are interfaces, this would mean that it will require me to use all the methods and write code to it.

But then the challenge again is how do I pull those camunda system variables such as process instance id, task id, comments etc.

Am I missing a package/class that I must extend to?

Thank you!