Spring WebFlow:如何处理流程结果?

| 我正在阅读Spring WebFlow文档,但是我不明白在流的最终状态下使用
outcome
值能做什么。你能给我看看一些实际的例子吗?我不知道如何将结果变量传递给MVC Controller或其他流程,但不知道如何。
<flow>
    <end-state id=\"test2\">
          <output name=\"id\" value=\"123\" />
    </end-state>
</flow>
    
已邀请:
您可以使用currentEvent.attributes(因此在您的示例中)从父流(如果您已调用子流)访问输出变量:
currentEvent.attributes.id
请参阅第3.10节“调用子流” 您也可以通过实现
handleExecutionOutcome
方法在ѭ3中以编程方式获取它们。在文档中的11.4实现自定义FlowHandlers的“ Example FlowHandler \”部分下有一个示例。     

要回复问题请先登录注册