Commit Graph

610 Commits

Author SHA1 Message Date
Janne Valkealahti
bddd9e4bfb Upgrade to boot 2.0.1.RELEASE
- Fixes #543
2018-04-05 15:15:21 +01:00
Alexandre Navarro
2f474f27b8 Add getter on TimerTrigger for period and count 2018-03-12 23:35:35 +01:00
Janne Valkealahti
0df3f9a898 Fix issue with devtools
- Where class is resolved, use ClassLoader from
  BeanClassLoaderAware which is the one working
  with devtools.
- Fixes #531
2018-03-12 19:59:35 +00:00
Janne Valkealahti
30987d3eb7 Polish 2018-03-07 09:08:29 +00:00
Janne Valkealahti
a92a81603a Update README 2018-03-06 18:03:15 +00:00
Spring Buildmaster
165f6a59f1 Next development version 2018-03-06 17:13:21 +00:00
Janne Valkealahti
a7d38cd47a Polish docs
Relates #509
2018-03-06 15:23:12 +00:00
Janne Valkealahti
770db68703 Polish docs
Relates to #458
2018-03-06 15:18:21 +00:00
Janne Valkealahti
70c6b67a68 Update changelog 2018-03-06 14:58:20 +00:00
Patrick Ruckstuhl
151745a9d6 Lookup needed configurer instead of injecting all configurers
- Also lookup Configurer in StateMachineConfiguration
- Added test scenario for constructor injection issue
- Backport #522
- Relates #523
2018-03-06 14:41:13 +00:00
Nadim Benabdenbi
fc321893d2 Executor should poll until the queue is empty
- Default state machine executor: queue polling defect proof test.
- Default state machine executor: queue polling fixed.
- Fixes #520
2018-03-06 14:30:17 +00:00
Janne Valkealahti
c4954b4282 Update changelog 2018-03-01 11:59:51 +00:00
Janne Valkealahti
9abbff5824 Upgrade to boot 2.0.0 2018-03-01 08:36:14 +00:00
jvalkeal
65c9bfac89 Remove spring-statemachine-redis
- For now classes just moved under
  spring-statemachine-data-redis
- Fixes #514
2018-02-23 12:23:32 +02:00
jvalkeal
140ccbf2f0 Update getting started section
- Fixes #499
2018-02-22 13:57:48 +02:00
jvalkeal
cf3bfc6be0 StateMachineAnnotationPostProcessor should extract correct annotated method
- Fix processing so that only expected annotations are
  processed and handlers created.
- Backport #510
2018-02-22 08:54:48 +02:00
jvalkeal
0f6a3ce4c3 Upgrade to boot 2.0.0.RC2
- Fix monitoring sample due to actuator changes in boot
- Fixes #513
2018-02-22 08:51:51 +02:00
jvalkeal
12b5be0808 Rename sample datajpapersist to datapersist
- As it now supports mongo/redis using profiles,
  remove jpa from name.
- Change build and docs.
- Fixes #509
2018-02-21 17:26:19 +02:00
james
041189bb31 Use the contextObj as is when saving the StateMachineContext
- Polish and fix some merge issues
- Relates #494
2018-02-21 16:13:50 +02:00
jvalkeal
ef8704cf44 Base work adding mongo and redis to datajpapersist
- Build deps to mongo and redis
- Config changes using profiles to enable
  mongo or redis while jpa is default
- Relates #509
2018-02-20 08:57:44 +02:00
jvalkeal
b5acbf9d98 Polish 2018-02-15 18:31:42 +02:00
jvalkeal
6315509165 Rename spring-statemachine-boot
- spring-statemachine-boot is now
  spring-statemachine-autoconfigure
- Fixes #507
2018-02-15 17:54:07 +02:00
jvalkeal
dbb028b38e Support executing state action with timeout
- Add new concepts around executing state do actions
  allowing to use timeouts via StateDoActionPolicy.
- Global config per machine or via event headers.
- Backport #501
- Relates #504
2018-02-15 15:52:51 +02:00
jvalkeal
5d1820e553 Polish cdplayer sample tests
- Now hopefully these tests are more reliable
- Relates #343
2018-02-14 15:28:08 +02:00
jvalkeal
cbe2615c14 Merge spring-statemachine-core from 1.2.x
- Merge spring-statemachine-core/src which for some
  reason is not up to date in master/1.2.x anymore.
- Relates #504
2018-02-14 09:20:25 +02:00
jvalkeal
a4d43131ea Add support for completion transitions
- Currently into as internal new feature, add state
  completed concecept and use it in various places.
- Main focus for this commit is to add support using
  anonymous transitions with state do actions which
  requires proper completion schematics.
- Internal functionality here will probably expose to
  user level in future releases using various other
  concepts.
- Backport #466
- Relates #504
2018-02-13 12:37:04 +02:00
Marco Primi
6743d42792 Add getter for state actions
State has getters for entry and exit actions but no getter for state actions.

 - Add State::getStateActions() in State
 - Implement in AbstractState
 - Update tests

https://github.com/spring-projects/spring-statemachine/issues/502
2018-02-12 16:07:46 -08:00
jvalkeal
166737ffaa Update changelog 2018-02-12 12:23:19 +02:00
jvalkeal
917e3a933b Add starter to bom
- Fixes #498
2018-02-12 12:21:18 +02:00
jvalkeal
0f453cccea Remove bom from starter
- Having bom in starter in gradle build causes
  errors during a release.
- Relates to #458
2018-02-11 16:13:16 +02:00
jvalkeal
2cd45ae5da Remove starter from bom
- As starter uses bom, remove cycle
- Relates to #458
2018-02-11 15:48:25 +02:00
jvalkeal
f939e0b863 Update changelog 2018-02-11 15:18:05 +02:00
jvalkeal
ed3704a108 Update docs for bom and starter
- Add references to getting started
- Relates to #458
2018-02-11 14:59:15 +02:00
jvalkeal
30f48ecd54 Add hamcrest integration to variables in StateMachineTestPlanBuilder
- For testing extended state variables, it's now possible to use
  new method expectVariableWith which takes hamcrest matcher
  as an argument.
- Backport #483
2018-02-11 14:46:57 +02:00
jvalkeal
a988410ab5 Add starter
- New starter spring-statemachine-starter which simply
  add boot module and uses bom.
- Fixes #458
2018-02-11 14:20:13 +02:00
jvalkeal
328a2e9161 Implement custom trace repository
- Upgrade to boot 2.0.0.RC1
- Copy original boot's tracing features to get used
  as a base impl for statemachine.
- Fix samples, tests.
- Fixes #491
2018-02-11 09:28:28 +02:00
Marco Primi
c693e79f12 Fix broken link to issues tracker in project contribution guidelines
CONTRIBUTING.md points to JIRA for Spring Security.
Updated to point to GitHub issues.
2018-02-10 16:19:52 +02:00
jvalkeal
ee2fa8a6d6 Add sts4 stuff to gitignore 2018-02-10 16:16:49 +02:00
Janne Valkealahti
6a66d7a384 Fix merge error
- Fix changed signatures from spring data in JpaRepositoryTests.
- Relates to #435
2018-01-23 10:12:36 +00:00
Janne Valkealahti
dfe3aa6b72 Polish docs
- Add more info into what's new in 1.2.8
- Small polish
- Relates to #476
2018-01-23 09:57:34 +00:00
Janne Valkealahti
c90baa2624 Fix typo in transition conflict
- Changing unfortunate typo conflight vs. conflict.
- Also add some docs for transition conflict.
- Relates to #456
- Relates to #476
2018-01-23 09:57:34 +00:00
Janne Valkealahti
87dd8c1652 Update changelog 2018-01-23 09:57:34 +00:00
Janne Valkealahti
cbc8bf80d2 Documentation changes
- Document changes to JPA Entity model, persistence
  facilities and related new interfaces and services.
- Relates to #429
- Relates to #476
2018-01-23 09:56:44 +00:00
Janne Valkealahti
779664e01b Update copyright year
- Relates to #476
2018-01-23 09:56:44 +00:00
Janne Valkealahti
e2c2d4cbee Fix uml spel state action
- UmlModelParser wrongly set spel based state action as
  exit action. Change this to behave same as bean based
  action is used.
- Fixes #474
2018-01-23 09:56:27 +00:00
Janne Valkealahti
7044bf5949 Change JPA initial state field
- Change initial field to initialState which
  resolves initial reserved keywork problem.
- Fixes #472
2018-01-23 09:56:27 +00:00
Janne Valkealahti
58385696d3 Change JPA deferred events constraint
- Define fk in @CollectionTable instead trying
  to wrongly use @JoinTable
- Fixes #468
2018-01-23 09:56:27 +00:00
Janne Valkealahti
551ff9c874 JPA entity changes
- Modify existing JPA entity classes to
  have a fixed names for constraints and
  foreign key. Also name used tables so that
  we don't get crazy long names which are
  causing issues with some DB's
- Fixes #468
- Fixes #469
2018-01-23 09:56:27 +00:00
Janne Valkealahti
12a48ee443 Add configuration tests for StateMachineModelFactory
- While original issue is already fixed in 1.2.x, adding
  specific tests for checking if config is coming from model
  or adapter.
- Fixes #459
2018-01-23 09:56:27 +00:00
Janne Valkealahti
7c8b93bd45 Conflicting transitions cause undefined order behaviour
- Add new TransitionConflightPolicy and allow to configure
  it via an adapter interfaces.
- For now, use it in TransitionComparator which sorts transitions
  based on source states. This gives PARENT and CHILD sorting
  and allows to choose conflicting transitions either from parent
  or child.
- Add new sync thread used in submachines so that one thread is used
  in a whole call stach per machine(regions still get their own as well
  as a root machine).
- Fixes #456
2018-01-23 09:56:27 +00:00