没有“Web”的 Spring Web Flow
在没有任何 Web 相关基础设施的情况下使用 Spring Web Flow 的工作流引擎是否可行?具体来说,我想从我的代码中使用 Spring Web Flow,而无需接触任何 Servlet API,包括 HttpServletRequest 和 HttpServletResponse。
理想的用例是调用 FlowController.handleRequest(HttpServletRequest, HttpServletResponse) 的模拟,而不必担心 Servlet API。
Is it feasible to use the workflow engine from Spring Web Flow without any of the Web-related infrastructure? Specifically, I want to consume Spring Web Flow from my code without having to touch any of the Servlet API, including HttpServletRequest and HttpServletResponse.
The ideal use case would be to call an analog to FlowController.handleRequest(HttpServletRequest, HttpServletResponse)
without having to worry about the Servlet API.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如 @Bozho 所说,没有 Web 就拥有 WebFlow 是没有意义的 - 它是一个 Web 框架。
如果您想要的是声明式工作流框架,请查看 OSWorkflow。它现在有点旧了,但以我有限的经验来看,它运作良好。
As @Bozho says, it makes no sense to have WebFlow without the Web - it's a web framework.
If what you want is a declarative workflow framework, then take a look at OSWorkflow. It's getting a bit old now, but it works well, in my limited experience.
Spring Web 流与非 Web 上下文无关。这是因为网络由于其无状态性而使得“流”变得复杂。因此 Spring Web Flow 似乎解决了这个问题。
Spring web flow is not relevant in non-web context. This is because the web makes making a "flow" complicated due to its statelessness. Hence Spring web flow appears to solve that problem.