Announcement Announcement Module
Collapse
No announcement yet.
should i use conversation scope or send input variable to subflows Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • should i use conversation scope or send input variable to subflows

    Hi,

    I have a list populated from service bean which is static list means same list is used in all the subflows.
    Code:
    list=myService.retrieveList();
    At present, i created a variable 'list' in my main top flow and passing it as input params to all subflows.

    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?
Working...
X