Commit Graph

788 Commits

Author SHA1 Message Date
Janne Valkealahti
a25b3147b6 Fix trigger sink usage 2020-11-01 13:11:47 +00:00
Janne Valkealahti
3d2e1de237 Allow some blockhound block methods
- Looks like some tests fails with redis
  as new lettuse driver, during connect phase,
  will block as there's a timeout which cause
  a block within netty internals(which a bit weird).
- Time of this commit block error came from
  https://github.com/netty/netty/blame/4.1/common/src/main/java/io/netty/util/HashedWheelTimer.java#L349
2020-10-31 14:51:50 +00:00
Janne Valkealahti
7963c24d8c Add notes for action error handling 2020-10-31 13:50:59 +00:00
Janne Valkealahti
96eab9d061 Fix deprecations
- Due to switch to boot 2.4.x, fixing various
  deprecations where things mostly come from reactor.
2020-10-31 09:18:35 +00:00
Janne Valkealahti
7526cb0f54 Update boot 2.4.0-RC1 2020-10-31 09:18:35 +00:00
Janne Valkealahti
aac4e1d70b Remove dep to trigger BubbleException
- As a bad behaviour we relied on reactor throwing
  this particular exception to re-throw it to propagate
  exception order to deny event.
- Now trying to use callback to do a same thing as
  newer reactor versions don't throw anymore.
2020-10-31 09:18:35 +00:00
Janne Valkealahti
35e337e702 Remove unused MongoDbRule 2020-10-31 09:18:35 +00:00
Janne Valkealahti
7023093e1d Polish 2020-10-25 12:51:28 +00:00
Janne Valkealahti
cf242802e6 Use reactive lifecycle for triggers
- Change to use reactive method for lifecycle handling
  for triggers in an executor.
2020-10-25 10:42:49 +00:00
Janne Valkealahti
175a156a15 Polish docs 2020-10-24 14:48:53 +01:00
Janne Valkealahti
066e80dbdd Fix wrong transition with join complete
- Oversight with original reactor work.
2020-10-24 09:53:48 +01:00
Janne Valkealahti
bb46cdbad6 Polish 2020-10-24 09:36:09 +01:00
Janne Valkealahti
bd1d6492fc Testplan array contains should discard order
- Replace contains with containsInAnyOrder for asserts.
- Forward port #883
2020-10-18 17:07:09 +01:00
Janne Valkealahti
15a0b2d3dc Update blockhound settings 2020-10-18 10:08:41 +01:00
Janne Valkealahti
7ec28522cf Remove h2 downgrade
- Use h2 from framework as #817 doesn't cause issues anymore.
2020-10-18 09:16:38 +01:00
Janne Valkealahti
ca615c8237 Polish 2020-10-18 09:16:19 +01:00
Janne Valkealahti
e47221056b Pass event and headers into context
- Deprecated old buildStateMachineContext and add new method
  to pass message order to populate event and headers
  into a context.
- Forward port #870
2020-10-17 16:00:56 +01:00
Janne Valkealahti
349e460785 Change stateMachineContext column lentgh
- To fix HSQLDB default hibernate dialect, change
  length to 10K.
- Other real used DB's should really do this in ddl's.
- Forward port #882
2020-10-17 16:00:40 +01:00
Janne Valkealahti
70e2c06ae7 Deprecated original interceptor methods
- Original preStateChange and postStateChange are now deprecated
  and once those are removed we don't need to do calls to both
  in StateMachineInterceptorList.
- Relates to #871
2020-10-17 10:44:41 +01:00
Janne Valkealahti
902121c7f1 Remove persisting double invocation
- As it's currently expected that pre/post interceptor are called
  for both preStateChange and postStateChange, fix
  AbstractPersistingStateMachineInterceptor so that actual persist
  doesn't happen twice.
- Eventually original preStateChange and postStateChange methods
  will get removed after deprecation(which should have happened
  a long time ago).
- Forward port #871
2020-10-17 10:44:24 +01:00
Janne Valkealahti
6a39a9cd34 Update docs
- Notes for migration quide for state actions and region
  execution for reactor threads.
- Relates #742
2020-10-11 15:46:15 +01:00
Janne Valkealahti
10e76a2d61 Fix typos in docs
- Fixes #875
- Fixes #877
2020-10-11 14:27:03 +01:00
Janne Valkealahti
3309d89491 Disable security on a web sample
- Just exclude SecurityAutoConfiguration
- Fixes #880
2020-10-11 14:12:19 +01:00
Yury Tsarkov
54048b26d9 UML diagram naming fix 2020-10-11 13:09:36 +01:00
Yury Tsarkov
8b6b848784 minor syntax fix 2020-10-11 13:09:36 +01:00
Janne Valkealahti
45627e4f63 Reactive PseudoStates
- Change entry/exit functions to reactive types
  to have those in a reactive stack.
- Fixes #878
2020-10-11 13:06:53 +01:00
Janne Valkealahti
e78811eaa9 Remove Function interface
- Switch from org.springframework.statemachine.support.Function
  to java.util.function.Function.
- Fixes #867
2020-09-13 15:03:16 +01:00
Janne Valkealahti
d9e2ed5425 Pass error from executor
- New concept of using callback to pass on error as
  things can't be properly propagated as we're manually
  dispatching to processor.
- Relates #821
2020-09-13 14:20:03 +01:00
Janne Valkealahti
ac3e4193d7 Polish 2020-09-10 07:56:52 +01:00
Janne Valkealahti
f425ca9678 Add nested dirs to workflow 2020-09-10 07:53:03 +01:00
Janne Valkealahti
d4c9303194 Upload gradle logs with build failure 2020-09-09 21:39:08 +01:00
Janne Valkealahti
706ae5511f Fix reactive event handling
- Before attempting to add better level of error handling,
  discard all errors what might come from action execution.
- Handle some cases where event deny is reported back as accepted.
- Fix reactor error for double subcription.
- Relates #821
2020-09-09 20:33:35 +01:00
xJoeWoo
34a28b57fa Add generic thread safe support to PersistStateMachineHandler 2020-09-06 16:15:21 +01:00
xJoeWoo
61c58cdee0 Improve creation of StateMachineFactory
- Returning factory from StateMachineBuilder.Builder
- Fixes #845
2020-09-06 15:31:31 +01:00
Janne Valkealahti
c63a6624e9 Fix deprecations 2020-09-06 09:57:25 +01:00
Janne Valkealahti
4e4ed2fc38 Polish 2020-09-06 09:45:07 +01:00
Janne Valkealahti
eea8f1f045 Attempt to fix flaky tests
- Change timeouts
- Switch to assertj
2020-09-06 08:34:20 +01:00
Janne Valkealahti
2161fb398c Disable fail-fast on a workflow matrix 2020-09-05 16:43:41 +01:00
Janne Valkealahti
37c865db3d Pump gradle wrapper to 6.6.1 2020-09-05 16:32:55 +01:00
Janne Valkealahti
0ee5e5afdb Bump to boot 2.3.3.RELEASE 2020-09-05 16:07:15 +01:00
Dan Siwiec
ceb4324afc Fix a typo 2020-09-05 15:51:20 +01:00
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