Skip to content

SMF state change on entry behavior #93877

@arthurbabu

Description

@arthurbabu

Summary

Hi,

I played with State Machine Framework and behavior when a transition is done into entry function isn't clear into documentation.

I expect this when a transition is done into STATE_A entry to STATE_B

  • state_A_entry
  • state_A_exit
  • state_B_entry
  • state_B_run
  • state_B_run ...

But actual behavior is:

  • state_A_entry
  • state_A_run
  • state_A_exit
  • state_B_entry
  • state_B_run
  • state_B_run ...

Is expected to run state_A_run once when transition is done into state_A_entry ?

Describe the solution you'd like

Two possible solutions:

  • if it's expected behavior documentation can be enhanced
  • if it's not expected behavior code can be changed

Alternatives

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementChanges/Updates/Additions to existing features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions