Announcement Announcement Module
Collapse
No announcement yet.
how to pass input parameter between flows upon end-state Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 07:54 PM. Reason: tag as solved

  • #2
    i found the solution..

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

    Comment

    Working...
    X