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:
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.Code:@Override protected FlowDefinitionResource[] getModelResources( FlowDefinitionResourceFactory resourceFactory) { FlowDefinitionResource[] flowDefinitionResources = new FlowDefinitionResource[] { resourceFactory .createFileResource("WebContent/WEB-INF/flows/parent-flow.xml") }; return flowDefinitionResources; }
What is it that it is making flowIds different between test cases and normal runtime ?
My flow registry is defined like this:
</webflow:flow-registry>Code:<webflow:flow-registry id="flowRegistry" flow-builder-services="facesFlowBuilderServices" base-path="/WEB-INF/flows"> <webflow:flow-location-pattern value="/**/*-flow.xml" />


Reply With Quote
