Flowable UI with Spring Boot app

I want to accomplish is to design my process model using the modeler running on port 8080 and then deploy this process into the Tomcat server running my Spring Boot 2 application. Thereafter, I should be able to monitor this process using the Admin UI

Hi,

Can you explain in a bit more detail what your exact question is?
Is there something you have tried that does not work?

Depending on your deployment scenario, the Flowable UI apps run on port 8080. That contains the modeler.
You can configure Flowable Admin to communicate with your custom Spring Boot application containing the Flowable REST API.
You can use Flowable Admin to monitor the engines but also deploy apps (which you create in Modeler) to the engine(s).

Hope this helps,

Yvo

Hi @yvo ,
Actaully i want to run my SpringBoot app with flowable ui like modeler so i added

org.flowable
flowable-spring-boot-starter-ui-modeler
6.6.0

but i am not sure how to acess Modeler Api after i do this
Here is my full POM.XML

<?xml version="1.0" encoding="UTF-8"?>


4.0.0

org.springframework.boot
spring-boot-starter-parent
2.4.3


com.example
demo
0.0.1-SNAPSHOT
demo
war

<description>Demo project for Spring Boot</description>
<properties>
	<java.version>1.8</java.version>
</properties>
<dependencies>
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-web</artifactId>
	</dependency>
org.flowable flowable-engine 6.6.0 org.flowable flowable-spring-boot-starter 6.6.0 org.flowable flowable-spring-boot-starter-ui-modeler 6.6.0 org.flowable flowable-spring-boot-starter-rest-api 6.6.0
	<dependency>
		<groupId>com.h2database</groupId>
		<artifactId>h2</artifactId>
		<scope>runtime</scope>
	</dependency>
	<dependency>
		<groupId>org.projectlombok</groupId>
		<artifactId>lombok</artifactId>
		<optional>true</optional>
	</dependency>
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-test</artifactId>
		<scope>test</scope>
	</dependency>
</dependencies>

<build>
	<plugins>
		<plugin>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-maven-plugin</artifactId>
			<configuration>
				<excludes>
					<exclude>
						<groupId>org.projectlombok</groupId>
						<artifactId>lombok</artifactId>
					</exclude>
				</excludes>
			</configuration>
		</plugin>
	</plugins>
</build>

is there any configuration should i set in application.properties?
what is the api should i hit in my browser to see my modeler UI?

any help is appriciated
thanks
Sai

Logs:

2021-03-17 07:46:43.749 INFO 4052 — [ main] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at ‘/h2-console’. Database available at ‘jdbc:h2:mem:557f13b9-ac8a-4bd6-82fc-f03474947d1f’
2021-03-17 07:46:44.018 INFO 4052 — [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService ‘applicationTaskExecutor’
2021-03-17 07:46:44.299 INFO 4052 — [ main] o.f.s.b.c.CmmnEngineAutoConfiguration : No deployment resources were found for autodeployment
2021-03-17 07:46:44.381 INFO 4052 — [ main] o.f.s.b.dmn.DmnEngineAutoConfiguration : No deployment resources were found for autodeployment
2021-03-17 07:46:44.424 INFO 4052 — [ main] o.f.s.b.f.FormEngineAutoConfiguration : No deployment resources were found for autodeployment
2021-03-17 07:46:44.464 INFO 4052 — [ main] o.f.s.b.e.EventRegistryAutoConfiguration : No deployment resources were found for autodeployment
2021-03-17 07:46:44.488 INFO 4052 — [ main] o.f.s.b.app.AppEngineAutoConfiguration : No deployment resources were found for autodeployment
2021-03-17 07:46:44.516 INFO 4052 — [ main] o.f.a.s.SpringAppEngineConfiguration : Found 7 Engine Configurators in total:
2021-03-17 07:46:44.516 INFO 4052 — [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.engine.spring.configurator.SpringProcessEngineConfigurator (priority:50000)
2021-03-17 07:46:44.516 INFO 4052 — [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator (priority:100000)
2021-03-17 07:46:44.516 INFO 4052 — [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.idm.spring.configurator.SpringIdmEngineConfigurator (priority:150000)
2021-03-17 07:46:44.517 INFO 4052 — [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.dmn.spring.configurator.SpringDmnEngineConfigurator (priority:200000)
2021-03-17 07:46:44.517 INFO 4052 — [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.form.spring.configurator.SpringFormEngineConfigurator (priority:300000)
2021-03-17 07:46:44.517 INFO 4052 — [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.content.spring.configurator.SpringContentEngineConfigurator (priority:400000)
2021-03-17 07:46:44.517 INFO 4052 — [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.cmmn.spring.configurator.SpringCmmnEngineConfigurator (priority:500000)
2021-03-17 07:46:44.517 INFO 4052 — [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.engine.spring.configurator.SpringProcessEngineConfigurator (priority:50000)
2021-03-17 07:46:44.660 INFO 4052 — [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator (priority:100000)
2021-03-17 07:46:44.665 INFO 4052 — [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.idm.spring.configurator.SpringIdmEngineConfigurator (priority:150000)
2021-03-17 07:46:44.669 INFO 4052 — [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.dmn.spring.configurator.SpringDmnEngineConfigurator (priority:200000)
2021-03-17 07:46:44.674 INFO 4052 — [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.form.spring.configurator.SpringFormEngineConfigurator (priority:300000)
2021-03-17 07:46:44.681 INFO 4052 — [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.content.spring.configurator.SpringContentEngineConfigurator (priority:400000)
2021-03-17 07:46:44.685 INFO 4052 — [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.cmmn.spring.configurator.SpringCmmnEngineConfigurator (priority:500000)
2021-03-17 07:46:46.196 INFO 4052 — [ main] o.f.a.s.SpringAppEngineConfiguration : Executing configure() of class org.flowable.engine.spring.configurator.SpringProcessEngineConfigurator (priority:50000)
2021-03-17 07:46:46.406 INFO 4052 — [ main] o.f.c.e.impl.db.CommonDbSchemaManager : performing create on common with resource org/flowable/common/db/create/flowable.h2.create.common.sql
2021-03-17 07:46:46.423 INFO 4052 — [ main] o.f.i.s.i.d.IdentityLinkDbSchemaManager : performing create on identitylink with resource org/flowable/identitylink/service/db/create/flowable.h2.create.identitylink.sql
2021-03-17 07:46:46.429 INFO 4052 — [ main] o.f.i.s.i.d.IdentityLinkDbSchemaManager : performing create on identitylink.history with resource org/flowable/identitylink/service/db/create/flowable.h2.create.identitylink.history.sql
2021-03-17 07:46:46.435 INFO 4052 — [ main] o.f.e.s.i.db.EntityLinkDbSchemaManager : performing create on entitylink with resource org/flowable/entitylink/service/db/create/flowable.h2.create.entitylink.sql
2021-03-17 07:46:46.439 INFO 4052 — [ main] o.f.e.s.i.db.EntityLinkDbSchemaManager : performing create on entitylink.history with resource org/flowable/entitylink/service/db/create/flowable.h2.create.entitylink.history.sql
2021-03-17 07:46:46.445 INFO 4052 — [ main] e.s.i.d.EventSubscriptionDbSchemaManager : performing create on eventsubscription with resource
2021-03-17 07:46:50.071 INFO 4052 — [ main] liquibase.changelog.ChangeSet : Foreign key constraint added to ACT_DE_MODEL_RELATION (parent_model_id)
2021-03-17 07:46:50.072 INFO 4052 — [ main] liquibase.changelog.ChangeSet : Foreign key constraint added to ACT_DE_MODEL_RELATION (model_id)
2021-03-17 07:46:50.072 INFO 4052 — [ main] liquibase.changelog.ChangeSet : ChangeSet META-INF/liquibase/flowable-modeler-app-db-changelog.xml::1::flowable ran successfully in 14ms
2021-03-17 07:46:50.079 INFO 4052 — [ main] liquibase.changelog.ChangeSet : Columns tenant_id(varchar(255)) added to ACT_DE_MODEL
2021-03-17 07:46:50.083 INFO 4052 — [ main] liquibase.changelog.ChangeSet : Columns tenant_id(varchar(255)) added to ACT_DE_MODEL_HISTORY
2021-03-17 07:46:50.083 INFO 4052 — [ main] liquibase.changelog.ChangeSet : ChangeSet META-INF/liquibase/flowable-modeler-app-db-changelog.xml::3::flowable ran successfully in 9ms
2021-03-17 07:46:50.085 INFO 4052 — [ main] l.lockservice.StandardLockService : Successfully released change log lock
2021-03-17 07:46:50.368 INFO 4052 — [ main] o.f.j.s.i.a.AbstractAsyncExecutor : Starting up the async job executor [org.flowable.spring.job.service.SpringAsyncExecutor].
2021-03-17 07:46:50.369 INFO 4052 — [ Thread-1] o.f.j.s.i.a.AcquireAsyncJobsDueRunnable : starting to acquire async jobs due
2021-03-17 07:46:50.375 INFO 4052 — [ Thread-2] o.f.j.s.i.a.AcquireTimerJobsRunnable : starting to acquire async jobs due
2021-03-17 07:46:50.375 INFO 4052 — [ Thread-3] o.f.j.s.i.a.ResetExpiredJobsRunnable : starting to reset expired jobs for engine cmmn
2021-03-17 07:46:50.377 INFO 4052 — [ main] o.f.j.s.i.a.AbstractAsyncExecutor : Starting up the async job executor [org.flowable.spring.job.service.SpringAsyncExecutor].
2021-03-17 07:46:50.378 INFO 4052 — [ Thread-4] o.f.j.s.i.a.AcquireAsyncJobsDueRunnable : starting to acquire async jobs due
2021-03-17 07:46:50.382 INFO 4052 — [ Thread-5] o.f.j.s.i.a.AcquireTimerJobsRunnable : starting to acquire async jobs due
2021-03-17 07:46:50.383 INFO 4052 — [ Thread-6] o.f.j.s.i.a.ResetExpiredJobsRunnable : starting to reset expired jobs for engine bpmn
2021-03-17 07:46:50.914 INFO 4052 — [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'Flowable Modeler App Servlet’
2021-03-17 07:46:50.914 INFO 4052 — [ main] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'Flowable Modeler App Servlet’
2021-03-17 07:46:51.149 INFO 4052 — [ main] o.s.web.servlet.DispatcherServlet : Completed initialization in 235 ms
2021-03-17 07:46:51.150 INFO 4052 — [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'Flowable Modeler App API Servlet’
2021-03-17 07:46:51.150 INFO 4052 — [ main] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'Flowable Modeler App API Servlet’
2021-03-17 07:46:51.203 INFO 4052 — [ main] o.s.web.servlet.DispatcherServlet : Completed initialization in 53 ms
2021-03-17 07:46:51.205 INFO 4052 — [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ‘’
2021-03-17 07:46:51.224 INFO 4052 — [ main] com.example.demo.DemoApplication : Started DemoApplication in 10.707 seconds (JVM running for 11.52)

If you want the Flowable engine(s) and the REST API available in your custom Spring Boot app then you don’t need the UI starters but the flowable-spring-boot-starter-rest starter will suffice.

For example the Process engine’s REST API will by default be exposed on http://host:port/process-api/ …

You can look here for further info;

Yvo

@yvo how can u see running processinstances in UI

(no need to reference me directly)

What do you mean;
Manage them in Flowable Admin? Or see the running processes ( / workflows) that you’ve created; deployed; and started in Flowable Task?

Yvo

basically i started my spring boot app in eclipse and i started process instances using custom rest controller .
But not able to see anything when i hit localhost:8080/flowable-ui

I’m sorry but this is insufficient info to provide help.
In order to analyse why ‘this just does not work’ we’ll need more info about your configuration, possible stack traces etc etc.

Perhaps start with the default Flowable UI distribution and see how things are working.
After that start building it up from scratch.