在 Spring web-flow 中存储流的状态 [英] Storing the state of the flow in Spring web-flow

查看:31
本文介绍了在 Spring web-flow 中存储流的状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对网络应用程序有此要求,其中用户通过输入他的一组个人信息来提交某些福利的申请.每个用户应用程序都有一个AppId".因此,假设 AppId 为 123 的用户在流中并​​以特定状态退出.下次当他使用 AppId 123 登录时,他应该可以从他离开的地方继续.我们如何使用 Spring web-flow 2.3 实现?SWF 2.3 是否有某种自己的数据库,比如 jBPM 有?

I have this requirement for web-application wherein a user submits application for certain benefits by entering a set of his personal information. Every user application has an 'AppId'. So lets say a user with AppId 123 is within a flow and exits at a particular state. Next time when he logs in with AppId 123, he should be able to continue from where he left. How can we implement using Spring web-flow 2.3? Does SWF 2.3 has some sort of its own database like lets say a jBPM has?

推荐答案

Spring Webflow is'不打算成为工作流管理或 BPM 系统.它旨在使使用和创建类似表单的复杂向导变得更容易.与其试图将 SWF 硬塞进您的要求中,我建议您为此目的使用合适的 BPM 引擎,例如 Activiti.

Spring Webflow isn't intended to be a workflow management or BPM system. It was designed to make it easier to work with and create complex wizard like forms. Instead of trying to shoehorn SWF into your requirements I would suggest using a proper BPM engine like Activiti for that purpose.

但是,如果您真的想尝试将 SWF 硬塞进您的需求中,我建议您开始研究 SWF 的 API.这在某些时候会引导您使用 ConversationManager(默认情况下为 SessionBindingConversationManager),您可以将其替换为您自己的自定义实现.

However if you really want to try and shoehorn SWF into your needs I would suggest starting to study the API of SWF. Which at some point will lead you to the ConversationManager (by default a SessionBindingConversationManager) which you could replace with your own custom implementation.

这篇关于在 Spring web-flow 中存储流的状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆