Spring statemachine JPA 配置-我们可以在 Action table 中使用 SpEL 表达式调用非静态方法吗?

Spring statemachine JPA config- can we call non-static methods using SpEL expressions in Action table?

我想将状态机定义存储在数据库中,我正在使用 JPA Config 示例构建带有 H2 内存数据库的原型。

似乎一切正常。但是,我只能在 Action table 中使用 SpEL 表达式调用静态方法。如果我尝试调用任何其他方法,我会收到错误 "Method execStaticAction() cannot be found on type org.springframework.statemachine.support.DefaultStateContext"。我也尝试过单例和实例方法。但我不断收到同样的错误。这是允许的,还是我们只能在 Action 中使用 SpEL 表达式调用静态方法 table?

这是我正在使用的示例:

https://docs.spring.io/spring-statemachine/docs/2.0.2.RELEASE/reference/htmlsingle/#statemachine-examples-datajpa

JpaRepositoryAction.action 列是正在执行的 bean 方法的名称,returns 一个 Action 对象。