<?xml version="1.0" standalone="yes"?> 
<flow>
	<actions>
		<action action="mostrarTexto" form = "frmMostrarTexto">
			<flow flow="diagrama" target="mostrarDiagrama" />
		</action>
		<action action="mostrarDiagrama" form = "frmMostrarDiagrama">
			<flow flow="nascimento" target="obterDataNascimento" />
		</action>
		<action action="obterDataNascimento" form = "frmObterDataNascimento" decision="validarDataNascimento">
			<flow flow="curso" target="escolherCurso" />
			<flow flow="mensagem" target="mostrarMensagem" />
		</action>
		<action action="escolherCurso" form = "frmEscolherCurso" decision="verificarReopcao">
			<flow flow="dados" target="obterDadosPessoais" />
			<flow flow="reopcao" target="escolherReopcao" />
		</action>
		<action action="escolherReopcao" form = "frmEscolherReopcao">
			<flow flow="dados" target="obterDadosPessoais" />
		</action>
		<action action="obterDadosPessoais" form = "frmObterDadosPessoais" onExit="verificarNome">
			<flow flow="endereco" target="obterEndereco" />
		</action>
		<action action="obterEndereco" form = "frmObterEndereco">
			<flow flow="confirma" target="confirmarDados" />
		</action>
		<action action="confirmarDados" form = "frmConfirmarDados" onEntry="calcularIdade">
			<flow flow="pagamento" target="confirmarPagamento" />
			<flow flow="dados" target="obterDadosPessoais" />
		</action>
		<action action="confirmarPagamento" form = "frmConfirmarPagamento">
			<flow flow="boleto" target="mostrarBoleto" />
		</action>
		<action action="mostrarBoleto" form = "frmMostrarBoleto">
			<flow flow="nascimento" target="obterDataNascimento" />
		</action>
		<action action="mostrarMensagem" form = "frmMostrarMensagem" />
	</actions>
	<initial>
		<action action="mostrarTexto" />
	</initial>
	<final>
		<action action="fim" url="${$flow->manager->getActionURL('common','main')}"/>
	</final>
</flow>