Files
spring-statemachine/spring-statemachine-samples/build.gradle
Janne Valkealahti 84ca0aec3e Refactor region handling and persistence
- Make kryo in AbstractKryoStateMachineSerialisationService aware of same classloader
  most likely use in an app. This takes away some of those weird kryo
  errors you see with a web apps.
- Add context references concept to StateMachineContext which can be used
  to store reference id and then individual running machines with regions
  can independently store their states. Whole machine state can then get
  restored more accurately.
- Add new `region(String id)` to StateConfigurer which can be used to set region id.
  This is equivalent as setting region id with json based machine structure where
  you need to define region id's with orthogonal regions are in use.
- Add new datajpamultipersist sample showing running regions and how those are
  persisted to a database.
- Fixes #617
- Fixes #605
- Fixes #615
2019-01-12 08:37:34 +00:00

173 lines
6.2 KiB
Groovy

description = 'Spring State Machine Samples Common'
project('spring-statemachine-samples-turnstile') {
description = 'Spring State Machine Turnstile Sample'
dependencies {
compile project(":spring-statemachine-samples-common")
}
}
project('spring-statemachine-samples-showcase') {
description = 'Spring State Machine Showcase Sample'
dependencies {
compile project(":spring-statemachine-samples-common")
}
}
project('spring-statemachine-samples-cdplayer') {
description = 'Spring State Machine CD Player Sample'
dependencies {
compile project(":spring-statemachine-samples-common")
}
}
project('spring-statemachine-samples-tasks') {
description = 'Spring State Machine Parallel Regions Sample'
dependencies {
compile project(":spring-statemachine-samples-common")
}
}
project('spring-statemachine-samples-washer') {
description = 'Spring State Machine History State Sample'
dependencies {
compile project(":spring-statemachine-samples-common")
}
}
project('spring-statemachine-samples-zookeeper') {
description = 'Spring State Machine Distributed Sample'
dependencies {
compile project(":spring-statemachine-samples-common")
compile project(":spring-statemachine-zookeeper")
}
}
project('spring-statemachine-samples-persist') {
description = 'Spring State Machine Persist Sample'
dependencies {
compile project(":spring-statemachine-samples-common")
compile project(":spring-statemachine-recipes-common")
compile ("org.hsqldb:hsqldb")
compile ("org.springframework:spring-jdbc")
}
}
project('spring-statemachine-samples-web') {
description = 'Spring State Machine Web Sample'
dependencies {
compile project(":spring-statemachine-cluster")
compile("org.springframework.boot:spring-boot-starter-security")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-websocket")
compile("org.springframework:spring-webmvc")
compile("org.springframework:spring-websocket")
compile("org.springframework.security:spring-security-messaging")
compile("org.springframework.session:spring-session-core")
}
}
project('spring-statemachine-samples-scope') {
description = 'Spring State Machine Web Scope Sample'
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
}
}
project('spring-statemachine-samples-security') {
description = 'Spring State Machine Web Security Sample'
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
compile("org.springframework.boot:spring-boot-starter-security")
compile("org.springframework.security:spring-security-config")
compile("org.springframework.security:spring-security-web")
}
}
project('spring-statemachine-samples-eventservice') {
description = 'Spring State Machine Event Service Sample'
dependencies {
compile project(":spring-statemachine-data-common:spring-statemachine-data-redis")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
compile("org.apache.commons:commons-pool2")
runtime("redis.clients:jedis")
}
}
project('spring-statemachine-samples-deploy') {
description = 'Spring State Machine Deploy Sample'
dependencies {
compile project(":spring-statemachine-uml")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
}
}
project('spring-statemachine-samples-ordershipping') {
description = 'Spring State Machine Order Shipping Sample'
dependencies {
compile project(":spring-statemachine-uml")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
}
}
project('spring-statemachine-samples-datajpa') {
description = 'Spring State Machine Data Jpa Sample'
dependencies {
compile project(":spring-statemachine-autoconfigure")
compile project(":spring-statemachine-data-common:spring-statemachine-data-jpa")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("org.springframework.boot:spring-boot-devtools")
compile("com.h2database:h2")
}
}
project('spring-statemachine-samples-datajpamultipersist') {
description = 'Spring State Machine Data Jpa Multi Persist Sample'
dependencies {
compile project(":spring-statemachine-autoconfigure")
compile project(":spring-statemachine-data-common:spring-statemachine-data-jpa")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("org.springframework.boot:spring-boot-devtools")
compile("com.h2database:h2")
}
}
project('spring-statemachine-samples-datapersist') {
description = 'Spring State Machine Data Persist Sample'
dependencies {
compile project(":spring-statemachine-autoconfigure")
compile project(":spring-statemachine-data-common:spring-statemachine-data-jpa")
compile project(":spring-statemachine-data-common:spring-statemachine-data-redis")
compile project(":spring-statemachine-data-common:spring-statemachine-data-mongodb")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("org.springframework.boot:spring-boot-starter-data-redis")
compile("org.springframework.boot:spring-boot-starter-data-mongodb")
compile("org.springframework.boot:spring-boot-devtools")
compile("com.h2database:h2")
}
}
project('spring-statemachine-samples-monitoring') {
description = 'Spring State Machine Monitoring Sample'
dependencies {
compile project(":spring-statemachine-autoconfigure")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
testCompile("com.jayway.jsonpath:json-path")
testCompile("com.jayway.jsonpath:json-path-assert")
}
}