Hi,
I have a list populated from service bean which is static list means same list is used in all the subflows.
At present, i created a variable 'list' in my main top flow and passing it as input params to all subflows.Code:list=myService.retrieveList();
Code:<on-start> <evaluate expression="mySerivce.retrieveList()" result="list"/></on-start> <subflow-state id="mysubflow" subflow="mysubflow" > <input name="mylist" value="list"></input> </subflow> in the beginning of sublfow definition file - <input name="mylist"/> ..... <flow ..> </flow>
if i put "list" in conversationScope in main flow instead, it will be directly accessible. It will reduce code-lines
but is it better way then sending input parameters from main flow to subflows?


Reply With Quote