Commit Graph

399 Commits

Author SHA1 Message Date
Janne Valkealahti
8fc7592404 Fix wrong event object comparison
- Classic case of using == vs. equals if Strings are involved.
- In DefaultStateMachineExecutor change event comparison
  from == to equals.
- Tests using enums naturally work, but some tests using Strings
  had a wrong checks.
- Fixes #253
2016-09-26 10:29:01 +01:00
Janne Valkealahti
29f67fdbf8 Add docs for new in 1.2
- Relates to #238
2016-09-25 17:43:37 +01:00
Janne Valkealahti
fe8c120bd4 Add docs for repository config
- Docs for base usage, jpa and jpa sample.
- Relates to #238
2016-09-25 17:02:11 +01:00
Janne Valkealahti
9c20ddd051 Fix state action tests
- Tests should now be more reliable as trying to
  make sure actions run before testing further.
- Fixes #257
2016-09-25 11:20:20 +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
842442520c Align Spring Data version
- Before we get a proper central support
  for version, align data version with boot.
- Relates to #256
2016-09-25 10:07:40 +01:00
Janne Valkealahti
9f9acd3567 Add docs for state actions
- Relates to #238
2016-09-24 15:55:06 +01:00
Janne Valkealahti
51c9e72961 Update docs for StateMachineComponentResolver
- Relates to #238
2016-09-24 15:19:27 +01:00
Janne Valkealahti
3a4aab647e Update docs for join state
- Relates to #238
2016-09-24 11:31:32 +01:00
Janne Valkealahti
a22ac86277 Add docs for submachine ref
- Relates to #238
2016-09-24 09:59:31 +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
Janne Valkealahti
693d7b8951 Fix StateMachineModelFactory usage
- When StateMachineModelFactory is passed into config
  it is now used everytime when machine is build which
  allows model factory to get a fresh model from its
  own storage if needed.
- Shuffled stuff around in machine factory base classes
  to call StateMachineModelFactory only once during a machine
  build operation.
- Other tweaks and a polish.
- Fixes #254
2016-09-23 15:44:13 +01:00
Nicola Cammillini
876bdc9671 Typos and some minor fixes in reference guide introduction. 2016-09-19 01:16:14 +02:00
Nicola Cammillini
2b5aeffd2d Fixed some typos in reference guide preface. 2016-09-18 17:21:39 +02:00
Janne Valkealahti
25e190c57d Fix local transition logic
- Add missing creating of a local transition
- Fix logic how entry/exit is not called with local
- Add tests comparing functionality with external
- Fixes #248
- Fixes #249
2016-09-11 10:25:05 +01:00
Christophe
e6f10b60f5 Ability to set UUID for StateMachine
- Squash commits with below entries
- Add factory with a given uuid
- Fix compile error, replace spaces by tabs and clean imports
- Make more sense to swap uuid and stringId
- Fixes #241
2016-09-09 15:42:19 +01:00
Christophe
4c34e46ccf Add capabilities to provide ActionError in Transition
- Add classes directory to be ignored by git
- Doesn't yet handle actions defined for entry,
  exit or do behariour.
- Docs to come when features around error actions
  are fully implemented.
- Fixes #240
2016-08-30 20:54:56 +01:00
Janne Valkealahti
062bc9aa0e Support state activity
- AbstractState now extends LifecycleObjectSupport getting
  access to TaskScheduler.
- Modify all configs so that we can have a cancellable Action
  which is executed after state is entered and which is
  cancelled(if running) when state is exited.
- Fixes #239
2016-08-14 10:06:33 +01:00
Janne Valkealahti
c387979d75 Support for UML Sub State Machines
- Enhance config model so that a state can be
  configured as a submachine or a factory.
- With uml it's possible to put multiple machines
  into one xml(one needs to be a root machine) and
  in a same way, define state as a separate machine.
- JavaConfig vs. uml config differs in a bit where
  latter is passing raw model data into pojo config and
  JavaConfig either full machine or machine factory.
- Fixes #121
2016-08-13 07:19:21 +01:00
Janne Valkealahti
049f811f56 Refactor join handling
- Refactor how join is handled
- Add new StateListener for listening entry/exit per State.
- Transition is now passed to next guy from a join state.
- A lot of changes in core machine/factory/executor to support
  this new join handling.
- Fixes #235
- Fixes #237
2016-08-11 08:58:34 +01:00
Janne Valkealahti
7b39ce0912 Next major development version 1.2.0.BUILD-SNAPSHOT
- Branch 1.1.x is now for maintenance and master is
  for new development.
2016-08-01 06:25:28 +01:00
Janne Valkealahti
c4e106001e Next development version. 2016-05-23 18:11:06 +01:00
Janne Valkealahti
e0b0f86d41 Update cloud cluster version 2016-05-23 15:44:24 +01:00
Janne Valkealahti
dd1f05b7d0 Restore gradle.properties 2016-05-23 15:32:41 +01:00
Spring Buildmaster
fc98be0ad8 Next development version. 2016-05-23 14:11:00 +00:00
Janne Valkealahti
55071c7471 Update docs
- Relates to #219
2016-05-22 08:34:46 +01:00
Janne Valkealahti
ba8353367a Add locking to state handling
- We still got trouble with #227 with smoke
  tests so adding some locking sync to state
  handling.
2016-05-21 21:21:02 +01:00
Janne Valkealahti
f61237d082 Update docs
- Relates to #219
2016-05-21 18:11:01 +01:00
Janne Valkealahti
49b81675fa Update changelog 2016-05-21 15:50:49 +01:00
Janne Valkealahti
234bf281aa Update docs
- Better papyrus docs #219
2016-05-21 15:43:09 +01:00
Janne Valkealahti
571e147f14 Update docs
- Better docs for UmlStateMachineModelFactory #219
2016-05-21 14:54:53 +01:00
Janne Valkealahti
fd56501363 Update docs
- Update copyright #219
2016-05-21 14:20:50 +01:00
Janne Valkealahti
5fc9c62a64 Update docs
- Notes for message passing #219
2016-05-21 14:09:31 +01:00
Janne Valkealahti
99e02f682e Polish docs
- Scale images #219
2016-05-21 10:32:45 +01:00
Janne Valkealahti
e9cb3af785 Fix possible NPE
- getState() now handles null better when checking
  running state when possibly going to return
  final state.
- Fixes #227
2016-05-21 09:54:21 +01:00
Janne Valkealahti
588eee751f Make tests more reliable 2016-05-19 11:13:15 +01:00
Janne Valkealahti
6b93760535 Make tests more reliable 2016-05-18 18:59:05 +01:00
Janne Valkealahti
962c76e91d Make tests more reliable
- Attempt to make testing in CI more reliable as
  all seem to be fine locally.
2016-05-18 11:56:55 +01:00
Janne Valkealahti
ec21afc131 Refactor concepts around uml model factory
- Fixes #226
2016-05-17 09:11:14 +01:00
Janne Valkealahti
c8cc2b1ba4 Add docs for ordershipping sample
- Relates to #219
2016-05-14 18:02:48 +01:00
Janne Valkealahti
dbb510a9d3 Polish 2016-05-14 16:47:31 +01:00
Janne Valkealahti
05ef94e0ed Add ordershipping sample
- Fixes #225
2016-05-14 09:42:16 +01:00
Janne Valkealahti
fca98d8e4d Add tests
- Adding a simple test for checking that
  custom task executor is set via configurer
  if executor is created as bean.
2016-05-12 15:31:26 +01:00
Janne Valkealahti
914f39e282 Add tests
- Adding some new tests related to wait loops
  and error handling.
2016-05-12 09:10:30 +01:00
Janne Valkealahti
7602cf68ce Pseudostates may cause exit from parent
- Fix better handling of when parent state
  is trying to enter if transition happens
  with pseudostate in substates.
- Fixes #223
2016-05-12 07:45:49 +01:00
Janne Valkealahti
657c1d8e4b UmlModelParser breaks with shadow entries
- Fix so that unused transition with now source
  or target will not cause NPE.
- Fixes #218
2016-05-08 17:41:52 +01:00
Janne Valkealahti
751f95b44f Fix state exit with fork
- Fix a case where state leading into a fork
  doesn't exit.
- Relates to work in #221
2016-05-08 14:02:56 +01:00
Janne Valkealahti
66295d9ed2 State exists in regions
- Related to work done in #221 where we got
  into trouble for properly exiting states when
  fork/join is used.
2016-05-08 08:58:50 +01:00
Janne Valkealahti
2eb8788ce3 Direct region entry doesn't bypass initial state entry
- Enhance state context to have more info about target
  states which is needed to make a proper decision if
  region needs to be started.
- Fix RegionState to not to start if it looks like
  direct entry will be done later.
- Relates to #221
2016-05-07 15:52:12 +01:00
Janne Valkealahti
12137222a8 Join state should not be entered
- Fix join pseudostate to be transient.
- Fix tests which uses wrong concepts.
- Fixes #222
2016-05-06 17:24:54 +01:00