에 따라 작업을 호출 할 수있는 방법
<input name="houseId" type="int" />
<on-start>
<evaluate expression="houseId!= null" />
<transition on="yes" to="loadHouse" />
<transition on="no" to="emptyHouse" />
</on-start>
나는 방법을 발견하고 여기를 공유하는 경우는 초보자를위한 도움이 될 거라 생각 했어요.
흐름 1
<subflow-state id="home" subflow="flow2">
<input name="homeId" value="requestParameters.homeId"/>
</subflow-state>
흐름이
는 결정 상태를 생성하고 동작 상태에서 호출. '시작 - 상태'를 사용하여 액션 - 상태를 호출 할 수 있습니다.
<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"
start-state="start">
<input name="homeId" type="int" />
<action-state id="start" >
<evaluate expression="controller.doSomething()"
<transition on="success" to="makeDecision" />
</action-state>
<decision-state id="makeDecision">
<if test="homeId== null" then="loadHome" else="emptyHome" />
</decision-state>
<action-state id="loadHome" >
<evaluate expression="controller.method1()" />
</action-state>
<action-state id="emptyHome" >
<evaluate expression="controller.method2()" />
</action-state>