PDA

View Full Version : Search/Details usecase with Details accessing Search Flow: possible with SWF?


Goonie
Apr 10th, 2006, 04:51 AM
Hello everyone,

Most of you know JIRA (the issue tracker of springframework.org). If you go to an issue from a search list (indirectly), you have that nice little "return to search/previous/next" navigation box at the upper left corner of the content area.

Does SWF support this usecase?

When I look at the examples, typical search/view search result/view details usecases are modeled with two flows: Search flow and its subflow Detail flow. Unfortunately, I miss an example for the navigation box.

If I were to extend the examples, I'd make sure that a the subflow can also be executed standalone (because I still want to be able to access detail pages directly, for example by a bookmark pointing to that issue). Next, I'd try to determine in an action of the details flow if the flow is standalone or a subflow (and if its a subflow of a my known search flow). If yes, I'd display that navigation box (or I'd somehow instruct the Search flow to display the box, I'm not sure here). Events generated by the box would cause the Details flow to end and return control to the Search flow (launching a new Details flow as appropriate).

I'm a bit suspicious if it's possible to assign the subflow the same URL as if I invoked the details flow directly. Of course, I do not want one single URL for each page, because every detail page should be bookmarkable. URLs should follow this pattern:

/search.html?... for the search flow
/details.html?id=123 for viewing a specific details page (issue), regardless if its a subflow of the search flow or if its a main flow.

Is this possible with SWF?

Regards,

Andreas

Goonie
Apr 21st, 2006, 10:02 AM
Doesn't anyone know an answer to this?