Getting Started with Spring State Machine

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ม.ค. 2025

ความคิดเห็น • 34

  • @poeticsense96
    @poeticsense96 2 ปีที่แล้ว +5

    @Spring Framework Guru - Excellent Tutorial on Spring State Machine. **btw noticed 1:00:51 - 1:05:40 - section on sendEvent() is a repeat.

  • @senior_hatrik
    @senior_hatrik 3 ปีที่แล้ว +3

    Omg. This is the best explanation of Spring State Machine ever. Thanks for your professional videos on Spring!

  • @angeloamati2690
    @angeloamati2690 2 หลายเดือนก่อน

    thanks soooo much, this is exaclty what i need. Thanks god people like u exist and 'invest' thier time to distribute knowledge

  • @krlsdu
    @krlsdu 4 ปีที่แล้ว +5

    Can you show others features from ssm, like guard, trigger, fork and join? Thank you and great job!

  • @RabbleInArms
    @RabbleInArms 2 ปีที่แล้ว +1

    Thanks for sharing this. I'm sure you could develop an entire course around all the features of SSM. I look forward to it!

  • @TomSeidelDresden
    @TomSeidelDresden ปีที่แล้ว +3

    A great source to get started.
    One question: It seems to me a bit strange to send an event from within an action, cause as far as i understood, the actions should be state-agonistic so that they can be reused in different transitions.
    Why arent't you using a guard for checking the amount? - Seems to me the cleaner approach.

  • @sandeepkumar-bl8jb
    @sandeepkumar-bl8jb 4 ปีที่แล้ว +1

    Very good demo explained the concepts clearly

  • @jakobsaternus3526
    @jakobsaternus3526 หลายเดือนก่อน

    There is now repository support in Spring SM.

  • @RajaPandianCRP
    @RajaPandianCRP 4 ปีที่แล้ว

    Thumbs Up to this video. I was working on a use case and this video helped me with the needed information. Thank you!

  • @wtfogafrospice
    @wtfogafrospice 4 ปีที่แล้ว

    I bought two of your courses on udemy because of this video. Keep up the great work

  • @satamguin4020
    @satamguin4020 3 ปีที่แล้ว +1

    Thank you for the video ... Awesomely described and able to make a small project out of this. Again simply WOW 😊

  • @MahmoodAl-haddad
    @MahmoodAl-haddad 2 ปีที่แล้ว +1

    I feel like the order of the transition config could be order in an easier to understand manner. If I am not mistaken, basically the configuration translates to:
    If the specified EVENT was called, and the state is SOURCE, then do this ACTION and change the state to the TARGET. So a better order would be:
    .event().source().action().target()
    I feel like this is much more readable. That aside, thanks a lot for the video! It made this overwhelming concept much easier.

  • @brunodz1
    @brunodz1 ปีที่แล้ว

    thanks, it helps me understand a lot.

  • @khileshsahu4504
    @khileshsahu4504 4 ปีที่แล้ว +1

    Can we use Spring Statemachine for micro service based architecture where output of each service can considered as a state. If possible please share any example or reference.

  • @kennethcarvalho3684
    @kennethcarvalho3684 ปีที่แล้ว

    In what context is this feature used within a SB application?

  • @lsaackrpruto
    @lsaackrpruto 4 ปีที่แล้ว +1

    35:35 Unit test, can you do a tutorial on unit tests?

  • @songs1093
    @songs1093 2 ปีที่แล้ว

    Can we mock spring statemachines?

  • @kavinduvindikasomadasa352
    @kavinduvindikasomadasa352 2 ปีที่แล้ว +1

    Inside the build method you're calling repository to get the payment object. Then again, inside the interceptor, you're calling it again. Isn't this an additional overhead ? This seems like an unnecessary implementation ?

  • @adilod
    @adilod 4 ปีที่แล้ว +1

    I am getting an error where I am unable to transition to Autorize. Can anyone share the code base link on github ?

  • @ItIsHidden
    @ItIsHidden 3 ปีที่แล้ว

    Is it possible to use Spring Statemachine without spring? e.g. in Quarkus?

  • @mauriciotoledo1072
    @mauriciotoledo1072 2 ปีที่แล้ว

    Where's the state stored? Do we need persistence, redis?

  • @leenabhandari5949
    @leenabhandari5949 3 ปีที่แล้ว

    Very helpful. Thank you.

  • @ajayjumbad7664
    @ajayjumbad7664 4 ปีที่แล้ว +1

    Hi John,
    Whenever I'm trying to run the Junit test for StateMachineConfigTest class I'm getting java.lang.NullPointerException
    for this line in my application:
    StateMachine sm = factory.getStateMachine(UUID.randomUUID());
    I've Autowired the StateMachineFactory

    • @marcodoe4690
      @marcodoe4690 4 ปีที่แล้ว

      have you set the @EnableStateMachineFactories annotation on a class that is annotated with @Configuration?

    • @jahnavichitta1549
      @jahnavichitta1549 3 ปีที่แล้ว

      @@marcodoe4690 Yes i have set. But i am still getting the same err.

  • @caffeinejavacode1475
    @caffeinejavacode1475 2 หลายเดือนก่อน

    BTW Spring 3 has some changes in SSM

  • @haifengwu5833
    @haifengwu5833 4 ปีที่แล้ว

    Thank Guru for the nice video.

  • @sharidass1408
    @sharidass1408 5 ปีที่แล้ว

    Dear John,
    When I import the project from Github and I am getting the following compilation error
    Cannot access org.springframework.core.env.EnvironmentCapable
    On the following line.
    SpringApplication.run(MovieCatalogServiceApplication.class, args);
    github.com/springframeworkguru/mssc-ssm.git
    Note: I tried on different machines and also noticed that happens when I import other spring-boot projects out there.

  • @openretailsstore3808
    @openretailsstore3808 4 ปีที่แล้ว

    The explanation is nice, Can you please share the git repo ?

  • @janhornbllhansen4903
    @janhornbllhansen4903 2 ปีที่แล้ว

    Naming of events seem a little loose. Shouldn't they all be noun-verb(in past tense)?

  • @pilotivanovich
    @pilotivanovich 4 ปีที่แล้ว

    thanks, so help me and my command!

  • @atilagunes78
    @atilagunes78 ปีที่แล้ว

    is there any problem if i use spring statemachine 2.5.1 with spring boot 2.7.x?

  • @mike_mi_mike
    @mike_mi_mike 4 ปีที่แล้ว

    cool video, but can you upload this project on GitHub?

  • @sindisovevo
    @sindisovevo 4 ปีที่แล้ว

    great!!