Using Rest API in spring boot app (Engine ver. 7.1)

Hi there,

i am new with Flowable. I can’t find any valid documentation for using Flowable API Rest in my Spring Boot application to handle my own engine.

any help will be appreciated.
thanks

hello, is easy, just add this dependecies to your pom:

<dependency>
    <groupId>org.flowable</groupId>
    <artifactId>flowable-spring-boot-starter-rest</artifactId>
    <version>7.1.0</version>
</dependency>
<dependency>
    <groupId>org.flowable</groupId>
    <artifactId>flowable-spring-boot-starter</artifactId>
    <version>7.1.0</version>
</dependency>

and for custom configuration, create a @Configuration class like

@Configuration
public class FlowableConfig {
    @Bean
    public ProcessEngineConfigurationConfigurer processEngineConfigurer() {
        return processEngineConfiguration -> {
           
        };
    }
}

i hope its work :slight_smile:

<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>3.2.0</version>
		<relativePath />
	</parent>

	<groupId>org.flowable</groupId>
	<artifactId>holidayrequest</artifactId>
	<version>0.0.1-SNAPSHOT</version>

	<properties>
		<java.version>17</java.version>
		<flowable.version>7.1.0</flowable.version>
	</properties>


	<dependencies>

		<dependency>
			<groupId>org.flowable</groupId>
			<artifactId>flowable-spring-boot-starter-rest</artifactId>
			<version>${flowable.version}</version>
		</dependency>

		<dependency>
			<groupId>com.h2database</groupId>
			<artifactId>h2</artifactId>
		</dependency>


	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
		</plugins>
	</build>

</project>

package flowable.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class MyApplication {

public static void main(String[] args) {
	SpringApplication.run(MyApplication.class, args);
}

}

It’s not working still, as you can see it’s a minimal project

i have a few questions
Is there any log i could check to see if the flowable rest controllers are scanned?
what’s the default swagger url?

thnaks guys

Got the problem.
Obsolete documentation.

Url definitions are wrong. for instance:

List of processes definitions reports: ```
GET repository/process-definitions
but is process-api/repository/process-definitions

and this for all.

please fix it!

thanks anyway!

1 Like