595 Commits

Author SHA1 Message Date
Janne Valkealahti
2797c0133c URL Cleanup
- Merge/squash #691 #707 #713
- Exclude all .di, .notation and .uml files whose id's cannot be
  changed.
2019-05-16 07:55:57 +01:00
Spring Buildmaster
f3a49c290a Next development version 2019-05-10 07:14:27 +00:00
Janne Valkealahti
74583209b8 Update changelog 2019-05-10 07:21:11 +01:00
Janne Valkealahti
246e415563 Fix concurrency in DefaultStateMachineExecutor
- Change deferList from LinkedList to ConcurrentLinkedQueue
  to fix ConcurrentModificationException with parallel events.
- Backport #736
- Relates #578
2019-05-10 07:01:11 +01:00
Janne Valkealahti
8021a82239 Initial state wrongly entered with entry point
- Fix case where submachine entry via entrypoint wrongly
  caused its initial state to get activated before
  entering transition target leading out from entrypoint.
- Backport #577
- Relates #578
2019-05-10 07:00:08 +01:00
Spring Buildmaster
14f1407ab9 Next development version 2019-03-25 17:53:33 +00:00
Janne Valkealahti
49be4fdbdf Update changelog 2019-03-25 15:49:33 +00:00
Janne Valkealahti
d427d2a72d Upgrade to boot 1.5.19
- Focus of this change is to get latest deps from boot 1.5.x
  and framework 4.3.x.
- This commit changes baseline from boot 1.4.x to 1.5.x and
  effectively causes below changes:

  -springDataRedisVersion=1.7.3.RELEASE
  +springDataRedisVersion=1.8.18.RELEASE

  -commonsPool2Version=2.4.2
  +commonsPool2Version=2.4.3

  -springBootVersion=1.4.1.RELEASE
  +springBootVersion=1.5.19.RELEASE

  -springSessionVersion=1.0.2.RELEASE
  +springSessionVersion=1.3.5.RELEASE

  -tomcatEmbedVersion=8.5.5
  +tomcatEmbedVersion=8.5.37

  -springSecurityVersion=4.0.3.RELEASE
  +springSecurityVersion=4.2.11.RELEASE

  -springVersion=4.3.3.RELEASE
  +springVersion=4.3.22.RELEASE

  -springDataMongoDbVersion=1.9.3.RELEASE
  +springDataMongoDbVersion=1.10.18.RELEASE

  -springDataCommonsVersion=1.12.3.RELEASE
  +springDataCommonsVersion=1.13.18.RELEASE

  -springDataJpaVersion=1.10.3.RELEASE
  +springDataJpaVersion=1.11.18.RELEASE

- Fix MongoDbRule so that it detects non existend mongo faster.
- Fixes #698
2019-03-25 10:06:16 +00:00
Spring Operator
8da913ccf1 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://www.apache.org/licenses/LICENSE-2.0.txt with 1 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0.txt ([https](https://www.apache.org/licenses/LICENSE-2.0.txt) result 200).
* http://docs.jboss.org/jbossas/javadoc/4.0.5/connector with 1 occurrences migrated to:
  https://docs.jboss.org/jbossas/javadoc/4.0.5/connector ([https](https://docs.jboss.org/jbossas/javadoc/4.0.5/connector) result 301).
* http://repo.springsource.org/libs-milestone with 1 occurrences migrated to:
  https://repo.springsource.org/libs-milestone ([https](https://repo.springsource.org/libs-milestone) result 301).
* http://repo.springsource.org/libs-release with 2 occurrences migrated to:
  https://repo.springsource.org/libs-release ([https](https://repo.springsource.org/libs-release) result 301).
* http://repo.springsource.org/plugins-release with 1 occurrences migrated to:
  https://repo.springsource.org/plugins-release ([https](https://repo.springsource.org/plugins-release) result 301).
* http://spring.io/spring-statemachine with 1 occurrences migrated to:
  https://spring.io/spring-statemachine ([https](https://spring.io/spring-statemachine) result 302).
2019-03-19 11:59:05 +00:00
Janne Valkealahti
2d26c9e7c8 Next development version 2018-07-12 16:50:56 +01:00
Janne Valkealahti
1e2d16fc47 Update changelog 2018-07-12 13:27:33 +01:00
Janne Valkealahti
4568f80730 Polish instance check
- Remove possible call to expensive
  BeanFactory#toString.
- Backport #569
- Relates #573
2018-07-12 08:23:55 +01:00
Janne Valkealahti
fd8db33c37 UML Factory facilities leak memory
- Refactor UmlStateMachineModelFactory and UmlUtils
  so that eclipse emf unloads a resource and thus
  should work better with gargage collections.
- Also try to clean out tmp files.
- Relates #572
- Relates #573
2018-07-10 17:25:24 +01:00
Janne Valkealahti
ea778f2086 Fix 1.2.x build for jdk7
- Add proper build sniffer config to catch
  jdk7 compat. This is pretty much one used
  in a framework build itself.
- Fix jdk7 usage in DefaultStateMachineExecutor.
- Resolves #561
2018-07-09 10:52:35 +01:00
Spring Buildmaster
ad522a5565 Next development version 2018-04-26 06:24:20 +00:00
Janne Valkealahti
655461182b Update changelog 2018-04-26 06:42:34 +01:00
Corbin Schwalm
c701bfae91 Fix Enum Comparision For State Machine Restart
- When comparing states that are of type Enum, the check
  always fails causing the state machine to incorrectly
  use the starting state regardless of where it was previously.
- Added unit test to test correct state is set on restart.
  However, added changes have no effect for this test. The issue is being
  caused elsewhere. When loading from JPA, ss.getId() instanceof S
  is always false causing the previous state to never be set.
- Backport #537
- Relates to #549
2018-04-11 09:08:05 +01:00
Alexandre Navarro
eda6bfd38b Add getter on TimerTrigger for period and count
- Backport #533
- Relates to #549
2018-04-11 09:06:37 +01:00
Spring Buildmaster
889ad0c6f0 Next development version 2018-03-28 06:57:25 +00:00
Janne Valkealahti
6314b6c417 Update changelog 2018-03-28 07:28:07 +01:00
Janne Valkealahti
b2218d228f Executor may build up triggers with timers
- Change executor behaviour so that it consumes all queued triggers
  which should help for cases where timers queue triggers where
  processing is waiting transition to happen.
- Fixes #538
2018-03-21 15:46:39 +00:00
Janne Valkealahti
76adda29e7 Fix issue with devtools
- Where class is resolved, use ClassLoader from
  BeanClassLoaderAware which is the one working
  with devtools.
- Backport #531
- Relates to 529
2018-03-19 07:58:16 +00:00
Janne Valkealahti
a2f8257181 Polish 2018-03-07 09:10:33 +00:00
Spring Buildmaster
a3b19be2e8 Next development version 2018-03-06 16:20:18 +00:00
Janne Valkealahti
4f5cdaee93 Polish docs
- Relates #509 #501 #466
2018-03-06 15:40:25 +00:00
Janne Valkealahti
d8499a7687 Update changelog 2018-03-06 14:49:58 +00:00
Nadim Benabdenbi
45b6b2e5ae Executor should poll until the queue is empty
- Default state machine executor: queue polling defect proof test.
- Default state machine executor: queue polling fixed.
- Backport #520
- Relates #496
2018-03-06 14:35:01 +00:00
Patrick Ruckstuhl
dd8c4ea665 Lookup needed configurer instead of injecting all configurers
- Also lookup Configurer in StateMachineConfiguration
- Added test scenario for constructor injection issue
- Fixes #522
2018-03-05 13:20:58 +00:00
jvalkeal
9788d2dfeb Rename sample datajpapersist to datapersist
- As it now supports mongo/redis using profiles,
  remove jpa from name.
- Change build and docs.
- Backport #509
2018-02-21 18:06:52 +02:00
james
282d395ba0 Use the contextObj as is when saving the StateMachineContext
- Polish and fix some merge issues
- Backport #494
2018-02-21 18:06:36 +02:00
jvalkeal
bbc4e336e5 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
- Backport #509
2018-02-21 18:06:20 +02:00
jvalkeal
3ce942fce3 StateMachineAnnotationPostProcessor should extract correct annotated method
- Fix processing so that only expected annotations are
  processed and handlers created.
- Fixes #510
2018-02-21 15:17:17 +02:00
jvalkeal
08e1138aab 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.
- Fixes #501
2018-02-15 14:24:15 +02:00
jvalkeal
3f8f61e22d Polish cdplayer sample tests
- Now hopefully these tests are more reliable
- Relates #343
- Backport
2018-02-15 14:10:37 +02:00
jvalkeal
c5ebca0b08 Polish tests and executor
- Remove extra logging
- Polish tests, remove thread sleeps
- Relates #466
2018-02-13 12:30:39 +02:00
Marco Primi
371b594f15 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
 - Backport #502
 - Relates #496

https://github.com/spring-projects/spring-statemachine/issues/502
2018-02-13 09:12:25 +02:00
jvalkeal
7857440559 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.
- Fixes #466
2018-02-12 13:30:37 +02:00
jvalkeal
0ee1c2509b Polish hamcrest use it test integration
- Rename expectVariableMatcher to expectVariableWith.
- Change other variable expects internally to use hamcrest.
- Fixes #483
2018-02-01 09:49:32 +02:00
jvalkeal
7f78deadcc Add hamcrest integration to variables in StateMachineTestPlanBuilder
- For testing extended state variables, it's now possible to use
  new method expectVariableMatcher which takes hamcrest matcher
  as an argument.
- Fixes #483
2018-01-27 14:30:54 +00:00
Spring Buildmaster
fd63d9118b Next development version 2018-01-22 13:53:05 +00:00
Janne Valkealahti
62dc50f9cd Polish docs
- Add more info into what's new in 1.2.8
- Small polish
- Relates to #476
2018-01-22 10:04:25 +00:00
Janne Valkealahti
ea6b71c6a7 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-22 09:24:35 +00:00
Janne Valkealahti
5c13f3bd6e Update changelog 2018-01-21 13:25:28 +00:00
Janne Valkealahti
744d138944 Documentation changes
- Document changes to JPA Entity model, persistence
  facilities and related new interfaces and services.
- Relates to #429
- Relates to #476
2018-01-21 11:40:50 +00:00
Janne Valkealahti
3481140126 Update copyright year
- Relates to #476
2018-01-19 08:19:36 +00:00
Janne Valkealahti
f524ea4f62 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-19 08:01:48 +00:00
Janne Valkealahti
394ded8daa Change JPA initial state field
- Change initial field to initialState which
  resolves initial reserved keywork problem.
- Fixes #472
2018-01-17 18:39:23 +00:00
Janne Valkealahti
cb3bb87d8b Change JPA deferred events constraint
- Define fk in @CollectionTable instead trying
  to wrongly use @JoinTable
- Fixes #468
2018-01-17 16:52:13 +00:00
Janne Valkealahti
0f7624adeb 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-17 16:14:13 +00:00
Janne Valkealahti
66174adde3 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
2017-12-22 09:23:10 +00:00