我对这个框架感兴趣(弹簧网络流程),我想知道什么时候最好使用弹簧流,如果它可以帮助,什么时候真的很方便?
还有,还有其他解决方案吗?
此致
答案 0 :(得分:2)
当你的应用程序遵循某种特定的流程来实现某些目标时,你应该选择Spring webflow。否则,在简单的应用程序中不需要它。
例如,如果您需要通过以下多个步骤执行用户注册过程。
如果您需要在另一个步骤中获取每个步骤数据,则可以使用Spring Webflow。
希望这会对你有所帮助。 欢呼声。
答案 1 :(得分:0)
Spring Web Flow is allowing you to represent the UI flow in a web application
in a clear and simple way. This has several advantages:
The UI flow in a web application is clearly visible by looking at the
corresponding web flow definition (typically in an XML file).
Web Flows can be designed to be self contained.
This allows you to see a part of your application as a module
and reuse it in multiple situations.
<transition on="enrollCustomer" validate="false" to="redirectToEnrollCustomer" />
<action-state id="redirectToEnrollCustomer">
<evaluate expression="customerAction.redirectPersonalDetails(flowRequestContext)"/>
<transition on="success" to="toPersonalDetails"/>
<transition on="educationSuccess" to="toEducaationDetails"/>
<transition on="confirmationSuccess" to="toConfirmationDetails"/>
<transition on="failure" to="enrollCustomer"/>
</action-state>