Reputation: 619
I'm interested by this framework (spring web flow) and I want to know when it's best to use spring flow and if it can help , when it comes really handy ?
and also , is there any other solutions ?
Regards
Upvotes: 2
Views: 830
Reputation: 103
Spring Web Flow is allowing you to represent the UI flow in a web application
in a clear and simple way. This has several advantages:
The UI flow in a web application is clearly visible by looking at the
corresponding web flow definition (typically in an XML file).
Web Flows can be designed to be self contained.
This allows you to see a part of your application as a module
and reuse it in multiple situations.
<transition on="enrollCustomer" validate="false" to="redirectToEnrollCustomer" />
<action-state id="redirectToEnrollCustomer">
<evaluate expression="customerAction.redirectPersonalDetails(flowRequestContext)"/>
<transition on="success" to="toPersonalDetails"/>
<transition on="educationSuccess" to="toEducaationDetails"/>
<transition on="confirmationSuccess" to="toConfirmationDetails"/>
<transition on="failure" to="enrollCustomer"/>
</action-state>
Upvotes: 0
Reputation: 4483
When your application follows some specific kind of flow to achieve something then you should go for Spring webflow. Otherwise it is not needed in simple applications.
For example if you need to do the user registration process in multiple steps like below.
and if you need to get each step data in another step then use of Spring webflow is acceptable.
Hope this helps you. Cheers.
Upvotes: 2