Results 1 to 2 of 2

Thread: how to pass input parameter between flows upon end-state

  1. #1
    Join Date
    Oct 2008
    Posts
    286

    Default [SOLVED]how to pass input parameter between flows upon end-state

    my problem is... the input name="simulationAnalyzeId" is always null..
    please assist me...
    thanks

    1st flow
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <flow xmlns="http://www.springframework.org/schema/webflow"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://www.springframework.org/schema/webflow
            http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">
    
    	<view-state id="enterSimulation" view="view-simulation" model="simulationView" >
    		<transition on="rosenka-flow" to="rosenkaSanshutsu" ></transition>		
    		<transition on="modoru" to="shuryo" />
    	</view-state>
    	
    	<end-state id="shuryo" view="externalRedirect:/view-menu" />
    	
    	<end-state id="rosenkaSanshutsu" view="externalRedirect:/simulation/rosenka-flow" />
    	
    </flow>
    2nd flow
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <flow xmlns="http://www.springframework.org/schema/webflow"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://www.springframework.org/schema/webflow
            http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">
    	
    	<input name="simulationAnalyzeId" required="true" />
    
    	<on-start>
    		<evaluate expression="simulationService.createRosenkaView(simulationAnalyzeId)"
    					result="flowScope.rosenkaView">
    		</evaluate>
    	</on-start>
    
    	<view-state id="enterRosenka" view="view-rosenka">
    		<transition on="modoru" to="shuryo">
    		</transition>
    	</view-state>
    
    	<end-state id="shuryo" view="externalRedirect:/simulation/simulation-flow" />
    </flow>
    javascript
    Code:
    <input type = "hidden" value = '${flowExecutionUrl}'  id = "_flowExecutionUrl"  name = "_flowExecutionUrl"></input>
    
    location.href = $("#_flowExecutionUrl").val() + '&_eventId=rosenka-flow&simulationAnalyzeId=' + Id;
    Last edited by eros; Mar 4th, 2010 at 06:54 PM. Reason: tag as solved
    Eros

    Environment:
    JSP 2.0
    Dojo 1.4.1
    Ext JS 3.1 (testing)
    Spring MVC 2.5.6.SEC01 (planning to Spring 3 using STS)
    STS
    SWF 2.0.9.RELEASE
    Tiles 2.0.5
    iBatis: ibatis-sqlmap-2.3.4.726

  2. #2
    Join Date
    Oct 2008
    Posts
    286

    Default

    i found the solution..

    <end-state id="rosenkaSanshutsu" view="externalRedirect:/simulation/rosenka-flow?simulationAnalyzeId=${requestParameters.simul ationAnalyzeId}">
    </end-state>
    Eros

    Environment:
    JSP 2.0
    Dojo 1.4.1
    Ext JS 3.1 (testing)
    Spring MVC 2.5.6.SEC01 (planning to Spring 3 using STS)
    STS
    SWF 2.0.9.RELEASE
    Tiles 2.0.5
    iBatis: ibatis-sqlmap-2.3.4.726

Posting Permissions

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