|
From: Erwin V. <erw...@er...> - 2005-03-28 14:31:10
|
Hey Steven, I would probably do this by making the search (or filter) algorithm configurable for the Person flow. That way the calling parent flow can pass in the algorithm to use. I find that a good way to think about a flow is as a method: it has input parameters and can return results. So your person flow would be something like this, when expressed as a method: public Person PersonFlow(String action, SearchAlgorithm algorithm) Erwin Vervaet erw...@er... ----- Original Message ----- From: "Steven Devijver" <ste...@gm...> To: <spr...@li...> Sent: Monday, March 28, 2005 2:31 PM Subject: [Springframework-developer] webflow: subflow behavior question > Hi, > > Consider three classes in a domain: Person, Manager and Meeting. > Person has a relationship with Manager (subordinates) and Meeting > (attendees, excused, ...). > > Say I create a flow to browse, search, add, edit Persons. Consider now > I want to reuse the Person flow as a sub flow in both the Manager and > Meeting flows to select Persons from those two flows. > > When jumping from the Manager flow to the Person flow I do not want to > show Persons that are already linked to the given Manager. When > jumping from the Meeting flow to the Person flow I do not want to show > Persons that are already in the attendee or excused list for that > Meeting. > > This would mean the Person flow would have to behave differently based > on a configuration that is external to the Person flow. How can this > be accomplished using WebFlow? > > Steven > > -- > "If you want to be a different fish, you gotta jump out of the school." > -- Captain Beefheart > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > |