<?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 https://www.springframework.org/schema/webflow/spring-webflow.xsd">

	<persistence-context/>

	<on-start>
		<evaluate expression="incrementCountAction" />
	</on-start>
	
	<view-state id="view">
		<transition on="view2" to="view2"/>
		<transition on="managed" to="managed"/>
		<transition on="notmanaged" to="notmanaged"/>
	</view-state>
	
	<subflow-state id="managed" subflow="managed-child-flow">
		<transition on="finish" to="view2">
			<evaluate expression="incrementCountAction" />
			<evaluate expression="assertCountAction.execute(flowRequestContext,3)" />
		</transition>
	</subflow-state>

	<subflow-state id="notmanaged" subflow="notmanaged-child-flow">
		<transition on="finish" to="view2">
			<evaluate expression="incrementCountAction" />
			<evaluate expression="assertCountAction.execute(flowRequestContext,2)" />
		</transition>
	</subflow-state>
	
	<view-state id="view2"/>
	
</flow>