Add repository config guards

- Add guard to RepositoryTransition
- New GuardRepository.
- Relates to #262
This commit is contained in:
Janne Valkealahti
2016-10-02 16:28:32 +01:00
parent ddf81c78a0
commit c016fd6e06
9 changed files with 210 additions and 2 deletions

View File

@@ -25,7 +25,11 @@
"_class": "org.springframework.statemachine.data.jpa.JpaRepositoryTransition",
"source": "S2",
"target": "S3",
"event": "E2"
"event": "E2",
"guard": {
"_class": "org.springframework.statemachine.data.jpa.JpaRepositoryGuard",
"spel": "true"
}
},
{
"_class": "org.springframework.statemachine.data.jpa.JpaRepositoryTransition",