How to embed engine into a Spring Boot application without REST api and Webapp

I’ve got a case that a BPMN process runs within a Spring Boot application. That is to say, the process just is called just as a normal business logic code, therefore there is unnecessory to include REST api or Webapp in such an application.

May I know how it can be implemented please? I found the camunda guide/document and some other sample applcations are always including the two component.

Sure,
It just requires you to change the dependencies from

    <dependency>
      <groupId>org.camunda.bpm.springboot</groupId>
      <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
    </dependency>


    <dependency>
      <groupId>org.camunda.bpm.springboot</groupId>
      <artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
    </dependency>

To this:

    <dependency>
      <groupId>org.camunda.bpm.springboot</groupId>
      <artifactId>camunda-bpm-spring-boot-starter</artifactId>
    </dependency>