Commit Graph

64 Commits

Author SHA1 Message Date
Janne Valkealahti
8b560f5bba Support @WithStateMachine as meta annotation
- Remove explicit check for @Component in favour of
  @WithStateMachine which makes it more logical to
  check meta annotations.
- Fixes #179
2016-03-02 10:01:09 +00:00
Janne Valkealahti
3ea89d14da Add test support for intermediate state changes
- Adding expectStateEntered and expectStateExited methods
  for testing state enter/exit in a given order. This gives
  on option to expect i.e. states via anonymous transitions.
- Fixes #154
2016-02-07 15:05:47 +00:00
Janne Valkealahti
833dc1643c Update docs
- Fixes #168
2016-01-30 18:15:41 +00:00
Janne Valkealahti
d12df0ab45 Update changelog 2016-01-30 09:38:08 +00:00
Janne Valkealahti
1ca88d0a6e Update docs
- First set of changes for #168
2016-01-30 08:47:52 +00:00
Janne Valkealahti
51bc34b897 Update docs and polish
- Modify docs and add a better content.
- Add access to payload in EventSecurityExpressionRoot
  #114.
2016-01-09 09:26:15 +00:00
Janne Valkealahti
4aa18a4ca5 Fix some StateContext use cases
- This is part 1 of changes for #150.
- Modify AbstractStateMachine to pass context in part of
  a stages.
- Add some tests
- Add preliminary docs
2015-12-31 17:39:57 +00:00
Janne Valkealahti
4f5eb88626 Add StateContext into StateMachineListener
- new StateMachineListener method for listening all
  StateContext changes in a various stages.
- StateContext now has a stage enum field telling at
  which stage it is.
- Polish some classes and docs.
- Prepare tests for StateContext.
- Relates to #126, #138 and #150
2015-12-26 16:37:56 +00:00
Janne Valkealahti
c2a458ce70 Overhaul annotation and listener processing
- This is stage 2 for these changes. Relates to
  #126 and #138.
- Better support for other stuff available from
  a state context.
- Started to add docs.
- Polish.
2015-12-25 09:10:36 +00:00
Janne Valkealahti
d0aaa4bfee Add base security support
- Add base of support using spring security to
  protect events, transitions and actions.
- Fixes #114
2015-12-20 14:33:54 +00:00
Janne Valkealahti
1b0ca6ebef Add scope sample
- Tune docs for usage and sample.
- Fixes #137
2015-12-13 11:13:58 +00:00
Janne Valkealahti
b7cc1df59b Event defer for substates and regions
- Modify state structure so that nested states and orthogonal
  regions can work with deferred events.
- Change executor to work better with deferred events and try
  to provide better model for run-to-completion when execution
  happens in a threads.
- Add new event defer section in ref docs.
- Fixes #131
2015-12-06 14:48:29 +00:00
Janne Valkealahti
ed25006075 Add support for session scope
- Add tweaks to DisposableBean.destroy() which integrates
  into a lifecycle and properly closes a machine if only
  destroy() is called which is a case when `session` scoped
  bean is destroyed when http session is invalidated.
- Tests in SessionScopedAnnotationTests and
  SessionScopedManualTests for both builder and
  annotation config.
- Fixes #112
2015-11-28 09:13:10 +00:00
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
01dc737bf6 Update docs
- Add missing docs for @StatesOnTransition supported
  method arguments.
- Fixes #124
2015-11-20 16:22:04 +00: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
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
4f5238c572 Polish docs 2015-10-10 11:49:38 +01:00
Janne Valkealahti
af27f19e63 Update to newer boot and framework versions 2015-08-31 13:54:35 +01:00
Janne Valkealahti
7027a2c52a Add docs for TimerTrigger
- Fixes #102.
2015-08-29 18:26:35 +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
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
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
edda97af16 Docs for extended state 2015-08-09 17:15:03 +01:00
Janne Valkealahti
04f807f1a7 Add docs for testing support
- Adding some docs for testing framework which has been
  in place for some time now.
- Fixes #49
2015-08-09 15:41:09 +01:00
Janne Valkealahti
924300999e Update ref docs
- Relates to #88
2015-08-02 16:00:03 +01:00
Janne Valkealahti
0d7ec09885 Add zk web sample ref docs 2015-07-31 19:22:35 +01:00
Janne Valkealahti
5ab1cb3fcb Add ref docs for error handling
- Base docs for error handling and some tests
  to verify added doc samples.
- Relates to #88
2015-07-31 16:58:47 +01:00
Janne Valkealahti
706f1de232 Update ref docs
- First set of changes for doc updates for M3
- Relates #88
2015-07-26 16:52:15 +01:00
Janne Valkealahti
178ee816a4 Enhancements to tasks recipe
- Fix AbstractStateMachineFactory so that it does not try
  to create transitions with null source or target. Basically we
  just skip transition source or target which doesn't belong to
  region.
- Change DefaultExtendedState to use ConcurrentHashMap so that
  there's less change to get into trouble with concurrency.
- Add statechart for tasks recipe.
- Fix various concepts in TasksHandler and its tests.
- Prepare some examples for docs.
- Fixes #74
2015-07-25 17:09:54 +01:00
Janne Valkealahti
db5a1ab3f7 Update docs 2015-07-12 17:19:46 +01:00
Janne Valkealahti
9b6caaf6b8 Docs updates 2015-07-05 17:36:45 +01:00
Janne Valkealahti
7dc56c4867 Fix some typos 2015-06-02 08:13:01 +01:00
Janne Valkealahti
75a4da811e Ref doc updates 2015-05-30 18:01:59 +01:00
Janne Valkealahti
9fc17338e6 Remove feature limitations section 2015-05-29 17:56:08 +01:00
Janne Valkealahti
d7249bf927 Tune fork/state sections in docs 2015-05-29 17:52:25 +01:00