Comments (1)
Use stateContext it works in StateMachineModelFactory also
i have used below guard implementation in customstatemachine model factory i think Action have the same implementation
private Function<StateContext<String, String>, Mono> choiceExtvariableGaurd(String varName, String decision) {
return new Function<StateContext<String, String>, Mono>(){
@OverRide
public Mono apply(StateContext<String, String> t) {
if (decision.equals(t.getExtendedState().getVariables().get(varName)))
return Mono.just(true);
return Mono.just(false);
}
};
}
from spring-statemachine.
Related Issues (20)
- how can i handler exception when send event HOT 1
- acquire statemachine is overwrite the statemachine to initial state because of the factory createmachine
- Improve Exception Handling
- Parallel loading of new sub machine at runtime programmatically
- Upgrade spring-boot 2.7.12
- Boot update
- spring-statemachine-data-jpa compatibility with Spring Boot 3 HOT 4
- State id reseting to null after resetStateMachineReactively method called. HOT 1
- Firing event from State Entry Action
- Maybe this is a potential requirement: to rollback(reverse) the state in SSM
- Deferred events are not handled in case the transition to the desired state was done by timerOnce HOT 6
- Transition with the same event in multiple regions
- Replace deprecated `set-output` command with environment file
- UmlStateMachineModelFactory doesn't resolve actions and guard by StateMachineComponentResolver
- StateMachine get blocked on 'aquireStateMachine(id)' when using an id that contains special regex characters HOT 1
- Reactive Api for doWithAllRegions HOT 1
- Upgrade spring-boot 3.1.x HOT 1
- Handle Spring Security Deprecations
- Boot update
- Perform some actions before evaluating guards
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-statemachine.