Use Spring Web Flow without state on the server

两盒软妹~` 提交于 2019-12-05 10:26:40

You might be interested in checking my bean flow FSM project (restflow): https://github.com/alfonso-presa/restflow

Although it doesn't use Spring WebFlow, I think it may help answering the spirit of the question, as it allows the implementation of a stateless server orchestrated flow. I started this project because I wanted to make almost the same as you with spring WebFlow but I found it was not possible as state is stored in session (and also REST/json serialization is not built in).

It's main purpose is making an state-machine (just like WebFlow does) but with it's state stored in a bean, which you can persist in a distributed store, or easily sign or encrypt and send back to the client as continuation for next requests.

I hope you find it useful.

edit: I created a showcase project here: https://github.com/alfonso-presa/restflow-spring-web-sample

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!