2013-08-21 3 views
0

필수 입력 변수가 아닌 하위 플로우를 호출하는 Flow가 있습니다. 서브 플로우에 입력이있는 경우 서브 플로우를 체크인 할 수 있습니까?하위 플로우에 입력이 있는지 확인하십시오.

그래서 내 흐름 수 :

<?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.4.xsd "> 

    <subflow-state id="withoutInput" subflow="ReportEinlesen" > 
    <transition on="ende" to="ReportUebersichtAnzeigen" /> 
</subflow-state> 

    <decision-state id="somecondition"> 
    <if test="some condition" then="withnput" else="ende" /> 
    </decision-state> 

    <subflow-state id="withInput" subflow="ReportEinlesen" > 
    <input name="Report" value="${Report.foo()}" /> 
    <transition on="ende" to="ReportUebersichtAnzeigen" /> 
    </subflow-state> 

<end-state id="ende" /> 
</flow> 

그리고 이것은 내 서브 플로우는 ReportEinlesen 호출 할 수 있습니다 : 그것은 null 경우

<?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.4.xsd "> 

    <decision-state id="anothercondition"> 
    <if test="has this subflow got input?" then="ShowYourInput" else="ende" /> 
    </decision-state> 

<view-state id="ShowYourInput" > 
    <transition on="Seen" to="ende" /> 
</view-state> 

<end-state id="ende" /> 
</flow> 

답변

0

가 대리자 메서드를 작성하고 입력 변수를 전달하고 확인 또는 아니요

관련 문제