uml-spring-state-machine | Two Spring-State-Machines working together in one project
kandi X-RAY | uml-spring-state-machine Summary
kandi X-RAY | uml-spring-state-machine Summary
Two Spring-State-Machines working together in one project
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Configure the state machine
- Set listener for state 1
- The instance of StateMachineFactory
- Configure the state machine model with the given model factory
- Set listener for state 1
- The instance of StateMachineFactory
- Configure the state machine model
- Configure a StateMachineListener
- The state machine factory
- Bean name
- Runs the state machine
- Create a new state machine listener
- Start the application
uml-spring-state-machine Key Features
uml-spring-state-machine Examples and Code Snippets
Community Discussions
Trending Discussions on uml-spring-state-machine
QUESTION
Link to the project on github for testing
The Payprus Files are here
I'm trying to make a State-Machine with Papyrus. The State Machine should combine two single state-machines to one, as you can see in the first image:
the state machine 1 is defined in the 2nd picture and the state machine 2 is defined in the 3rd picture
I'm consuming the UML with my spring application (scroll down for code)
I tried this with a real simple single state machine (so only something like state machine 1 but with initial and final point) and it worked perfectly, the System.out.println()
was writing the whole code.
But with this 2 state machines, the machine starts in the TOP at the top_inital point and goes then to top_s1. This was expected and working
Than i expected to go over the topExitPoint1 to the sm1EntryPoint -> entering the StateMachine1 -> than to StateMachine2 -> back to top and so on.
But unfortunately the only state in my machine which was used has been the one in top -> the top_s1 state. The console log only shows me this:
...ANSWER
Answered 2017-Sep-27 at 16:47So, i fixed this, with building two separate State-Machines together in one project and connecting them https://github.com/joergi/uml-spring-state-machine/ see the new push to master
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install uml-spring-state-machine
You can use uml-spring-state-machine like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the uml-spring-state-machine component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page