by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Nicholas Blumhardt
    @nblumhardt
    @mgnslndh nothing comes to mind; I expect it'd be possible, but might be ugly :-)
    Magnus Lindhe
    @mgnslndh
    @nblumhardt I assume you mean that multiple state machines would be ugly? You would prefer substates?
    Magnus Lindhe
    @mgnslndh
    And I see you have answered here dotnet-state-machine/stateless#15
    Cody Mullins
    @codymullins
    are there any plans for Async guards or Async PermitDynamicIf?
    Nicholas Blumhardt
    @nblumhardt
    @codymullins nothing active, but if there's any feature gap remaining between the sync and async APIs I think we'd be keen to close them up. PRs welcome, if anyone is actively investigating :+1:
    Cody Mullins
    @codymullins
    where's a good place to look to get started? I cloned the code but just browsed through for a few min so far
    Edgars Pivovarenoks
    @edgars-pivovarenoks
    Regarding async guards : I will have a look as well.
    Cody Mullins
    @codymullins
    @edgars-pivovarenoks I don't want to step on anyways toes, let me know if you make any progress on it
    i might try and look more this weekend
    if you don't get to it
    Cody Mullins
    @codymullins
    @nblumhardt what's the reason for everything being in a big partial class?
    just so I understand, never really followed the pattern of using partial classes
    Nicholas Blumhardt
    @nblumhardt
    @codymullins originally, to avoid having to re-specify TState and TTrigger as generic type parameters everywhere
    would probably reconsider, given another shot at it
    Cody Mullins
    @codymullins
    that makes sense
    Dieter Lunn
    @coder2000
    I was wondering if it is possible to setup stateless to use an abstract class as the type and subclasses as the different states.
    Nicholas Blumhardt
    @nblumhardt
    @coder2000 yes, should work find so long as the type hierarchy implements Equals()
    Dieter Lunn
    @coder2000
    Ok and if I needed to execute code on transition is there a specific function I should implement or specify a static method when creating the trigger?
    Cody Mullins
    @codymullins
    What exactly is the use of the internal transition?
    I thought it was to define automatic transitions but the doc says it doesn't change the state
    was hoping to define something like .. user submits --> state transitions to 'submitted' --> automatically transition to "in review"
    Nicholas Blumhardt
    @nblumhardt
    Hi @codymullins - the terminology is a bit strange (inherited from UML IIRC); in Stateless, internal transitions are just actions that occur upon a trigger without causing a state change
    Cody Mullins
    @codymullins
    I see
    Is there any way to support automatic transitions? Currently, I have an if statement something like...
    image.png
    it's fine it not, just wondering if this somehow could be supported through the state machine
    feels like something relevant
    Nicholas Blumhardt
    @nblumhardt
    I think this can be emulated using OnEntry((...) => sm.Fire(...)) - may depend on the intricacies of the scenario, though
    Cody Mullins
    @codymullins
    yeah, the more i'm thinking about it it might just make more sense to just skip that "state" in scenarios it's not needed
    arun-siva
    @arun-siva
    is there a potential release date for Stateless 4.0?
    Nicholas Blumhardt
    @nblumhardt
    @arun-siva nothing on paper; are you running the -dev package currently?
    Gregorius Soedharmo
    @Arkatufus
    Got a question about reentry, does that mean that a state can transition to itself via trigger?
    Gregorius Soedharmo
    @Arkatufus
    trying to make an async counter inside the state, wondering if i can implement it using reentry
    oh wait, I just saw how it works in the sample folder, nvm
    Nicholas Blumhardt
    @nblumhardt
    dotnet-state-machine/stateless#199
    p-groarke
    @p-groarke
    Can a parent state fire a child permitted trigger?
    smartcaveman
    @smartcaveman
    @p-groarke All child states can do what parents do. Some parent states can do what children do, specifically when the parent is actually the child in question, but otherwise, no.
    Joao Grassi
    @joaopgrassi
    Hey everyone.. have some question on how to solve some state requirements.. wonder if anyone can help
    We have bunch of states.. and they can be changed to one another without any problems. There's only one state that has some limitations. This one I wanted to control

    So.. for instance:
    States -> Open, Closed, Approved, Returned.

    I can go to any state basically.. but once I go to Approved, I can only go to Returned.

    I didn't want to have triggers and public methods for every single state.. like Opened(_machine.fire(Triggers.Opened)) and so on. I wanted something like
    StateTransitioning(State state)
    {
    _machine.fire(Triggers.Transitioning, state);
    }
    Gregorius Soedharmo
    @Arkatufus
    is there a way for a state to permit any trigger?
    Chanan Braunstein
    @chanan
    Any chance that someone created an OSS HtmlTokenizer based on Stateless?
    Alksar
    @Alksar
    Hi all! Are the any opportunities to use kafka transport for delivery messages to state machine instance? I want to use "statless" as core for saga declaration, and having transport integration would be nice feature.
    Alksar
    @Alksar
    Common friends. Any info
    Marcin Aumiler
    @smoqmilus
    hi @nblumhardt, I wonder is this room still active? Got a philosophical question around performance when creating State Machine per message when using Stateless library with e.g. GCP Pub/Sub. Do you plan to add way to dehydrate state per context to use SM in streaming scenarios?
    Timothy
    @timothyparez
    What's the cleanest way to pass data between states? More specifically I go to a state which only purpose is to generate/collect a single value and return it to the previous state.
    I looked at the TriggerWithParameters class but it feels kinda weird to use and maybe that's not what they are intended for. (Imagine for example asking the user to input some text, a state that could be triggered from various other states)
    Timothy
    @timothyparez
    Ok turns out I can do something like workflow.FireAsync(workflow.OpenFileTrigger, (s) => SelectedFile = s);
    Muhammad Kamran Asim
    @mKamiAsim
    Hi. I have implemented the state machine. I am not sure the state machine can return some result in final state or not. I have a final state, that can be invoked by success/failed triggers. Now I want to get the result from this state. Is there any way to return the result from the final state, after firing the statemachine.