Results 1 to 4 of 4

Thread: Descision Flow

  1. #1

    Default Descision Flow

    1. I have an application that uses a webflow with 5 views.

    One of the requirements for the flow is that if user selects an option on view 4, he is to be returned to view 2. However, after the users selects continue, on view 2, instead of going to view 3, he has to be redirected to view 4.

    How can I use descision flow to implement this? Is there a better way of implementing this?


    2. How do you display error messages in a webflow? I want the user to be redirected to the same page with the error message displayed.

  2. #2
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,791

    Default

    However, after the users selects continue, on view 2, instead of going to view 3, he has to be redirected to view 4.
    can you show your code in the way how you are solving this?

    How can I use descision flow to implement this? Is there a better way of implementing this?
    SWF code examples and even documentation show how to work with
    descision flow

    other way is create a controller and do the same control of the decision

    regards
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  3. #3
    Join Date
    Jul 2006
    Location
    London
    Posts
    500

    Default

    For decision logic your best option IHMO is to use Flow Listeners unless the logic is very very simple.

    Listeners are easier to test and offer you more control and if your requirements change you don't have to dive into XML.

    See class "FlowExecutionListenerAdapter"
    Regards,
    James

  4. #4

    Default

    Thanks. What about displaying errors on the jsp. The error I need to display is an application exception, AND NOT a validation exception

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •