PDA

View Full Version : Subflow in a popup window


djiao
Apr 5th, 2006, 04:56 PM
Hi, I need to spawn a subflow in a popup window, and the popup window is used only to preview contents. For example, imagine when you edit your resume in MOnster.com and have a preview popup window of your resume.

I am thinking of return to the main flow as soon as the popup is opened. However, I am not sure how to spawn subflow using popups. Could somebody help me out?

THanks!

_dodger_
Apr 6th, 2006, 07:47 AM
Hi,

Hi, I need to spawn a subflow in a popup window, and the popup window is used only to preview contents.

I am facing exactly the same problem. But I don't think a subflow will work as the "parent" flow is paused upon start of the subflow and for it to be resumed the subflow would have to end. But I don't really want to enforce a "modal" Popup which has to be closed via a form submission for the main flow to resume.

Something like a "non-modal-subflow" would be nice. It can be started and you can map attributes to it but there is no need to wait for it to reach an end-state. I know that this is not as easy as it sounds because what should happen if the subflow eventually does end and returns some attributes but the parent flow has advanced or even ended...

I tried to open a popup window using the flowExecutionKey as a parameter and look up the correct FlowExecution and then retrieve objects out of it but:
It is ugly. And I don't know how to do it :) My knowledge about WebFlow is limited and I wasn't able to find out how to gain access to the FlowScope from the "outside" using the key.

I could use a normal Spring MVC Controller to implement the Preview function but I don't know how to pass the required objects.

I know that this is not an answer to your question, sorry. But perhaps we can figure out a way to solve our problem.

Keith Donald
Apr 6th, 2006, 10:11 AM
This JIRA might be of interest to you guys:
http://opensource.atlassian.com/projects/spring/browse/SWF-109

_dodger_
Apr 9th, 2006, 10:14 AM
Thanks a lot! It is indeed of interest. I'll be monitoring it and if I ever find the time I'll try to help where I can.