How to call my GetMapping in Camunda Service Task

Hello.
I’m working on a project and I’m new to Camunda and Spring Boot.
I want to call my GetMapping in the Camunda Service Task and I don’t know how to do it.

I have a User Task that asks “Enter your Groupname” and I want to get that group name by a Service Task.

Please help me.

Thank you

Hi @erfannvb , Welcome to the forum :partying_face:

Are you referring GetMapping as processDefinitionKey?

If you want to access that group name in service task which was entered in user task, then you can access that group name from process variable/local variable, since the groupname is form data and it will be stored as variable. It can be accessed like below in delegates:

delegateTask.getVariable("groupName");