Spring Webflow 2.0 - 与另一个流通信
我有一个取消按钮,可以让用户返回到起始页。取消按钮位于流程 createXYZ.xml 中,起始页是流程 start.xml 中的视图状态,如何从一个流程链接到另一个流程。
开始:
<view-state id="start" view="start">
</view-state>
取消按钮:
<view-state id="createXYZ" view="createXYZ">
<transition on="cancel" to=" ? ">
</transition>
</view-state>
I have a cancel button which should bring the user back to the start page. The Cancel button is in a flow createXYZ.xml the start page is a view-state in the flow start.xml how can I link from one flow to another.
Start:
<view-state id="start" view="start">
</view-state>
Cancel Button:
<view-state id="createXYZ" view="createXYZ">
<transition on="cancel" to=" ? ">
</transition>
</view-state>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您想要继续主流程,但想要一些附加功能时,子流程状态非常有用。您将调用子流程,执行一些工作,然后退出并返回到原始流程。
我不确定这是否是您想要做的。如果您只是想结束流程并开始一个新流程,您可以执行类似的操作,
这不仅会结束您刚刚处理的流程(这非常有用),还会启动新流程。在本例中,新流称为 myOtherFlow
A subflow state is useful when you have a situation where you want to continue your main flow, but want some added functionality. You would invoke the subflow, do some work, then exit out and return back to the original flow.
I am not sure if that is what you are trying to do. If you are simply trying to end the flow and start a new flow you can do soemthing like
This will not only end the flow you were just working on (which is very useful) but also start the new flow. In this case the new flow is called myOtherFlow