Skip to content

Retrieve state machine arguments when calling State() #101

@sergiogbr

Description

@sergiogbr

Feature Request: Return stored arguments from state accessor

Problem

When restarting a state machine that was stopped due to an external error,
I need to retrieve the previously stored arguments to re-activate the current state.
Currently, there's no way to access these arguments through the state accessor,
forcing manual retrieval from REDIS.

Current Behavior

The stateAccessor only returns the state, not the arguments that were passed
when entering that state.

Expected Behavior

The state accessor should also return the stored arguments so that:

  • State machines can be properly restored after failures
  • Arguments don't need to be manually retrieved from external storage

Use Case

Restarting a state machine from a persisted state in REDIS with all original context.

Reference

Link to relevant code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions