开发者

Grails web flow previous state url

开发者 https://www.devze.com 2022-12-16 04:17 出处:网络
is there a simple way to get previous state\'s URL (or flowExecutionKey is sufficient) in Grails web flow? I can get current flowExecutionKey from request[\'flowExecutionKey\'].

is there a simple way to get previous state's URL (or flowExecutionKey is sufficient) in Grails web flow? I can get current flowExecutionKey from request['flowExecutionKey'].

Or alternatively is there a way to say that you want to go to the previous state in flow (to unwind your path in graph).

And I don't want to use the standard mechanism:

state1 {
   on("back").to "state1"
}

Because this way I'll get to the further state instead (the execution key would increment). Grails version 开发者_JAVA百科1.1.2


I solved it with history.back(1) in view, although I was avoiding this solution at first.

But I still wonder whether there is a direct way how to force flow to go one step back and discard current state.

0

精彩评论

暂无评论...
验证码 换一张
取 消