|
From: Erwin V. <erw...@er...> - 2005-03-28 15:09:34
|
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 > > |