Commit Graph

747 Commits

Author SHA1 Message Date
Dan Siwiec
c46f4778b4 Fix typo in documentation 2020-09-05 15:51:20 +01:00
Jay Bryant
2e5ccdf424 Upgrade spring-doc-resources
Upgrade spring-doc-resources from version 0.2.0 to version 0.2.1
to get a bug fix (setting display width for HTML output).
2020-09-05 15:50:22 +01:00
Jay Bryant
af66fa8321 Update spring-doc-resources version and highlight
Update the version of spring-doc-resources and the highlighter for HTML
to get the latest look and feel and nicer code listings.
2020-09-05 15:50:22 +01:00
Janne Valkealahti
8d0f7f0268 Pump asciidoctor version
- New versions needed for jdk11
- Forward port #863
2020-09-05 15:29:42 +01:00
Janne Valkealahti
f835ce6959 Fix javadocs with jdk11
- Forward port #863
2020-09-05 15:27:29 +01:00
Janne Valkealahti
e3e16bd8c9 Add ci workflow 2020-09-05 14:53:58 +01:00
Dogukan Kundum
3c38675eb0 Jpa eclipselink compability
- With this change, Eclipselink support is added to SSM.
  To do this, table names are modified and some primitive
  types are changed to object types.
- Edited import class types.
2020-03-02 16:15:51 +00:00
Janne Valkealahti
9e0bdae46f Add Flux test for denied result
- Relates #802
2019-12-26 12:41:24 +00:00
Janne Valkealahti
dd2017c8b5 Configure BlockHound 2019-12-26 10:23:17 +00:00
Janne Valkealahti
ec951b5929 Update reactive docs
- Relates #742
2019-12-25 16:49:49 +00:00
Janne Valkealahti
de9de85237 Tag to smoke tests 2019-12-25 09:34:59 +00:00
Janne Valkealahti
2eebb2b0bf Polish build 2019-12-25 09:23:49 +00:00
Janne Valkealahti
00a4fae3a1 Add checks for missing transitions
- Now checking if some transitions are missing
  and throwing a proper exception instead of NPE.
- Fixes #775
2019-12-25 08:38:51 +00:00
Janne Valkealahti
20c1f56381 Relax sync in DefaultStateMachineService
- Now starting machine outside of a sycn block with
  acquire vs. release. This should allow long running
  start in a machine to allow next acquire to work faster.
- Forwardport #770
- Relates #777
2019-12-25 07:40:26 +00:00
Janne Valkealahti
b456ea823a Fix TimerSmokeTests
- Now doing stop assert in same step where machine
  actually stops which is more reliable way to test.
2019-12-25 07:29:33 +00:00
Janne Valkealahti
49860418f8 Duplicate base junit4 classes for junit5
- AbstractStateMachineTests to AbstractStateMachineJUnit4Tests
- StateMachineTestPlanBuilderTests to StateMachineTestPlanBuilderJUnit4Tests
- Add AbstractStateMachineJUnit5Tests and StateMachineTestPlanBuilderJUnit5Tests
- Move away from junit4 assertThat methods
- Fixes #780
- Also completes and Fixes #771
2019-12-24 20:37:11 +00:00
Janne Valkealahti
3d71c9606e Exclude smoke test by default 2019-12-24 17:06:57 +00:00
Janne Valkealahti
10ce7a65a4 Move to junit5 in all framework tests
- Just a migration
- Replace RedisRule with EnabledOnRedis
- Replace MongoDbRule with EnabledOnMongoDb
- spring-statemachine-test and some docs contains refs to junit4
  but those are support packages and will stay in place.
- Fixes #779
- Relates #771
2019-12-24 16:52:22 +00:00
Janne Valkealahti
0adae262c4 Bump to boot 2.2.2 2019-12-24 07:41:41 +00:00
Janne Valkealahti
5324c3e8d5 Revert h2 in tests to 1.4.199
- Fixes #817
2019-11-10 09:49:02 +00:00
Janne Valkealahti
2e69b564f0 Upgrade to boot 2.2.1 2019-11-09 14:55:30 +00:00
Janne Valkealahti
af81e8dd2b Add missing test files for mongo and redis
- There was an oversight for #588 and its pr which only
  added data15.json file for jpa. This commit
  adds those for mongodb and redis.
2019-10-27 10:15:57 +00:00
Janne Valkealahti
7465451cc3 Upgrade to Boot 2.2.0.RELEASE 2019-10-17 09:07:11 +01:00
Janne Valkealahti
73d2181d93 Upgrade to Boot 2.2.0.M6 2019-09-13 08:28:10 +03:00
Adar Wesley
a8a842fc2a Fix action loading in uml
- Refactored actions loading code to eliminate duplicated code.
- Added relevant test case.
- Fixes #588
2019-09-02 07:21:45 +03:00
Janne Valkealahti
16e32e4f78 Update changelog 2019-08-07 08:29:13 +01:00
Janne Valkealahti
010ae6e05b Upgrade to Boot 2.2.0.M5 2019-08-06 16:30:29 +01:00
Janne Valkealahti
96773828fc Docs changes
- Relates #742
2019-08-04 08:04:05 +01:00
Janne Valkealahti
7fac746298 TimerSmokeTests to junit5
- Start using tag smoke to exclude those from a normal
  ci build cycle(will have a separate plan).
- Relates #779
2019-08-03 16:01:01 +01:00
Janne Valkealahti
8bd0df9e4c Docs changes
- Add some notes for threading and wipe out TaskExecutor and
  TaskScheduler from docs.
- Some notes about replacement with reactor.
- Relates #742
2019-08-03 15:27:21 +01:00
Janne Valkealahti
da9c68f4e6 Remove TaskExecutor and TaskScheduler
- As all execution and scheduling is now in reactor,
  remove all traces of these spring interfaces.
- Fixes #800
2019-08-03 14:40:37 +01:00
Janne Valkealahti
f1bf35e688 Trigger reactive changes
- Triggers evaluate method is now reactive.
- Various changes for signature change.
- Fixes #799
2019-08-03 12:59:52 +01:00
Janne Valkealahti
e566f7ee65 Polish
- Relates #791
2019-08-03 07:57:16 +01:00
Janne Valkealahti
6befc614a0 Change tasks sample to parallel execution
- Now defining parallel region execution policy as
  TaskExecutor won't work anymore.
- Relates #397
2019-08-03 07:42:12 +01:00
Janne Valkealahti
200393c1e8 Fix asciidoc replace attributes 2019-07-02 07:09:34 +01:00
Janne Valkealahti
0a6992959a Fix NPR in ReactiveStateMachineExecutor
- Re-enable test in EventDeferTests as this NPE fix
  now handles smoke test.
- Relates #791
2019-07-01 09:09:12 +01:00
Janne Valkealahti
5128ed735a Change things around guards to reactive
- For Guard and Transition change call stach to be fully
  reactive from executor. Some changed signatures similarly
  what was needed for reactive Actions.
- Disabling one smoke test to get figure out later as
  something is broken somewhere, possible reactor bug...
- Relates #791
2019-06-30 16:51:08 +01:00
Janne Valkealahti
02be7eb478 Polish 2019-06-29 15:49:48 +01:00
Janne Valkealahti
e7092a31f1 Initial reactive Guard changes
- First changes to introduce ReactiveGuard similar to work done
  for ReactiveAction. User level interface is ReactiveGuard but internally
  it is handled as its super type Function<StateContext<S, E>, Mono<Boolean>>.
- This change still keeps some calls as blocking which will get changed
  in futher commits to get a full reactive chain.
- Touching only Transition to change guard signature, other use of blocking guard
  internally need to get similar changes in next commits.
- Baby steps...
- Relates #791
2019-06-29 15:30:41 +01:00
Janne Valkealahti
fcd9945169 Updates to migration guide
- Relates #742
2019-06-29 12:12:47 +01:00
Janne Valkealahti
882e559bf1 Upgrade to boot 2.2.0.M4
- Relates #765
2019-06-29 07:20:00 +01:00
Ming Deng
9f10700da2 Refactor to junit5
- remove junit4 dependecies
- refactor the unit tests by junit5
- enhance the spring-statemachine-test and spring-statemachine-build-tests so they can work together with junit4/junit5
- relates #779
2019-06-08 07:23:59 +01:00
Janne Valkealahti
edb76476a6 Prepare for new reactive docs
- Skeleton for migration guide.
- Relates to #742
2019-05-27 09:13:47 +01:00
Ming Deng
f816a88e7e Change StateMachineFunction to Consumer
- Remove StateMachineFunction class
- Replace StateMachineFunction with Consumer
- Fixes #767
2019-05-27 08:44:33 +01:00
Janne Valkealahti
10f986ce06 Polish AbstractState
- Polish previous change to AbstractState by using a shared function
  completionStateListenerSink to track completion sink as functionality
  between entries to submachine/regions should be similar.
- Mostly relates to #743
2019-05-26 15:20:03 +01:00
Janne Valkealahti
3cf07e8066 Add .attach_pid* to .gitignore 2019-05-26 14:32:04 +01:00
Janne Valkealahti
63e1816587 Tweak TimerSmokeTests
- Change await time as testDeadlock seems to fail on ci
  to wait machine stop. Now use 5 sec instead of 1.
- Relates to #744
2019-05-26 09:54:05 +01:00
Janne Valkealahti
bea165c765 Split appendices
- Split appendices to separate files to prepare new
  reactive migration guide.
- Relates #742
2019-05-26 09:54:05 +01:00
Janne Valkealahti
5562bfdd12 Move anonymous transitions to reactive chain
- This commit changes a way how triggerless transitions are executed by
  going via new doOnComplete method in StateListener which returns
  Mono<Void>. This used to be a simple fire and forget subscribe via listener
  and now fully handled via reactive chain when state is complete. Rest of
  a changes are to tweak state actions to run parallel to be able to cancel
  those and then follow and track when triggerless transitions need to be
  executed.
- AbstractState still have some work to do for disposing things around
  submachines which currently seem to break thins if handleStateDoOnComplete
  is disposed when submachine state is exited. We'll leave this to get
  fixed later.
- Add tag handling for junit5 which can be set via gradle build properties
  statemachineIncludeTags and statemachineExcludeTags.
- Add BlockHound to build which can be activated via gradle build
  property statemachineBlockHound.
- Add org.awaitility:awaitility to various test deps.
- Mostly relates to #734
2019-05-25 13:53:31 +01:00
Janne Valkealahti
d0c692c2e8 Add junit5 to build infra
- Fixes #772
2019-05-18 08:48:59 +01:00