It technically works, but of course isn't ideal as I am subscribing here inside the action and breaking my reactive chain. But if I create a new ReactiveAction that returns a Mono, how do I actually add it to the state like .state(CommitState.COMMIT_BLOCKS, commitStateService.commitBlocks()) ?
Hi, I am looking to upgrade to v4.0.0 and switch to the new
ReactiveActions
, however I am not entirely sure how to migrate my project.Currently I have a
StateMachineConfiguration
and I add theActions
to the states using theStateMachineStateConfigurer
Where the Action is defined as:
It technically works, but of course isn't ideal as I am subscribing here inside the action and breaking my reactive chain. But if I create a new
ReactiveAction
that returns aMono
, how do I actually add it to the state like.state(CommitState.COMMIT_BLOCKS, commitStateService.commitBlocks())
?