我正在使用流框架编写 AWS SWF 应用程序。IllegalStateException: No context Found. It means that the method is called outside of the workflow definition code.
调用以下代码一段时间:
private DecisionContextProvider contextProvider
= new DecisionContextProviderImpl();
private WorkflowClock clock
= contextProvider.getDecisionContext().getWorkflowClock();
为什么我会收到此错误以及如何摆脱它?