Commit Graph

235 Commits

Author SHA1 Message Date
Janne Valkealahti
f6037802fd Fix empty @OnTransition
- Fix so that bean method will be called with
  plain @OnTransition having no source or target
  defined.
- Fixes #128
2015-11-26 12:10:22 +00:00
Janne Valkealahti
c981c5a6ee Update docs
- Remove most of a static class modifiers from docs
  to make things easier if doing copy/paste. Not
  all can be removed because some spring inner
  config classes has to be static.
- Fixes #123
2015-11-26 09:36:47 +00:00
Janne Valkealahti
b5d3c4e3e4 Fix class loading in StateMachineConfiguration
- Change used classloader so that classes in found if
  doing normal boot cli tricks for a sm config adapter.
- Fixes #122
2015-11-26 08:17:51 +00:00
Janne Valkealahti
01dc737bf6 Update docs
- Add missing docs for @StatesOnTransition supported
  method arguments.
- Fixes #124
2015-11-20 16:22:04 +00:00
Spring Buildmaster
baed808847 Next development version 1.0.2.BUILD-SNAPSHOT 2015-11-18 06:58:30 -08:00
Janne Valkealahti
eb51f5427f Update changelog 2015-11-18 13:12:50 +00:00
Janne Valkealahti
07e6076e0b Polish samples logging
- Add logging of internal transitions which makes things
  a bit more clear with showcase sample.
- Update showcase docs with clarification of use of
  nested states.
2015-11-18 11:52:06 +00:00
Janne Valkealahti
56abfab4f8 Update docs 2015-11-15 14:57:41 +00:00
Janne Valkealahti
2b1d06e097 Support context events with StateMachineBuilder
- Fix so that we can annotate @Configuration class with
  @EnableStateMachine assuming config class is not extended
  from StateMachineConfigurer(aka config adapter).
- Allows to create machine via a builder as @Bean still properly
  registring rest of a facilities via @EnableStateMachine.
- Polish other tests by removing registering StateMachineEventPublisherConfiguration
  as it's added via @EnableStateMachine.
- Change AbstractImportingAnnotationConfiguration so that it will not try
  to register bean if implementation returned null definition. Meaning
  StateMachineConfiguration detected that @EnableStateMachine was placed
  on a non-adapter class.
- Fixes #120
2015-11-14 16:11:52 +00:00
Janne Valkealahti
19af615698 Fix NPE with missing configurer
- Throw BeanDefinitionStoreException in favor of NPE if
  @EnableStateMachine or @EnableStateMachineFactory is used
  without a configurer meaning user is missing proper config
  adapter like EnumStateMachineConfigurerAdapter.
- Polish StateMachineConfiguration and StateMachineFactoryConfiguration
  by removing wrong typed refs to Enum.
- Fixes #119
2015-11-14 14:11:07 +00:00
Fabio Falci
5b715d0492 PersistStateMachineHandler returning event outcome 2015-11-05 20:09:16 +00:00
Janne Valkealahti
d55a7ab802 Fix use of multiple EnableStateMachineFactory
- Fixing internal handling of multiple EnableStateMachineFactory
  adapters which were wrongly mixed up during internal
  config build.
- Techically we can have multiple adapters building same state machine and
  same factory if carefully crafted. However a check was missing in
  StateMachineFactoryConfiguration to only attempt configure builder
  for exact attached adapter, thus causing same internal builder called twice
  which then failed because build was already called. This was originally done
  for StateMachineConfiguration but missed for StateMachineFactoryConfiguration.
- Fixes #117
2015-11-05 19:31:36 +00:00
Janne Valkealahti
58e9f01aaf Association with @EnableStateMachine and @WithStateMachine
- Fix bug where multiple machines and beans with @WithStateMachine
  didn't properly separate calling methods with @OnTransition.
- Some polish
- Fixes #116
2015-11-05 13:46:50 +00:00
Janne Valkealahti
9304ddf285 Update to framework 4.2.2
- Fixes #115
2015-10-18 17:21:29 +01:00
Janne Valkealahti
d5c71bb776 Fixing auto-start via @EnableStateMachineFactory
- Machine is now started automatically if it's requested
  from a factory and flag is set.
- Fixes #113
2015-10-16 11:08:08 +01:00
Spring Buildmaster
cabee70593 Next development version 1.0.1.BUILD-SNAPSHOT. 2015-10-11 08:15:38 -07:00
Janne Valkealahti
9e9bb7ff17 Polish docs 2015-10-11 15:47:07 +01:00
Janne Valkealahti
a6f06435e1 Polish docs 2015-10-11 15:45:06 +01:00
Janne Valkealahti
4df80adc4f Fix test 2015-10-11 11:51:59 +01:00
Janne Valkealahti
fe530f9db2 Update readme 2015-10-11 10:53:07 +01:00
Janne Valkealahti
4f5238c572 Polish docs 2015-10-10 11:49:38 +01:00
Janne Valkealahti
280e77347e Add better support for region persist
- Various changes to have a better support for persisting
  regions.
- Fixes for TasksHandler.
- Fixes #94
2015-10-09 17:36:22 +01:00
Mike Krumlauf
7072425400 Refine README 2015-09-08 21:33:55 -04:00
Janne Valkealahti
af6f11a1b6 Align versions in samples 2015-09-08 15:26:31 +01:00
Krumlauf, Michael
2a617008c2 Add missing file 2015-09-08 05:34:52 -04:00
Krumlauf, Michael
671e37ce25 Rename EnsembleListeger to EnsembleListener 2015-09-07 16:19:08 -04:00
Krumlauf, Michael
c6b96aa069 Update to latest versions of several dependencies 2015-09-07 16:17:00 -04:00
Janne Valkealahti
76695443cc update to gradle 2.6 2015-09-06 16:26:11 +01:00
Janne Valkealahti
5dc813ab3f StateMachineTestPlan starts machine too early
- Delaying starting statemachine inside step and
  after listeners has been reset.
- Fixes #104
2015-09-04 08:29:33 +01:00
Janne Valkealahti
f33fa4055c Fix npe with choice
- Preventing passing nulls into factory if choice configurer
  only have last() defined.
- Polish some classes around those classes.
- Fixes #101
2015-09-02 18:35:22 +01:00
Janne Valkealahti
af27f19e63 Update to newer boot and framework versions 2015-08-31 13:54:35 +01:00
Janne Valkealahti
d882c392a9 Fix event handling with threading
- With a combination of a task executor using a thread pool,
  substates with triggerless transitions and actions may fail to
  properly pass on message headers.
- Move queue message outside of loop on a class level which
  should give next loop a change to see previous queued message
  which is then used from triggerless transitions.
- Relates to #100
2015-08-31 10:24:21 +01:00
Janne Valkealahti
7027a2c52a Add docs for TimerTrigger
- Fixes #102.
2015-08-29 18:26:35 +01:00
Janne Valkealahti
ad57bc7085 Add transition header tests for choice 2015-08-29 17:11:15 +01:00
Janne Valkealahti
98b41dde44 Disable artifactoryPublish task for samples
- This should fix errors when we eventually push
  to maven central.
- Fixes #90
2015-08-29 15:55:15 +01:00
Janne Valkealahti
a6145072b5 Pass event headers into triggerless transitions
- Change DefaultStateMachineExecutor to keep event message
  around and then loop triggerless transitions order to
  pass that message to whole chain.
- Fixes #100
2015-08-29 10:33:32 +01:00
Janne Valkealahti
022143b5ce Fix docs typo 2015-08-28 18:41:01 +01:00
Janne Valkealahti
a3d6aa9d05 Fix docs typo 2015-08-28 18:38:20 +01:00
Janne Valkealahti
50f7cef4cd Update docs 2015-08-28 17:59:30 +01:00
Janne Valkealahti
a93f6a5f8f Update docs 2015-08-28 17:54:09 +01:00
Janne Valkealahti
4845a6f6d0 Update docs 2015-08-28 17:28:58 +01:00
Janne Valkealahti
b90382575c Move StateMachinePersist up to parent package 2015-08-28 09:15:08 +01:00
Janne Valkealahti
1371ceac7b Forward event headers to initial transition
- Enhancing internal model so that event and its headers can
  be passed into action if it's used in an initial sub-state
  when transition target its super state.
- Added tests and better docs.
- Fixes #99.
2015-08-28 08:14:38 +01:00
Janne Valkealahti
166c586458 Add enum manual builder test 2015-08-25 17:23:37 +01:00
Janne Valkealahti
8dff5eec4d Tweak jepsen partition tests having better output" 2015-08-23 19:17:22 +01:00
Janne Valkealahti
5879332f9f More docs for dist machine 2015-08-23 09:47:38 +01:00
Janne Valkealahti
f2fc59b726 Fix wrong section header 2015-08-22 17:22:22 +01:00
Janne Valkealahti
c8afe725da Add crash/start jepsen test 2015-08-22 16:27:38 +01:00
Janne Valkealahti
efce1fa3af Update wrong pic in docs 2015-08-22 08:59:36 +01:00
Janne Valkealahti
1b59e1f4d5 Polish docs 2015-08-21 19:42:22 +01:00