Using my Java Class in Camunda Service Task

Hello.
I’m new to camunda. I’m working on a project that

  1. With a User Task, the User must enter a group name (e.g. C# or Java or Python).
  2. With a Service Task, I have to get the usernames.

I don’t know how to call my Rest Controller in Camunda.

My code is like this

@GetMapping("groupmember")
public List<GroupMember> getAllMembers() {
    return groupMemberRepository.findAll();
}

@PostMapping("groupmember")
public GroupMember createMember(@RequestBody GroupMember groupMember) {
    return groupMemberRepository.save(groupMember);
}

@GetMapping("groupmember/{groupName}")
public ResponseEntity<List<GroupMember>> getMembersByGroupName(@PathVariable("groupName") String groupName) {
    return new ResponseEntity<List<GroupMember>>(groupMemberRepository.findByGroupName(groupName), HttpStatus.OK);
}

I don’t know what I have to do. Do I have to use JavaDelegation or JavaClass or something else?

Please help

Hi, you can see the usage of http-connector to do this.
see => GitHub - rob2universe/camunda-http-connector-example as an example
Best regards

I want to call getMembersByGroupName method. how can I set the assignments in camunda?

Please see this tuto, it can help you => CAMUNDA connectors. CAMUNDA GET and POST Request explained along with example. CAMUNDA REST API's - YouTube

Ok. I’ll see it. Thank you

You’re welcome

Hi again,
I saw the video and I could fix some of my problems. but I came across another problem.
I want to show the information in camunda but don’t know how to do it.