JKISoftware / JKI-State-Machine

JKI State Machine
Other
42 stars 21 forks source link

Feature Idea: Error Handler frame receives previous (error producing) state as Argument #11

Closed jimkring closed 1 week ago

jimkring commented 5 years ago

One thing that people have asked for is to know which frame caused an error. Currently, the JKI State Machine will detect that an error has occurred and then will execute the Error Handler frame instead processing the remaining state queue:

Step 1 - Error Occurs image

Step 2 - JKI SM forces the Error Handler frame to execute image

Possibilities - Custom Error Handling for Different States image

Open Questions and Considerations

francois-normandin commented 5 years ago

I personally like this idea very much. My preference would be to pass the previous state with arguments, so that one could reuse the same method to parse in the error handler case.

image

Tom-McQuillan commented 2 months ago

I've been after this for sometime. After seeing #14 I was hoping this was already a feature I had somehow missed. However this feature does not appear in the current build :(

My ideal solution: image

image

oipatet commented 1 month ago

Hy, this is our idea that is used in our company. Maybe it's a little inspiration.

image

image

image