<?xml version="1.0"?>
<oddjob>

	<!-- =============================================
	A timer to keep running the if job.
	============================================== -->
	<timer name="A timer" delay="20000">
		
		<!-- =============================================
		The decision job
		============================================== -->
		<if name="A decision">
			<child>

				<!-- =============================================
				Depending on the result of this...
				============================================== -->
				<random name="File Exists?"/>
				
			</child>
			<then>

				<!-- =============================================
				This sequence gets run if it completes
				============================================== -->
				<sequential name="Transfer the file">
					
					<!-- =============================================
					A pretend job
					============================================== -->
					<random name="FTP Balance File"/>

					<!-- =============================================
					Another pretend job
					============================================== -->
					<random name="Update Sequence Number"/>
					
				</sequential>
			</then>
			<else>
				
				<!-- =============================================
				This job gets run if it doesn't complete.
				============================================== -->
				<random name="Send a mail to Customer Services"/>

			</else>

			<exception>
				
				<!-- =============================================
				This job gets run if it's in an exceptional state.
				============================================== -->
				<random name="Send a mail a mail to Technical Support"/>
				
			</exception>
		</if>
	</timer>
</oddjob>