Fix wrong transition with join complete
- Oversight with original reactor work.
This commit is contained in:
@@ -92,8 +92,8 @@ public class ForkJoinEntryExitTests extends AbstractBuildTests {
|
||||
.step()
|
||||
.sendEvent("E3")
|
||||
.expectStateEntered(2)
|
||||
// TODO: S211 exited twice
|
||||
.expectStateExited(4)
|
||||
.expectStateExited("S220", "S211", "S221", "S2")
|
||||
.expectStates("S3").and()
|
||||
.build();
|
||||
plan.test();
|
||||
@@ -123,8 +123,8 @@ public class ForkJoinEntryExitTests extends AbstractBuildTests {
|
||||
.step()
|
||||
.sendEvent("E3")
|
||||
.expectStateEntered(2)
|
||||
// TODO: S211 exited twice
|
||||
.expectStateExited(4)
|
||||
.expectStateExited("S220", "S211", "S221", "S2")
|
||||
.expectStates("S3").and()
|
||||
.build();
|
||||
plan.test();
|
||||
|
||||
@@ -386,7 +386,7 @@ public class ReactiveStateMachineExecutor<S, E> extends LifecycleObjectSupport i
|
||||
return Flux.fromIterable(joinSyncTransitions)
|
||||
.flatMap(tt -> {
|
||||
StateContext<S, E> stateContext = buildStateContext(queuedMessage, tt, relayStateMachine);
|
||||
return tt.transit(stateContext).then(stateMachineExecutorTransit.transit(t, stateContext, queuedMessage));
|
||||
return tt.transit(stateContext).then(stateMachineExecutorTransit.transit(tt, stateContext, queuedMessage));
|
||||
})
|
||||
.doFinally(s -> {
|
||||
joinSyncTransitions.clear();
|
||||
|
||||
Reference in New Issue
Block a user