<?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"
    abstract="true">

    <!-- Common login sub flow -->
    <subflow-state
        id="loginSubflowState"
        subflow="login">
        <transition
            on="end"
            to="${flowScope.lastFlowState}" />
    </subflow-state>

    <global-transitions>
        <transition
            on="login"
            to="loginSubflowState" />
    </global-transitions>
</flow>