Commit Graph

20 Commits

Author SHA1 Message Date
Janne Valkealahti
0c3ea7fb2d Add initial action to repository config
- Now RepositoryState can have initial action
  if it is an initial state.
- Implement all needed tests.
- Fixes #281
2016-11-23 13:55:52 +00:00
Janne Valkealahti
fd6fcb6ee2 Add redis repository config support
- Change machine id as empty string instead of null
  if it's not set.
- Implement domain classes for redis.
- Shared tests.
- Fixes #267
2016-11-05 10:04:20 +00:00
Janne Valkealahti
83e59c2a60 Add support for submachine refs
- Relates to #262
2016-10-23 06:50:21 +01:00
Janne Valkealahti
2a74efd5e5 Add support for deferred events
- Relates to #262
2016-10-18 14:58:48 +01:00
Janne Valkealahti
a4c8ddcbdd Add support for end states
- Adding end state construction
- Relates to #262
2016-10-18 09:38:12 +01:00
Janne Valkealahti
36a87493f2 Add support for join/fork states
- Adding join/fork state construction
- Relates to #262
2016-10-18 08:11:10 +01:00
Janne Valkealahti
543c906c35 Add support for entry/exit states
- Adding entry/exit state construction
- Relates to #262
2016-10-11 15:43:02 +01:00
Janne Valkealahti
bd6696920f Add support for junction states
- Adding junction state construction and
  guard resolving.
- Relates to #262
2016-10-11 10:50:08 +01:00
Janne Valkealahti
8e219cffcc Refactor repository actions/guards
- Make RepositoryGuard and RepositoryAction work exactly
  like RepositoryState what comes for class structure
  and how things are saved and used via populator.
- Relates to #262
2016-10-10 20:00:48 +01:00
Janne Valkealahti
de3a9341de Add support for choice states
- Adding choice state construction and
  guard resolving.
- Relates to #262
2016-10-10 08:54:28 +01:00
Janne Valkealahti
d06d45580a Add support for regions
- Add region id to RepositoryState and hook it
  via RepositoryStateMachineModelFactory.
- Relates to #262
2016-10-09 21:22:05 +01:00
Janne Valkealahti
a6d7040199 Add support for history states
- Add PseudoStateKind to RepositoryState.
- Hook shallow and deep historys in
  RepositoryStateMachineModelFactory
- Relates to #262
2016-10-09 17:38:35 +01:00
Janne Valkealahti
3cc33a6fef Fix parent state ref
- For RepositoryState, its parent state is now
  defined as RepositoryState as well allowing
  to reference from a json files.
- Relates to #262
2016-10-09 17:04:36 +01:00
Janne Valkealahti
c7951c5001 Use references in RepositoryTransition
- Refactor so that we can create RepositoryState in one place
  and then reference to it from JpaRepositoryTransition impls.
- New common top class BaseRepositoryEntity for entities
- Change RepositoryState and RepositoryTransition to be abstract
  classes instead of interfaces.
- New custom StateMachineJackson2RepositoryPopulatorFactoryBean and
  StateMachineJackson2ResourceReader handling json refs.
- Relates to #262
2016-10-09 10:21:22 +01:00
Janne Valkealahti
c016fd6e06 Add repository config guards
- Add guard to RepositoryTransition
- New GuardRepository.
- Relates to #262
2016-10-02 16:28:32 +01:00
Janne Valkealahti
ddf81c78a0 Add repository config transition type
- Add transition type to RepositoryTransition
- Relates to #262
2016-10-02 15:30:01 +01:00
Janne Valkealahti
0b6f67ece4 Add repository config actions
- Add action to RepositoryTransition, state/entry/exit
  actions to RepositoryState.
- New ActionsRepository.
- Relates to #262
2016-10-02 14:42:12 +01:00
Janne Valkealahti
de556f0d54 Add repository config substates
- Add parent state to RepositoryState
  and use it in model factory.
- Relates to #262
2016-10-01 09:34:31 +01:00
Janne Valkealahti
49bae38eb3 Hook StateMachineModelFactory and StateMachineFactory together
- Change so that machine id used in StateMachineFactory
  can use same id in StateMachineModelFactory which now
  extended with method build(String machineId).
- Polish repo and jpa classes.
- Fixes #255
2016-09-25 10:08:57 +01:00
Janne Valkealahti
0d329d9e57 Add initial infra for config repository
- Initial infra for config abstraction with
  Spring Data Repositories via RepositoryStateMachineModelFactory.
- Initial jpa impl.
- Initial jpa sample atop of H2 DB.
- Relates to #250
2016-09-23 17:26:39 +01:00