state-machine Questions

1

After having read the excellent book "Practical UML Statecharts in C/C++" by Miro Samek, I am eager to try them out sometime. More recently, I have started to teach myself Haskell a...
Christos asked 4/4, 2021 at 15:22

3

Solved

Could all Code ever written be improved by applying the State Machine Pattern? I was working on a project that was a mass of horrendous awful, buggy, broken spaghetti code. I copied Martin Fowler'...
Mungo asked 16/2, 2011 at 15:33

2

Solved

I have defined the creation of a StepFunction state machine in Terraform, now I want to set a timer to trigger the state machine everyday, I think probably using cloudwatch event rules is a good ch...

1

Solved

I have a lambda and it's one of the steps of a StepFunction statemachine, the lambda handler looks like this below : def lambda_handler(event, context): year = event['year'] #payload month = eve...

1

I've been studying Spring State Machine and State design pattern since I have to develop a microservice with Spring Boot and persisted objects with a lot of confused states that need to be cleared ...

4

Solved

I want to learn what is the difference between "State machine" and "workflow", and how is it any different from "State machine workflow"?

5

Solved

I'm not sure I understand if there is a difference between a finite state machine and a state machine? Am I thinking about this too hard?
Lamellar asked 6/2, 2011 at 2:39

1

Solved

I need send event to another spawned state machine that its ID I have as a string in a variable in the context. (it is not parent state machine and not child) Like context.sendTo = 'B_id' how t...
Unrepair asked 1/4, 2020 at 19:53

0

I have extensively read the docs, however, there are still some parts that are not entirely clear, and most have to do with actors/services I am a little fuzzy on the details of spawned actors' li...
Constructive asked 3/4, 2020 at 14:19

26

Solved

I am crafting a small project in mixed C and C++. I am building one small-ish state-machine at the heart of one of my worker thread. I was wondering if you gurus on SO would share your state...
Cellular asked 30/10, 2009 at 2:8

3

Solved

Consider the following FSTs : T1 0 1 a : b 0 2 b : b 2 3 b : b 0 0 a : a 1 3 b : a T2 0 1 b : a 1 2 b : a 1 1 a : d 1 2 a : c How do I perform the composition operation on these two FSTs (i....
Spoonfeed asked 15/4, 2010 at 22:40

10

Solved

Does anybody know of any javascript implementations of a state machine? My goal is to setup a state machine implementation that would bind events to state transitions. So, if a user clicks on a but...
Intermixture asked 7/11, 2012 at 2:33

1

I am trying to leverage Akka's finite state machine framework for my use case. I am working on a system that processes a request that goes through various states. The request here is the applicati...
Pullover asked 4/6, 2018 at 13:14

3

Solved

Is there any way to make Hubot understand the context of conversation between messages? Such that he could ask me clarifying questions? For example: me: hey, create a branch plz Hubot: How should...
Eada asked 12/2, 2014 at 7:15

1

Solved

I am trying to understand how the iterators work internally, to mitigate some concerns I have about thread-safety. Lets consider for example the following simple iterator: using System.Collections...
Parlance asked 5/10, 2019 at 9:14

8

Solved

I doubt that is there any state machine framework like https://github.com/pluginaweek/state_machine for PHP. I've had to define many if-else logical clauses, and I would like something to help mak...
Gertrudis asked 25/11, 2010 at 5:32

4

Solved

Considering this situation: ...when an order is placed there is a check for availability, if is passed the preparation will start else the order is refused. If the customer decides to pay with a ...
Disposed asked 21/6, 2014 at 16:32

2

Solved

According to the documentation a ValueTask<TResult>... Provides a value type that wraps a Task<TResult> and a TResult, only one of which is used. My question is about the state ma...
Squalor asked 10/8, 2019 at 6:56

6

Solved

Is a finite state machine just an implementation of a Markov chain? What are the differences between the two?
Conlin asked 2/2, 2011 at 21:52

12

Solved

Related to this Stack Overflow question (C state-machine design), could you Stack Overflow folks share your Python state-machine design techniques with me (and the community)? At the mom...
Proserpina asked 20/1, 2010 at 14:22

2

Solved

I am building a state-machine where state transitions are described as a variant, i.e.: using table = std::variant< /* state event followup-state */ transition<start, success<sock>, c...

2

I've an ActiveRecord model. I'd like to set an initial state depending on its attributes at the initialization. Here is my condition: self.expected_delivery_date.blank? ? :in_preparation : :waitin...
Deery asked 28/10, 2017 at 9:52

6

Solved

What is the difference between Mealy & Moore type of finite state machines?
Vile asked 24/10, 2010 at 16:58

1

Solved

I implemented a custom async method builder but I have several questions for which i cannot find a proper answer. 1) I saw that depending on how i build (Debug / Release), the state machine gets c...
Ganley asked 18/12, 2018 at 15:35

5

I am new to the State design pattern and I can't find a proper example of saving different states of an object to the database (SQL Server in my case). The scenario is quite similar [almost identic...
Ashtonashtonunderlyne asked 21/5, 2014 at 10:23

© 2022 - 2025 — McMap. All rights reserved.