Announcement Announcement Module
Collapse
No announcement yet.
Why is my parent flowId suffixed with "-flow" in a test case but not for real Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Why is my parent flowId suffixed with "-flow" in a test case but not for real

    All of my flows are suffixed with -flow.xml

    e.g. my-flow.xml

    my-flow.xml has a parent flow, held in file parent-flow.xml

    Within my-flow.xml, the reference to the parent is this:

    parent="parent" rather than "parent-flow"

    This works fine at run time but if I am using this code in a test case:

    Code:
    @Override
    	protected FlowDefinitionResource[] getModelResources(
    			FlowDefinitionResourceFactory resourceFactory) {
    		FlowDefinitionResource[] flowDefinitionResources = new FlowDefinitionResource[] { resourceFactory
    						.createFileResource("WebContent/WEB-INF/flows/parent-flow.xml") };
    		return flowDefinitionResources;
    	}
    the flowId assigned to the parent is "parent-flow" not parent so my test fails as it is unable to find "parent" in its list of parent-flows.

    What is it that it is making flowIds different between test cases and normal runtime ?

    My flow registry is defined like this:

    Code:
    <webflow:flow-registry id="flowRegistry" flow-builder-services="facesFlowBuilderServices" base-path="/WEB-INF/flows">
    		<webflow:flow-location-pattern value="/**/*-flow.xml" />
    </webflow:flow-registry>
Working...
X