How to access runtimeService/DelegateExecution from a springboot Java class


I want to set up a spring boot project in Java (embedded Process Engine).
I will have a class which will catch some alerts on a specific endpoint.

public class AlertController {
    RuntimeService runtimeService;

    @RequestMapping(value = "/alerts", method = RequestMethod.POST)
    public NotificationDTO getAlerts(@RequestBody NotificationDTO notificationDTO) {
      //put in NotificationDTO object the data from the alert.
     //transfer this NotificationDTO object into a process variable OR
     //interact with running process instances (e.g. complete a task or update a process variable).


How can I access the runtimeService or the DelegateExecution?
Is the above way with @Autowired correct?

And from modeling perspective, do I need to have any BPMN element to catch these events, or is the Rest Controller enought?