Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Get internal state info? #67

@prlaba

Description

@prlaba

I'm new to the appccelerate state machine library and am impressed with its interface and features, especially in support of hierarchical state machines.

I have a couple of questions:

  1. How do I determine the currently active state, other than through OnEntry methods or handling the TransactionCompleted event? Is there a function available to return the current state?

  2. In the case of a hierarchical state machine, is there a way to get a list of the currently active states, or, alternatively, a way to determine if a specified state is active, e.g., a IsActive(state) boolean function?

In general, I'm looking for ways to programmatically determine the internal state of my state machine as I develop/test my code. This helps verify that my state machine's behavior matches its configuration.

Thanks,

Paul

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