Skip to content

Is there way to throw an Exception that occurred inside the Statemachine to the outside? #1055

Closed
@KimDoubleB

Description

@KimDoubleB

Hi. I recently got to know spring-statemachine, and I'm learning to use it for a company project.

But there's a problem. There are cases where the logic of guard and action that I wrote generates an exception, and I want to process this exception outside of the state machine. But spring-statemachine handles all these exceptions internally.

  • In the case of guard, the guard just returns false when an exception occurs.
  • In the case of action, no transition occurs when an exception occurs.

Is there an option to throw an internal exception to the outside?

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/need-triageTeam needs to triage and take a first look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions