Results 1 to 3 of 3

Thread: Starting a flow with parameter

  1. #1
    Join Date
    Sep 2005
    Posts
    15

    Default Starting a flow with parameter

    Hi,

    Is there a way to start a new flow with a url like this :

    <a href="flowController.html?_flowId=myflow&myparamet er=value/>


    When doing this, the value set to the flowid is "myflow&myparameter=value"
    instead of "myflow".
    Wenceslas

  2. #2

    Default Starting flow woth parameters

    I am not sure but here is what I think:
    Code:
    <flow>
      <input-mapper>
        <mapping source="myparameter" target="flowScope.myparameter"/>
      </input-mapper>
    ...
    
    </flow>
    This works with parameter passing from a flow to a subflow but I think it also works with URL parameters.

    Make sure this element appears before start-state. Refer to the flow definition schema for the exact order in which of the top elements.

    JL

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

    Default

    The URL you gave should basically work (it's a bit messed up in your post...)
    Take a look at the flowlauncher sample app (http://spring.ervacon.com/swf-flowlauncher/). It uses a URL like this:

    <A href="flowController.htm?_flowId=sampleA&input=som eInputForSampleA">Start Sample A</A>

    And as you can see this starts the "sampleA" flow with as input "someInputForSampleA".

    Erwin
    Last edited by klr8; Oct 30th, 2006 at 08:47 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
  •