|
From: Steven D. <ste...@gm...> - 2005-03-28 15:54:52
|
Hi Erwin, Although this is just a silly example to highlight my question passing behavior through the model does seem a bit awkward to me. Especially, the behavior class would also contain state (unless the state is passed separately in the model but then the Person flow would need to pass the state to the behavior). This would make the design not thread-safe. In this scenario I would prefer to pass a list of ID's of Persons that cannot be shown in the Person flow and implement the behavior once. I'm looking into this because I'm working on an article on webflow. btw, I found you article "Spring Web Flows: A Practical Guide" very helpful. Are you planning to keep it up to date with the latest changes to WebFlow (e.g. the changes to the action interface)? Thanks Steven On Mon, 28 Mar 2005 17:11:32 +0200, Erwin Vervaet <erw...@er...> wrote: > The Manager and Meeting flow indeed have to put a SearchAlgorithm instance > in flow scope, probably in an 'initFlow' action state or something like > that, which could also take care of any type of flow data initialisation, > e.g. pulling in reference data.. You then use an attribute mapper to pass > the SearchAlgorithm to the subflow in the subflow state. > > Erwin Vervaet > erw...@er... > ----- Original Message ----- > From: "Steven Devijver" <ste...@gm...> > To: <spr...@li...> > Sent: Monday, March 28, 2005 4:59 PM > Subject: Re: [Springframework-developer] webflow: subflow behavior question > > > Hi Erwin, > > > > > >> 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) > >> > > Does this mean the Manager and Meeting flows have to put a > > SearchAlgorithm instance in the session (or the model?) before passing > > control to the Person subflow? Does this require an action-state > > before the flow-state in the Manager and Meeting flows? > > > > Thanks > > > > Steven > > > > > > ------------------------------------------------------- > > 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 > > > > > > ------------------------------------------------------- > 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 > > -- "If you want to be a different fish, you gotta jump out of the school." -- Captain Beefheart |