Announcement Announcement Module
No announcement yet.
Multiple flow registries, How could I implement it? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multiple flow registries, How could I implement it?

    I would like to support the following use case;

    I have the 3 flow registries, detailed below. Basically this is a tree structure but only one node deep thus 1 parent and many children.

    When a request comes into SWF with a URL of "/register/car" the SWF system would first look at some context object which would allow it to decide which country flow registry to query for the flow "/register/car" if it is not found in the country specific flow registry it would then look in the parent "defaultFlowRegistry"

    My question is what is the best way of implementing this which SWF classes would I have to implement and how would I plug them into the SWF config?

    <webflow:flow-registry id="defaultFlowRegistry"
    		flow-builder-services="flowBuilderServices" base-path="classpath*:/META-INF/config-webflow">
    		<webflow:flow-location-pattern value="/**/*-flow.xml" />
    <webflow:flow-registry id="countryXFlow" parent="defaultFlowRegistry"
    		flow-builder-services="flowBuilderServices" base-path="classpath*:/META-INF/config-webflow/countryX">
    		<webflow:flow-location-pattern value="/**/*-flow.xml" />
    <webflow:flow-registry id="countryYFlow" parent="defaultFlowRegistry"
    		flow-builder-services="flowBuilderServices" base-path="classpath*:/META-INF/config-webflow/countryY">
    		<webflow:flow-location-pattern value="/**/*-flow.xml" />
    Thanks for any help