<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:p="http://www.springframework.org/schema/p"
  xmlns:util="http://www.springframework.org/schema/util"
  xmlns:aop="http://www.springframework.org/schema/aop"
  xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd" >

	<!-- 
		This is an example file that can be used to configure a custom specific context that is loaded
		after the coreContext.xml. See Jira AUTO-3121 for more information.
		Usually custom specific transformation controllers are defined here.   
 	-->

	<!-- *************************************************************************************** 
	     * Transformation Controller Jobs                                                      *
	     *                                                                                     * 
	     * How to define a Transformation Controller for as new frequency:                     *
	     * 1. Create a new set of "transformationCtl" properties in tfs.properties             *
	     *    Cron-Expression examples can be found at:                                        *
	     *	  http://www.quartz-scheduler.org/docs/tutorials/crontrigger.html                  *
	     * 2. Copy the beans "transformationControllerJobImmediately" and "transformation      *
	     *    ControllerJobTriggerImmediately"                                                 *
	     * 3. Replace the "Immediately" by the new frequency name                              *
	     * 4. Add the bean "transformationControllerJobTriggerXYZ" to the                      *
	     *    "tfs.scheduleTrigger" list.                                                      *
	     *************************************************************************************** 
	-->                                                              

<!-- 
	<bean id="transformationControllerJobImmediately" class="org.springframework.scheduling.quartz.JobDetailBean">
		<property name="jobClass" value="com.infor.tfs.fortress.transformationmanager.logic.TransformationControllerQuartzJob" />
		<property name="jobDataAsMap">
			<map>
				<entry key="transformationController" value-ref="transformationController" />
				<entry key="tenant" value="$TFS{transformationCtl.immed.tenant}" />
				<entry key="accountingEntity" value="$TFS{transformationCtl.immed.accountingEntities}" />
				<entry key="user" value="$TFS{transformationCtl.immed.user}" />
				<entry key="publishFrequency" value="$TFS{transformationCtl.immed.publishFrequency}" />
			</map>
		</property>
	</bean>

	<bean id="transformationControllerJobTriggerImmediately" class="org.springframework.scheduling.quartz.CronTriggerBean" >
		<property name="jobDetail" ref="transformationControllerJobImmediately" />
		<property name="cronExpression" value="$TFS{transformationCtl.immed.cronExpression}" />
	</bean>

	<util:list id="tfs.local.scheduleTrigger">
  		<value>transformationControllerJobTriggerImmediately</value>
 	</util:list>
-->
<bean id="directoryReaderJobFileSystem" class="org.springframework.scheduling.quartz.JobDetailBean">
  <property name="jobClass" value="com.infor.tfs.fortress.messagereader.logic.DirectoryReaderQuartzJob" />
  <property name="jobDataAsMap">
   <map>
    <entry key="directoryReaderFactory" value-ref="directoryReaderFactory" />
    <entry key="tenant" value="$TFS{directoryReader.tenant}" />
    <entry key="accountingEntity" value="$TFS{directoryReader.accountingEntities}" />
    <entry key="user" value="$TFS{directoryReader.user}" />
    <entry key="configurationName" value="fs" />
   </map>
  </property>
 </bean>
 
  <bean id="directoryReaderJobTriggerFileSystem" class="org.springframework.scheduling.quartz.CronTriggerBean" >
  <property name="jobDetail" ref="directoryReaderJobFileSystem" />
  <property name="cronExpression" value="$TFS{directoryReader.cronExpression}" />
 </bean>

 <util:list id="tfs.local.scheduleTrigger">
    <value>directoryReaderJobTriggerFileSystem</value>
  </util:list>


</beans>