Skip to content

Issue and questions about subStateMachine #880

Description

@xiaozhikang0916

I have an issue and some questions about the subStateMachine.

  1. In the onXXXStartStateMachine apis, they are requiring a StateMachine instance, or a lambda returing such instance in the param. And it is impossible in the new FlowRedux2 api now, because we can only access to a StateMachineFactory instance.

The following are some questions about the design of subStateMachine.

  1. Is it possible to have a stop sign, either from the host state or the sub state, for the sub state machine, to stop and release the running sub state machine and release resources when met. Currently, it is hard to figure out if a sub state machine started by a one-shot action is correctly stopped.
  2. I wonder if the state mapper of sub state machine can be suspend, or even map the sub state to an action for the host state machine. Or is this thought a violation of some principle?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions