Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

In Spring Webflow Is the execution URL request parameter necessary ?

 
Praveen Reddy
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my website I am ussing Spring Web Flow depend on an 'execution' request parameter in the URL? It's making our application rather brittle. SWF appends ?execution=(some flow execution key).

for example:
http://www.mywebsite.com/swf/booking.do?execution=e2s2
http://www.mywebsite.com/swf/reservation.do?execution=e3s2


I am having two issues

1) When user bookmark the above url and try to acesses later its going to 404 page because its not able to get execution key e2s2. Can someone guide me how to handle this for diffrent pages.

2) If user leaves the browser unused for 5 to 8 min its not able to get the flow execution key and goes to 404 page.
We're getting way too many exceptions along the lines of:
org.springframework.webflow.execution.repository.F lowExecutionRestorationFailureException: A problem occurred restoring the flow execution with key...


Can I either suppress the flow id completely or hide it via a hidden form field?


Can someone please suggest me something.

Thanks in advance,
Praveen
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is what Spring WebFlow is using to do the WebFlow. It is an integral part of WebFlow.

You can bookmark

http://www.mywebsite.com/swf/booking.do

Because the is the entire WebFlow URL. You can also set things like WebFlow's timeout such that it will hold the flow for longer time.

The whole purpose of WebFlow is when you have multiple request responses in a use case, and Spring WebFlow will manage it so that the back button and multiple tabs don't cause havok, among other things. The way that it can do that is by some special key that Spring holds onto to manage it all, that is the execution key.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic