Commit Graph

224 Commits

Author SHA1 Message Date
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
Janne Valkealahti
c26f3546e7 Update ref docs
- Update web sample.
- Add web statechart and update its dist screenshots
  to align changes in web sample.
- Add first version of zk dist article.
2015-08-21 18:36:23 +01:00
Janne Valkealahti
1800616d48 Update jepsen tests 2015-08-21 18:08:06 +01:00
Janne Valkealahti
99275380c3 Tune tests, modify web sample, add more logging
- In web sample change other event C to K which brings
  machine back from S2 to S1.
- Add more logging.
- New test sending parallel events.
2015-08-21 12:59:41 +01:00
Janne Valkealahti
ad3c082670 Tweak ZookeeperStateMachineEnsembleTests await times 2015-08-15 23:03:56 +01:00
Janne Valkealahti
781c2e62fd Polish 2015-08-15 22:38:17 +01:00
Janne Valkealahti
5e2ac9dd84 Tweak tests for being more reliable
- For #76, try to make sure that join is fully done
  before continue sending events.
2015-08-15 17:23:57 +01:00
Janne Valkealahti
d7f5f9f573 Better zk connection error handling
- Modifying concepts around DistributedStateMachine and
  ZookeeperStateMachineEnsemble to get better handling when
  zk connection is lost.
- New jepsen test showing that after a brain split machine
  will get back to a consistent state.
- Polish javadocs
- Hopefully fixes #91
2015-08-15 15:36:52 +01:00
Janne Valkealahti
edf3938c9d Tuning TasksHandlerTests, take2 2015-08-14 09:59:00 +01:00
Janne Valkealahti
a2ff794ebd Tuning TasksHandlerTests 2015-08-14 09:56:54 +01:00
Janne Valkealahti
f12b94e548 Add extended state variable change into test plan
- Add missing test method for testing variable change events.
- This may also contribute to make tests more reliable when
  testing variable values.
- Should contribute to #76 also.
2015-08-14 09:36:17 +01:00
Janne Valkealahti
dea718c13d Making overflow test more reliable 2015-08-14 08:55:34 +01:00