Results 1 to 3 of 3

Thread: subflow question

  1. #1
    Join Date
    Oct 2004
    Location
    Germany
    Posts
    143

    Default subflow question

    Hi,

    is it right that the subflow feature is only a feature to go into a other process without losing the flow data?

    because when calling subflows directly which are depending on data input from the main flow, the user will get a error. so for this i can't use subflows.

    is it right, so when i will use subflows because some flows repeates, i have to create a transition on this first which catch the error and finish the flow.

    or are there any other solutions?

    thanks mfg Gideon

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    A subflow may be passed input data from its parent flow when it is spawned.

    Also, a subflow may pass back output data to its parent flow when it ends.

    The FlowAttributeMapper strategy does this, and is used by the SubFlowState that manages spawning a subflow and resuming the parent flow when the subflow ends.

    So with that said, a Flow has a contract. It is like a black box--a component. It should be self-contained, but may require input data to work and may produce output data other flows can take and do stuff with. If a Flow that requires some input doesn't get it, it needs to take an appropriate action: either throw a exception if it's a programmer error, or immediately end the flow with a error result if it's recoverable.
    Keith Donald
    Core Spring Development Team

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

    Default

    If you grab the latest & greatest from CVS you will see that there is a new sample application 'FlowLauncher' that demonstrates launching flows with input parameters:

    * as stand-alone top-level flows
    * as sub-flows
    * from the end state of an ending flow

    Erwin

Similar Threads

  1. Forgot password (e.g. secret question) using Acegi
    By lowerymb77 in forum Security
    Replies: 1
    Last Post: Oct 16th, 2005, 10:46 PM
  2. Attribute Mapper to subflow with button
    By beaver in forum Web Flow
    Replies: 0
    Last Post: Oct 4th, 2005, 03:21 AM
  3. Replies: 5
    Last Post: Jul 27th, 2005, 10:54 AM
  4. Quick question about subflows
    By Colin Yates in forum Web Flow
    Replies: 2
    Last Post: Jul 1st, 2005, 03:24 AM
  5. Replies: 5
    Last Post: Apr 19th, 2005, 04:21 AM

Posting Permissions

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