RedhopIT
RedhopIT

Reputation: 619

When to use Spring Web Flow?

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

Answers (2)

Pravin
Pravin

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

Japan Trivedi
Japan Trivedi

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.

  1. Personal Details.
  2. Educational Details.
  3. Company Details.
  4. Contact Details.

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

Related Questions