Results 1 to 5 of 5

Thread: new

  1. #1
    Join Date
    Jul 2005
    Posts
    12

    Default new

    I am new to spring web flow. The framework looks great! I would like to ask if the framework is able to support multiple users with different rights. In my case we have let say 5 different user types that would require different web flow for each one.
    For example the entire flow has 10 steps:
    user 1 - exposed to all steps
    user 2 - exposed to steps 1, 3, 7
    user 3 - exposed to steps 3, 4, 10
    ...
    - How would one handle the above case with spring web flow?
    - Is it possible to associate different verification bean for user 2 and user 3 on step 3?

    Thank you in advance.

  2. #2
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    You can have "decision-states" within a flow which could say "if userCanAccessActionA then go ActionA else go ActionB" etc.

    You would almost certainly want to model the individual actions as subflows anyway, and then have all your "main" webflow would be is a series of subflows and decision-states.

  3. #3
    Join Date
    Jul 2005
    Posts
    12

    Default

    Is it possible to have multiple webflow files for the different user types, versus having everything in one file? Having everything in one makes things hard to maintain.

  4. #4
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    You have (not sure it is mandatory actually) one "flow" per file. A flow can reference another flow as a subflow.

    I certainly wasn't suggesting a single large flow I was suggesting splitting each smaller step into it's own flow and then having a single flow to do the navigational decisions.

  5. #5
    Join Date
    Sep 2004
    Location
    Leuven, Belgium
    Posts
    1,853

    Default

    I probably would also go for a subflow per user type, and have a parent flow spawn the correct subflow using a decision state. Splitting things up makes the flows simpler and probably easier to maintain, even though you will end up with a bit of duplication (e.g. the common states).

    Erwin

Posting Permissions

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