You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docusaurus/docs/bpmn/ch05a-Spring-Boot.md
+71-32Lines changed: 71 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ The Spring Boot - Flowable integration has been developed together with Spring c
11
11
12
12
## Compatibility
13
13
14
-
Flowable supports Spring Boot 3.x.
14
+
Flowable supports Spring Boot 4.x.
15
15
16
16
## Getting started
17
17
@@ -46,35 +46,74 @@ You can now run your Spring Boot application:
46
46
47
47
You will see an output like this:
48
48
49
-
. ____ _ __ _ _
50
-
/\\ / ___'___ _ _(_)_____ _ \ \ \ \
49
+
50
+
. ____ _ __ _ _
51
+
/\\ / ___'___ _ _(_)_____ _ \ \ \ \
51
52
( ( )\___ | '_ | '_| | '_\/_` | \ \ \ \
52
-
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
53
-
' |____| .__|_| |_|_| |_\__, | / / / /
54
-
=========|_|==============|___/=/_/_/_/
55
-
:: Spring Boot :: (v3.1.3)
56
-
57
-
2023-09-21T08:25:58.169+02:00 INFO 6126 --- [ main] org.flowable.example.MyApplication : Starting MyApplication using Java 17.0.6 with PID 6126 (/Users/flowable/workspaces/flowable-engine-workspace/flowable-spring-boot-example/target/classes started by flowable in /Users/flowable/workspaces/flowable-engine-workspace/flowable-spring-boot-example)
58
-
2023-09-21T08:25:58.171+02:00 INFO 6126 --- [ main] org.flowable.example.MyApplication : No active profile set, falling back to 1 default profile: "default"
59
-
2023-09-21T08:25:58.422+02:00 INFO 6126 --- [ main] o.f.s.b.app.AppEngineAutoConfiguration : No deployment resources were found for autodeployment
60
-
2023-09-21T08:25:58.454+02:00 INFO 6126 --- [ main] o.f.s.b.ProcessEngineAutoConfiguration : No deployment resources were found for autodeployment
61
-
2023-09-21T08:25:58.517+02:00 INFO 6126 --- [ main] o.f.s.b.c.CmmnEngineAutoConfiguration : No deployment resources were found for autodeployment
62
-
2023-09-21T08:25:58.546+02:00 INFO 6126 --- [ main] o.f.s.b.dmn.DmnEngineAutoConfiguration : No deployment resources were found for autodeployment
63
-
2023-09-21T08:25:58.615+02:00 INFO 6126 --- [ main] o.f.s.b.e.EventRegistryAutoConfiguration : No deployment resources were found for autodeployment
64
-
2023-09-21T08:25:58.624+02:00 INFO 6126 --- [ main] o.f.a.s.SpringAppEngineConfiguration : Found 5 Engine Configurators in total:
65
-
2023-09-21T08:25:58.624+02:00 INFO 6126 --- [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.engine.spring.configurator.SpringProcessEngineConfigurator (priority:50000)
66
-
2023-09-21T08:25:58.624+02:00 INFO 6126 --- [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator (priority:100000)
67
-
2023-09-21T08:25:58.624+02:00 INFO 6126 --- [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.idm.spring.configurator.SpringIdmEngineConfigurator (priority:150000)
68
-
2023-09-21T08:25:58.624+02:00 INFO 6126 --- [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.dmn.spring.configurator.SpringDmnEngineConfigurator (priority:200000)
69
-
2023-09-21T08:25:58.624+02:00 INFO 6126 --- [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.cmmn.spring.configurator.SpringCmmnEngineConfigurator (priority:500000)
70
-
2023-09-21T08:25:58.624+02:00 INFO 6126 --- [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.engine.spring.configurator.SpringProcessEngineConfigurator (priority:50000)
71
-
2023-09-21T08:25:58.635+02:00 INFO 6126 --- [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator (priority:100000)
72
-
2023-09-21T08:25:58.636+02:00 INFO 6126 --- [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.idm.spring.configurator.SpringIdmEngineConfigurator (priority:150000)
73
-
2023-09-21T08:25:58.638+02:00 INFO 6126 --- [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.dmn.spring.configurator.SpringDmnEngineConfigurator (priority:200000)
74
-
2023-09-21T08:25:58.639+02:00 INFO 6126 --- [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.cmmn.spring.configurator.SpringCmmnEngineConfigurator (priority:500000)
2026-03-16T22:21:06.576+01:00 INFO 43702 --- [ main] com.example.demo.Application : Starting Application using Java 25 with PID 43702 (/Users/filiphr/Downloads/demo 31/target/classes started by filiphr in /Users/filiphr/Downloads/demo 31)
60
+
2026-03-16T22:21:06.578+01:00 INFO 43702 --- [ main] com.example.demo.Application : No active profile set, falling back to 1 default profile: "default"
61
+
2026-03-16T22:21:07.054+01:00 INFO 43702 --- [ main] o.s.boot.tomcat.TomcatWebServer : Tomcat initialized with port 8080 (http)
62
+
2026-03-16T22:21:07.063+01:00 INFO 43702 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2026-03-16T22:21:07.091+01:00 INFO 43702 --- [ main] b.w.c.s.WebApplicationContextInitializer : Root WebApplicationContext: initialization completed in 492 ms
65
+
2026-03-16T22:21:07.267+01:00 INFO 43702 --- [ main] o.f.s.b.app.AppEngineAutoConfiguration : No deployment resources were found for autodeployment
66
+
2026-03-16T22:21:07.313+01:00 INFO 43702 --- [ main] o.f.s.b.ProcessEngineAutoConfiguration : No deployment resources were found for autodeployment
67
+
2026-03-16T22:21:07.323+01:00 INFO 43702 --- [ main] o.f.c.e.i.a.DefaultAsyncTaskExecutor : Creating thread pool queue of size 100
68
+
2026-03-16T22:21:07.324+01:00 INFO 43702 --- [ main] o.f.c.e.i.a.DefaultAsyncTaskExecutor : Creating thread factory with naming pattern flowable-async-task-invoker-%d
69
+
2026-03-16T22:21:07.324+01:00 INFO 43702 --- [ main] o.f.c.e.i.a.DefaultAsyncTaskExecutor : Creating executor service with corePoolSize 8, maxPoolSize 8 and keepAliveTime 5000
70
+
2026-03-16T22:21:07.361+01:00 INFO 43702 --- [ main] o.f.s.b.c.CmmnEngineAutoConfiguration : No deployment resources were found for autodeployment
71
+
2026-03-16T22:21:07.385+01:00 INFO 43702 --- [ main] o.f.s.b.dmn.DmnEngineAutoConfiguration : No deployment resources were found for autodeployment
72
+
2026-03-16T22:21:07.398+01:00 INFO 43702 --- [ main] o.f.s.b.e.EventRegistryAutoConfiguration : No deployment resources were found for autodeployment
73
+
2026-03-16T22:21:07.420+01:00 INFO 43702 --- [ main] o.f.a.s.SpringAppEngineConfiguration : Found 5 Engine Configurators in total:
74
+
2026-03-16T22:21:07.420+01:00 INFO 43702 --- [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.engine.spring.configurator.SpringProcessEngineConfigurator (priority:50000)
75
+
2026-03-16T22:21:07.420+01:00 INFO 43702 --- [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator (priority:100000)
76
+
2026-03-16T22:21:07.420+01:00 INFO 43702 --- [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.idm.spring.configurator.SpringIdmEngineConfigurator (priority:150000)
77
+
2026-03-16T22:21:07.420+01:00 INFO 43702 --- [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.dmn.spring.configurator.SpringDmnEngineConfigurator (priority:200000)
78
+
2026-03-16T22:21:07.420+01:00 INFO 43702 --- [ main] o.f.a.s.SpringAppEngineConfiguration : class org.flowable.cmmn.spring.configurator.SpringCmmnEngineConfigurator (priority:500000)
79
+
2026-03-16T22:21:07.420+01:00 INFO 43702 --- [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.engine.spring.configurator.SpringProcessEngineConfigurator (priority:50000)
80
+
2026-03-16T22:21:07.436+01:00 INFO 43702 --- [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator (priority:100000)
81
+
2026-03-16T22:21:07.438+01:00 INFO 43702 --- [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.idm.spring.configurator.SpringIdmEngineConfigurator (priority:150000)
82
+
2026-03-16T22:21:07.439+01:00 INFO 43702 --- [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.dmn.spring.configurator.SpringDmnEngineConfigurator (priority:200000)
83
+
2026-03-16T22:21:07.441+01:00 INFO 43702 --- [ main] o.f.a.s.SpringAppEngineConfiguration : Executing beforeInit() of class org.flowable.cmmn.spring.configurator.SpringCmmnEngineConfigurator (priority:500000)
2026-03-16T22:21:07.968+01:00 INFO 43702 --- [ main] o.f.a.s.SpringAppEngineConfiguration : Executing configure() of class org.flowable.engine.spring.configurator.SpringProcessEngineConfigurator (priority:50000)
88
+
2026-03-16T22:21:08.032+01:00 INFO 43702 --- [ main] o.f.engine.impl.ProcessEngineImpl : ProcessEngine default created
89
+
2026-03-16T22:21:08.032+01:00 INFO 43702 --- [ main] o.f.a.s.SpringAppEngineConfiguration : Executing configure() of class org.flowable.eventregistry.spring.configurator.SpringEventRegistryConfigurator (priority:100000)
90
+
2026-03-16T22:21:08.038+01:00 INFO 43702 --- [ main] o.f.e.impl.EventRegistryEngineImpl : EventRegistryEngine default created
91
+
2026-03-16T22:21:08.039+01:00 INFO 43702 --- [ main] o.f.a.s.SpringAppEngineConfiguration : Executing configure() of class org.flowable.idm.spring.configurator.SpringIdmEngineConfigurator (priority:150000)
92
+
2026-03-16T22:21:08.041+01:00 INFO 43702 --- [ main] o.f.idm.engine.impl.IdmEngineImpl : IdmEngine default created
93
+
2026-03-16T22:21:08.042+01:00 INFO 43702 --- [ main] o.f.a.s.SpringAppEngineConfiguration : Executing configure() of class org.flowable.dmn.spring.configurator.SpringDmnEngineConfigurator (priority:200000)
94
+
2026-03-16T22:21:08.047+01:00 INFO 43702 --- [ main] o.f.dmn.engine.impl.DmnEngineImpl : DmnEngine default created
95
+
2026-03-16T22:21:08.047+01:00 INFO 43702 --- [ main] o.f.a.s.SpringAppEngineConfiguration : Executing configure() of class org.flowable.cmmn.spring.configurator.SpringCmmnEngineConfigurator (priority:500000)
96
+
2026-03-16T22:21:08.072+01:00 INFO 43702 --- [ main] o.f.cmmn.engine.impl.CmmnEngineImpl : CmmnEngine default created
97
+
2026-03-16T22:21:08.085+01:00 INFO 43702 --- [ main] o.f.c.e.impl.db.CommonDbSchemaManager : performing create on common with resource org/flowable/common/db/create/flowable.h2.create.common.sql
98
+
2026-03-16T22:21:08.124+01:00 INFO 43702 --- [ main] o.f.a.engine.impl.db.AppDbSchemaManager : performing create on app with resource org/flowable/app/db/create/flowable.h2.create.app.sql
99
+
2026-03-16T22:21:08.129+01:00 INFO 43702 --- [ main] o.f.e.impl.db.ProcessDbSchemaManager : performing create on engine with resource org/flowable/db/create/flowable.h2.create.engine.sql
100
+
2026-03-16T22:21:08.145+01:00 INFO 43702 --- [ main] o.f.e.impl.db.ProcessDbSchemaManager : performing create on history with resource org/flowable/db/create/flowable.h2.create.history.sql
101
+
2026-03-16T22:21:08.148+01:00 INFO 43702 --- [ main] o.f.d.engine.impl.db.DmnDbSchemaManager : performing create on dmn with resource org/flowable/dmn/db/create/flowable.h2.create.dmn.sql
102
+
2026-03-16T22:21:08.150+01:00 INFO 43702 --- [ main] o.f.c.e.impl.db.CmmnDbSchemaManager : performing create on cmmn with resource org/flowable/cmmn/db/create/flowable.h2.create.cmmn.sql
103
+
2026-03-16T22:21:08.156+01:00 INFO 43702 --- [ main] o.f.i.engine.impl.db.IdmDbSchemaManager : performing create on identity with resource org/flowable/idm/db/create/flowable.h2.create.identity.sql
104
+
2026-03-16T22:21:08.160+01:00 INFO 43702 --- [ main] o.f.e.impl.db.EventDbSchemaManager : performing create on eventregistry with resource org/flowable/eventregistry/db/create/flowable.h2.create.eventregistry.sql
105
+
2026-03-16T22:21:08.162+01:00 INFO 43702 --- [ main] o.f.app.engine.impl.AppEngineImpl : AppEngine default created
106
+
2026-03-16T22:21:08.186+01:00 INFO 43702 --- [ main] o.f.e.impl.cmd.ValidateV5EntitiesCmd : Total of v5 deployments found: 0
107
+
2026-03-16T22:21:08.259+01:00 INFO 43702 --- [ main] o.f.j.s.i.a.AbstractAsyncExecutor : Starting up the async job executor [org.flowable.spring.job.service.SpringAsyncExecutor] for engine cmmn
108
+
2026-03-16T22:21:08.267+01:00 INFO 43702 --- [ Thread-3] o.f.j.s.i.a.ResetExpiredJobsRunnable : starting to reset expired jobs for engine cmmn
109
+
2026-03-16T22:21:08.268+01:00 INFO 43702 --- [ main] o.f.j.s.i.a.AbstractAsyncExecutor : Starting up the async job executor [org.flowable.spring.job.service.SpringAsyncExecutor] for engine bpmn
110
+
2026-03-16T22:21:08.268+01:00 INFO 43702 --- [ Thread-2] o.f.j.s.i.a.AcquireTimerJobsRunnable : starting to acquire async jobs due for engine cmmn
111
+
2026-03-16T22:21:08.268+01:00 INFO 43702 --- [ Thread-1] o.f.j.s.i.a.AcquireAsyncJobsDueRunnable : starting to acquire async jobs due for engine cmmn
112
+
2026-03-16T22:21:08.268+01:00 INFO 43702 --- [ Thread-4] o.f.j.s.i.a.AcquireAsyncJobsDueRunnable : starting to acquire async jobs due for engine bpmn
113
+
2026-03-16T22:21:08.268+01:00 INFO 43702 --- [ Thread-5] o.f.j.s.i.a.AcquireTimerJobsRunnable : starting to acquire async jobs due for engine bpmn
114
+
2026-03-16T22:21:08.268+01:00 INFO 43702 --- [ Thread-6] o.f.j.s.i.a.ResetExpiredJobsRunnable : starting to reset expired jobs for engine bpmn
115
+
2026-03-16T22:21:08.287+01:00 INFO 43702 --- [ main] o.s.boot.tomcat.TomcatWebServer : Tomcat started on port 8080 (http) with context path '/'
116
+
2026-03-16T22:21:08.290+01:00 INFO 43702 --- [ main] com.example.demo.Application : Started Application in 1.885 seconds (process running for 2.062)
78
117
79
118
So, by just adding the dependency to the classpath and using the *@SpringBootApplication* annotation a lot has happened behind the scenes:
80
119
@@ -160,9 +199,9 @@ For example, to switch to a MySQL database:
160
199
Remove H2 from the Maven dependencies and add the MySQL driver to the classpath:
161
200
162
201
<dependency>
163
-
<groupId>mysql</groupId>
164
-
<artifactId>mysql-connector-java</artifactId>
165
-
<version>5.1.45</version>
202
+
<groupId>com.mysql</groupId>
203
+
<artifactId>mysql-connector-j</artifactId>
204
+
<version>9.6.0</version>
166
205
</dependency>
167
206
168
207
When the app is now booted up, you’ll see it uses MySQL as database (and the HikariCP connection pooling framework):
0 commit comments