Skip to main content

Where should a sub flow return to?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
oliverschell
Offline
Joined: 2013-11-15

Hello everybody,

I'm evaluating Faces Flows on Mojarra 2.2.3 and have some trouble with returning from a called flow. Everything works fine, but jumping to the return node in the called flow does always return to the start node of the flow who called it, not to the last visited node on the caller flow. I can't imagine that this is intended...

Configuration file of the caller flow:

	<flow-definition id="customerflow">
<start-node>step1</start-node>
<view id="step1">
<vdl-document>/myflows/customer/customer-step1.xhtml</vdl-document>
</view>
<view id="step2">
<vdl-document>/myflows/customer/customer-step2.xhtml</vdl-document>
</view>
<view id="step3">
<vdl-document>/myflows/customer/customer-step3.xhtml</vdl-document>
</view>
<flow-return id="return">
<from-outcome>/myflows/customer/customer-return.xhtml</from-outcome>
</flow-return>
<flow-call id="orderflow">
<flow-reference>
<flow-id>order</flow-id>
</flow-reference>
</flow-call>
       </flow-definition>

The caller Page:

      	<h:form>
<h:commandButton value="Jump To Order Flow" action="orderflow"/>
<br/>
<h:commandButton value="Finish Customer Flow" action="return" />
</h:form>

The called flow has a default flow 0-byte configuration file.
It returns like this, nothing fancy:

 	<h:form>
<h:outputText value="Order Step 3" />
<br/>
<h:commandButton value="Finish Order" action="order-return" />
</h:form>

The result is that the start node "step1" of my customer flow becomes visible. Shouldn't it be rather the caller view "step3"?

Thanks for help,

Oliver