Using Spring web-flow 2.3.0, how can I call a PARTICULAR viewstate of flow A from flow B.
Can I use subflow?
From flow B , I want to go to viewstate=”def” of flow A
Flow B
<subflow-state id="actions1" subflow="A">
</subflow-state>
Flow A
<flow xmlns="http://www.springframework.org/schema/webflow"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/webflow
http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">
<view-state id="abc">
</view-state>
<view-state id="def">
</view-state>
can someone please tell me how to do this..dint find anything over google
Simply put, you can’t.
A flow is defined as
In this case,
defis a flow of its own. In addition, flows are only accessible from their first state.Consider, flow A:
And flow B:
Instead of having two
detailViews, you can easily create a detail flow that can be accessed as a subflow.