- New sample app eventservice which is used to demonstrate how redis is used as a repository for StateMachineContext. - Uses pooled request scope machine instances so that with every request a machine is reseted from a redis. - Provides UI to play around. - Provides rest endpoint to send 'pageview' events for processing. For example using curl command like: curl http://localhost:8080/feed -H "Content-Type: application/json" --data '{"user":"joe","id":"VIEW_I"}' - Fixes #160
96 lines
3.3 KiB
Groovy
96 lines
3.3 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:2.3.1")
|
|
compile ("org.springframework:spring-jdbc:$springVersion")
|
|
}
|
|
}
|
|
|
|
project('spring-statemachine-samples-web') {
|
|
description = 'Spring State Machine Web Sample'
|
|
dependencies {
|
|
compile project(":spring-statemachine-zookeeper")
|
|
compile("org.springframework.boot:spring-boot-starter-security:$springBootVersion")
|
|
compile("org.springframework.boot:spring-boot-starter-web:$springBootVersion")
|
|
compile("org.springframework.boot:spring-boot-starter-websocket:$springBootVersion")
|
|
compile("org.springframework:spring-webmvc:$springVersion")
|
|
compile("org.springframework:spring-websocket:$springVersion")
|
|
compile("org.springframework.security:spring-security-messaging:$springSecurityVersion")
|
|
compile("org.springframework.session:spring-session:$springSessionVersion")
|
|
}
|
|
}
|
|
|
|
project('spring-statemachine-samples-scope') {
|
|
description = 'Spring State Machine Web Scope Sample'
|
|
dependencies {
|
|
compile("org.springframework.boot:spring-boot-starter-thymeleaf:$springBootVersion")
|
|
}
|
|
}
|
|
|
|
project('spring-statemachine-samples-security') {
|
|
description = 'Spring State Machine Web Security Sample'
|
|
dependencies {
|
|
compile("org.springframework.boot:spring-boot-starter-thymeleaf:$springBootVersion")
|
|
compile("org.springframework.boot:spring-boot-starter-security:$springBootVersion")
|
|
compile("org.springframework.security:spring-security-config:$springSecurityVersion")
|
|
compile("org.springframework.security:spring-security-web:$springSecurityVersion")
|
|
}
|
|
}
|
|
|
|
project('spring-statemachine-samples-eventservice') {
|
|
description = 'Spring State Machine Event Service Sample'
|
|
dependencies {
|
|
compile project(":spring-statemachine-redis")
|
|
compile("org.springframework.boot:spring-boot-starter-thymeleaf:$springBootVersion")
|
|
// compile("org.springframework.boot:spring-boot-starter-redis:$springBootVersion")
|
|
compile("org.apache.commons:commons-pool2:2.4.2")
|
|
}
|
|
}
|