Commit Graph

475 Commits

Author SHA1 Message Date
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
Janne Valkealahti
c86e7bcc14 Update docs
- Add info about deferring events
- Relates to #270
2016-11-20 10:27:23 +00:00
Janne Valkealahti
b79413bc72 Add tck tests
- SimpleMachine tests for factory and builder.
- Relates to #278
2016-11-20 09:43:15 +00:00
Janne Valkealahti
b441bf558f Update docs
- Add more repository config docs.
- Relates to #270
2016-11-19 19:05:29 +00:00
Janne Valkealahti
38e6c9db0a Polish
- Fix javadoc warnings
2016-11-19 18:29:02 +00:00
Janne Valkealahti
55c6faf225 Fix Redis/Mongo entity states
- Fix RedisRepositoryState and MongoDbStateRepository not to use
  null for machineid in any case as contract is that empty machineid
  is always empty not null.
- This issue was found when adding initial tck config tests, thus
  this commit also adds initial tck tests.
- Fixes #279
- Relates to #278
2016-11-19 17:51:15 +00:00
Janne Valkealahti
b3fbdeb17c Update docs
- Add better uml docs for entry/exit
- Relates to #270
2016-11-19 11:17:07 +00:00
Janne Valkealahti
fe00e4e834 Update docs
- Add better uml docs for choice/junction
- Relates to #270
2016-11-19 10:38:46 +00:00
Janne Valkealahti
0dd9d2fa66 Add error actions to states
- Now do behaviour and entry/error actions
  can have error action callback with
  a raised Exception.
- New modified added methods in a StateConfigurer.
- Fixes #277
2016-11-19 09:50:28 +00:00
Janne Valkealahti
f28f4567bb Document mongodb repository config
- Relates to #270
2016-11-13 08:59:18 +00:00
Janne Valkealahti
4dbccf84fa Add mongodb repository config support
- Pretty much following what was done
  for jpa and redis.
- Fixes #275
2016-11-13 08:23:25 +00:00
Janne Valkealahti
d322c26d5f Build badges to README
- Build badges for travis and bamboo for master.
- Relates to #272
2016-11-12 15:07:48 +00:00
Janne Valkealahti
8dea842830 No null collections from AbstractState
- Fix to create empty collections in
  favour of returning nulls.
- Fixes #271
2016-11-12 14:38:41 +00:00
Janne Valkealahti
58326fc948 Tweak travis settings
- Try to get test build to run on travis
- Relates to #272
2016-11-12 14:17:04 +00:00
Janne Valkealahti
2e8d34f3bf Tweak travis settings
- Try to get test build to run on travis
- Relates to #272
2016-11-12 11:12:47 +00:00
Janne Valkealahti
e3c9efd486 Add travis
- Attempt to prepare for travis ci
- Relates to #272
2016-11-12 09:32:27 +00:00
Janne Valkealahti
b3e6a22dce Fix choice back to source
- Previously if choice took transition back
  to its original source, this source wasn't
  entered. Adding this special case to get handled.
- Fixes #228
2016-11-11 21:55:44 +00:00
Janne Valkealahti
735a06f28c Fix typos
- "contextOjb" vs. "contextObj"
- Fixes #269
2016-11-09 14:18:35 +00:00
Janne Valkealahti
8cb5a81652 Exit action may get interrupted
- Add test case
- Synchronise recursive scheduleEventQueueProcessing()
  in DefaultStateMachineExecutor.
- Fixes #233
2016-11-09 13:47:56 +00:00
Janne Valkealahti
4ca8c3bada Polish pdf image sizes
- Fixes #268
2016-11-08 09:21:39 +00:00
Janne Valkealahti
3d75e14615 Update changelog 2016-11-06 16:03:29 +00:00
Janne Valkealahti
d1f7f31aeb Fix problems in JoinPseudoState
- Fix possible NPE which is a regression.
- Fix state entry notification for JOIN states.
- Fixes #229
2016-11-06 14:39:19 +00:00
Janne Valkealahti
c48f671ee1 Document monitoring and boot
- Relates to #263
2016-11-06 08:16:44 +00:00
Janne Valkealahti
797279a53c Document repository config changes
- Generic changes
- Document redis support
- Relates to #263
2016-11-05 15:29:10 +00:00
Janne Valkealahti
ea6648ce0d Polish tests
- For jpa repository tests use same parent
  class as done for redis in #267
2016-11-05 14:46:23 +00:00
Janne Valkealahti
fd6fcb6ee2 Add redis repository config support
- Change machine id as empty string instead of null
  if it's not set.
- Implement domain classes for redis.
- Shared tests.
- Fixes #267
2016-11-05 10:04:20 +00:00
Janne Valkealahti
bd7e0141ea Fix interceptor handling
- Modify so that interceptor `preStateChange` is not called
  for transient states which would falsely try to i.e. persist
  choice and other states with persist recipe.
- Added some tests to verify that `preStateChange` is called
  only once.
- Relates to #266
2016-10-29 08:48:53 +01:00
Janne Valkealahti
728dd433d9 Make test more reliable
- Relates to #149
2016-10-28 07:27:33 +01:00
jsajadi
7131a0ef3b update appendix.adoc
correct misspelling
2016-10-27 12:11:52 +01:00
Janne Valkealahti
cc2893c4b8 Implement action monitoring and tracing
- Modify transitions and actions so that
  action execution can be monitored.
- Extend StateMachineMonitor
- Add new ActionListener
- Relates to #149
2016-10-27 06:58:23 +01:00
Janne Valkealahti
83e59c2a60 Add support for submachine refs
- Relates to #262
2016-10-23 06:50:21 +01:00
Janne Valkealahti
81e3c8697f Add datajpa sample tests
- Relates t0 #262
2016-10-21 07:51:23 +01:00
Janne Valkealahti
944a3cf1f5 Polish 2016-10-19 08:26:03 +01:00