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

    <start-state idref="viewState1" />
   
    <view-state id="viewState1" view="view1">
        <transition on="event1" to="doSomething"/>
        <transition on="event2" to="evalSomething"/>
    </view-state>
   
    <action-state id="doSomething">
        <bean-action bean="serviceBean" method="doSomething">
            <method-arguments>
                <argument expression="#{JsfBean.prop1}"/>
            </method-arguments>
        </bean-action>
        <transition to="viewState2"/>
    </action-state>
   
    <action-state id="evalSomething">
        <evaluate-action expression="#{JsfBean.addValue(jsfModel.value)}"/>
        <transition to="viewState2"/>
    </action-state>
   
    <view-state id="viewState2" view="view2">
        <transition on="event1" to="endState1"/>
    </view-state>
   
    <end-state id="endState1" view="endView1"/>   

</flow>