Requirements
The project requires Java 17/21.Set up a Java project
We start by setting up a Spring Boot application as an Apache Maven project inside Eclipse. This consists of three steps:- Create a new Maven project in Eclipse.
- Add the ASEE Flow and Spring Boot dependencies.
- Add a main class as an entry point for launching the Spring Boot application.
Create a new Maven project
First, set up a new Apache Maven based project. Let’s call it loan-approval-spring-boot. The screenshots below illustrate the settings we choose in Eclipse.

Add ASEE Flow and Spring Boot dependencies
The next step consists of setting up the Maven dependencies for the new project. Maven dependencies need to be added to thepom.xml file of the project. We add the Spring Boot BOM in the dependency management section and the ASEE Flow Spring Boot Starter for webapps, which automatically includes the ASEE Flow engine and web applications in the app. We also use spring-boot-maven-plugin, which does all the magic for packaging the Spring Boot application content together.
Add a main class to the Spring Boot application
Next, add an application class with a main method that will be the entry point for launching the Spring Boot application. The class has the@SpringBootApplication annotation, which implicitly adds several convenient features (autoconfiguration, component scan, and so on — see the Spring Boot docs). The class is added in the src/main/java folder in the org.camunda.bpm.getstarted.loanapproval package.
Build and run
Now you can perform the first build. Select thepom.xml in the Package Explorer, right-click, and select Run As > Maven Install.
Your first ASEE Flow Spring Boot application is ready. As a result of the build, you will have a JAR file in your target folder. This JAR is a Spring Boot application that embeds Tomcat as a web container, the ASEE Flow engine, and the ASEE Flow web application resources. When started, it uses an in-memory H2 database for the engine’s needs.
You can run the application by right-clicking the WebappExampleProcessApplication class and selecting Run As > Java Application. Wait until you see a line like this in the console:
java -jar command.