package click.kamil.examples.statemachine.inheritance.service;

import lombok.RequiredArgsConstructor;
import org.springframework.statemachine.StateMachine;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class ProcessingServiceImpl implements ProcessingService {

    private final StateMachine<String, String> stateMachine;

    @Override
    public void doProcess() {
        stateMachine.sendEvent("INHERITED_SUBMIT");
    }
}
