Commit Graph

507 Commits

Author SHA1 Message Date
Janne Valkealahti
d92b4e54d0 Fix CdPlayerTests
- Attempt to make these tests more reliable
- testPlayWithCdLoadedDeckOpen using wring latch count
  which may cause test failures.
- Relates to #343
2017-04-10 15:20:49 +01:00
Janne Valkealahti
cf7b9d7e24 Fix StateMachineMonitorTests
- Attempt to make these tests more reliable
- Relates to #343
2017-04-10 14:58:48 +01:00
Janne Valkealahti
cfbe57274c Fix samples for packaging
- Temporary add build to depend on bootJar
  so that samples get created as fatjars.
- Required as boot's plugin is currently being
  re-implemented and this feature is a bit broken.
- Relates to #342
2017-04-10 11:59:57 +01:00
Janne Valkealahti
654c9b84a4 Update propdeps plugin to 0.0.8
- Relates to #342 and gradle 3.4 changes.
2017-04-06 18:21:16 +01:00
Janne Valkealahti
19b23e139c Upgrade gradle to 3.4.1
- Fixes #342
2017-04-06 13:34:56 +01:00
Janne Valkealahti
6ced0371d8 Disarm timers
- Trying to handle scenario where TimerTrigger keeps firing
  even if machine is stopped or has moved away from its
  hosting state.
- Explicitely handle trigger starts/stops in
  DefaultStateMachineExecutor when executor itself
  is started/stopped.
- Backport #321
- Relates to #307
2017-03-09 10:51:20 +00:00
Janne Valkealahti
688b61d5d2 Notify transition before calling its actions
- Add new api to Transition to expose calling
  its actions.
- Modify rest of a framework to first notify before
  calling transtion action.
- Backport #322
- Relates to #307
2017-03-09 10:51:20 +00:00
Janne Valkealahti
6e64797ac7 Support Connection Point References
- Add support to uml parser to properly
  detect and use exit/entry points if those
  are used via connection ref points with
  submachine references.
- Backport #323
- Relates to #307
2017-03-09 10:51:20 +00:00
Janne Valkealahti
7371f67eb6 Timer trigger deadlock in DefaultStateMachineExecutor
- Add new tests for DefaultStateMachineExecutor to find
  possible causes for a deadlock.
- Handle lifecycle scenario little differently
  if timer is fired during a executor starting phase
  order to not getting into a deadlock.
- Backport #315
- Relates to #307
2017-03-09 10:51:20 +00:00
Janne Valkealahti
56f3ea06a0 Add log4j 1.x to build deps
- This is now done manually in build as
  dep boms don't give it anymore. We do this
  until we figure out what is a proper way
  to just depend on log4j 2.x.
- Relates to #327
2017-03-09 10:49:10 +00:00
Gary Rosales
70a8657463 StateMachineInterceptorList set() does nothing
- Fixes #318
2017-02-16 09:31:52 +00:00
Janne Valkealahti
7d83b1432c Add dependencies bom
- Fixes #317
2017-02-14 13:00:03 +00:00
Janne Valkealahti
1a3f7da81c Make mongo tests faster
- There is a newer mongo client with changed behaviour
  as junit rule skipping tests if mongo is not running
  waits 30s for a connect failure. Add new server
  select timeout.
- Fixes #314
2017-02-10 16:12:03 +00:00
Janne Valkealahti
573397b86e Revamp dependency management
- Fixes #313
2017-02-10 15:50:07 +00:00
Janne Valkealahti
90637d68d6 Better generics handling with adapters
- Modify StateMachineConfiguration and StateMachineFactoryConfiguration
  so that if you have different states and events classes with multiple
  machines or factories, you can autowire by types without
  adding qualifiers.
- Manually try to discover generic types from enclosing adapther class
  and if succesfull pass that information into bean definition
  as ResolvableType.
- Backporting #306
- Relates to #307
2017-02-10 11:57:04 +00:00
Janne Valkealahti
c35286e83f Fix typo
- Fixes #310
2017-02-09 17:55:32 +00:00
Janne Valkealahti
29e8cdd276 @WithStateMachine with factory and builder
- Backport #292
- Backport #224
- Add support so that @WithStateMachine can be used with
  machines build via @EnableStateMachineFactory or via
  manual builders.
- Adding new annotation @EnableWithStateMachine to help
  handling needed context configuration.
- Add tests and docs.
- Relates to #307
2017-01-18 09:49:10 +00:00
Janne Valkealahti
17d977ddc1 Make autostart smarter
- Backport #298
- Factory now listens machine event if autostart
  is requested which should give fully started machine
  i.e. if asynch executor is used. Bails out after 30
  seconds. Further tweaks like allowing user to define
  this time or conditionally not wait could be added later.
- Fix typos.
- Relates to #307
2017-01-18 09:48:14 +00:00
Janne Valkealahti
dbbae5f478 Update badges in readme 2016-12-29 09:47:48 +00:00
Janne Valkealahti
d85a9dae25 Fix mongo tck tests
- Just some dependency version issues as
  we didn't get the one in tck tests what
  boot 2.x expects.
- Relates to #206
2016-12-28 20:06:07 +00:00
Janne Valkealahti
862979fc87 Upgrade to spring framework 5
- Enable snapshot repos and pump up to
  framework 5.0.0 and boot 2.0.0 snapshots.
- Due to issue in github.com/spring-gradle-plugins/dependency-management-plugin/issues/136
  define newer log4j version for spring-statemachine-zookeeper
- There were some other minor issues preventing to do this earlier
  which are now fixed in framework snapshots.
- Fixes #296
2016-12-28 17:48:03 +00:00
Janne Valkealahti
72f84b584b Update readme 2016-12-18 17:24:49 +00:00
Janne Valkealahti
1d515bd26c Next development version 2.0.0.BUILD-SNAPSHOT 2016-12-15 11:51:05 +00:00
Spring Buildmaster
ea2fa03de9 Next development version 1.2.1.BUILD-SNAPSHOT 2016-12-14 21:47:29 +00:00
Janne Valkealahti
f64f5e96e0 Update changelog 2016-12-14 21:16:36 +00:00
Janne Valkealahti
5bf0fbb365 Update changelog 2016-12-11 16:00:07 +00:00
Janne Valkealahti
f337505fa3 Update docs
- Polish
- Relates to #284
2016-12-11 11:41:48 +00:00
Janne Valkealahti
b26b03e6bb Update docs
- Add intro builder which goes to gh pages
- Relates to #284
2016-12-11 11:31:26 +00:00
Janne Valkealahti
51db570728 Update docs
- Polish
- Relates to #284
2016-12-11 10:58:43 +00:00
Janne Valkealahti
2fad100f3d Update docs
- Add entry/exit point sections to crash course.
- Relates to #284
2016-12-10 18:22:20 +00:00
Janne Valkealahti
3df7f6ea96 Refactor boot class packages
- Should not have any breaking changes, just
  wanted to have a better package structure.
- Fixes #293
2016-12-10 17:43:19 +00:00
Janne Valkealahti
784e446619 Update contribute instructions 2016-12-10 15:47:19 +00:00
Janne Valkealahti
3d9059a075 Update docs
- Add section about machineId
- Relates to #284
2016-12-10 12:27:58 +00:00
Janne Valkealahti
457c924e67 Remove some EventNotAccepted events
- Now only trying to notify those from
  a root machine as same events from childs are
  kinda pointless and just create noise.
- Fixes #287
2016-12-08 12:15:52 +00:00
The Gitter Badger
ab626dc92d Add Gitter badge 2016-12-06 03:18:17 +00:00
Janne Valkealahti
554e374f80 Add tests
- Add tests related to discussion in #288
2016-12-06 03:23:12 +00:00
Janne Valkealahti
19d5232293 Fix fork/join with composite states
- Handle new pseudostate listener registration when
  machine is restored. Make sure that we have only one set
  of listeners by clearing existing ones.
- Fix join issue when regions are partially ended into
  join source states and machine is persisted from that
  moment.
- Lot of new tests to cover possible cases where these
  bugs were hidden.
- Fixes #286
2016-12-03 11:26:57 +00:00
Janne Valkealahti
2cc46585d3 Update changelog 2016-11-28 17:13:19 +00:00
Janne Valkealahti
e5bfc74f16 Update docs
- Better docs for boot support.
- Relates to #270
2016-11-24 13:31:08 +00:00
Janne Valkealahti
922473220d Autoconfigure repositories and entities
- Add auto-config for JPA, MongoDB and Redis
  repositories and their entity classes.
- Fixes #282
2016-11-24 11:42:10 +00:00
Janne Valkealahti
6caf66d1c7 Update docs
- Fix some links
- Update what's new in 1.2
- Relates to #270
2016-11-24 08:16:02 +00:00
Janne Valkealahti
3b7bb8139d Update docs
- Add manual repo config example
  for showcase.
- Relates to #270
2016-11-24 08:03:26 +00:00
Janne Valkealahti
d3de91dfc2 Update docs
- Add uml fork/join
- Add uml initial action
- Relates to #270
2016-11-24 07:38:11 +00:00
Janne Valkealahti
5fefff4418 Add new tck test
- New ShowcaseMachine test
- Remove old showcase uml tests
- Relates to #278
2016-11-23 17:59:18 +00:00
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
ea511b8ed8 Fix JPA actions
- Change JpaRepositoryTransition and JpaRepositoryState
  to use ManyToMany instead of OneToMany for
  actions Set.
- Fixes #280
2016-11-23 09:01:33 +00:00
Janne Valkealahti
6a5a704c75 Update docs
- Add section about error actions for states.
- Relates to #270
2016-11-20 16:24:34 +00:00
Janne Valkealahti
f3016bd751 Update docs
- Add section for uml history states.
- Relates to #270
2016-11-20 15:47:21 +00:00
Janne Valkealahti
459d16d31c Update docs
- Add more repository config samples.
- Relates to #270
2016-11-20 14:34:04 +00:00
Janne Valkealahti
56d05a036a Add new tck test
- New SimpleSubMachine test
- Relates to #278
2016-11-20 11:18:33 +00:00