Spring web flow end state, want to go and edit a previous error?

We have a web flow, and only at the very end can we sometimes tell that there was an error processing a transaction. We want to add functionality to the end of the flow, currently a natural end-state, that lets the user click an edit button to go back to, say, step 2 of the flow to re-enter some details.

Can this be done? The only way I see is to make my current-end state just a regular view-state with a transition to state 2 on the click of a button, but the end-state makes a lot of sense since we want to clear the details of the transaction.

Can anyone help me line up the thinking here?


Adding a decision state just before the end state would work OK. A test can be made to see if the transaction went OK, and depending on that either go to the end state or back to a previous view:

<decision-state id="checkIfTransactionOK">
    <if test="service.isTransactionFailed()" then="previousViewState" else="endState" />
</decision-state>
链接地址: http://www.djcxy.com/p/39172.html

上一篇: 在Spring Web Flow中动态创建流程

下一篇: 春季Web流程结束状态,想要去编辑以前的错误?