<#--
   ******************************************************
   *
   *                       NOTICE
   *
   *  THIS SOFTWARE IS THE PROPERTY OF AND CONTAINS
   *  CONFIDENTIAL INFORMATION OF INFOR GLOBAL 
   *  SOLUTIONS, INC., AND SHALL NOT BE COPIED,
   *  USED, NOR DISCLOSED WITHOUT EXPRESS WRITTEN
   *  AUTHORIZATION.  ALTHOUGH PUBLICATION IS NOT
   *  INTENDED, IN THE EVENT OF PUBLICATION, THE
   *  FOLLOWING NOTICE IS APPLICABLE:
   *
   *  (c) COPYRIGHT 2007 INFOR GLOBAL SOLUTIONS, INC.
   *
   *           INFOR GLOBAL SOLUTIONS, INC.
   *
   ******************************************************
 -->
<#--
     Generate the test request files for an BOD Event
     - object is an instance of Event
     - properties is a HashMap generated by PropertiesHelper.getInstance() - it provides access to the
       named GeneratorProperty elements in ApplicationControlData.
  -->
<#import "common.ftl" as common/>  
<#assign bid=object.eContainer()>
<#assign bodName = bid.name>
<#if bodName?ends_with("BOD")>
	<#assign noun = bodName?replace("BOD", "")>
<#else>
	<#assign noun = bodName>
</#if>
<#assign eventName = object.name>
<#assign verb = eventName>
<!-- 
	Test Request file for BOD '${bodName}' and event '${eventName}' 
	generated using Business Studio version ${versionhelper.generatorversion} on ${today?datetime} 
-->
<BusinessStudioTest>
<#if object.canBeReceived=true>
	<${verb}${noun} releaseID="">
		<@common.showApplicationArea indent="\t\t" noun=noun verb=verb original=false/>
		<DataArea>
	<#switch eventName>
	<#case "Process">
			<${verb} acknowledgeCode="">
				<TenantID>_tenantID_</TenantID>
				<AccountingEntityID>_accountingEntityID_</AccountingEntityID>
				<LocationID>_locationID_</LocationID>
				<ActionCriteria _optional="true">
					<ActionExpression actionCode="" expressionLanguage="" _optional="true" />
				</ActionCriteria>
				<ChangeStatus />
			</${verb}>
	<#break>
	<#case "Acknowledge">
			<${verb}>
				<TenantID>_tenantID_</TenantID>
				<AccountingEntityID>_accountingEntityID_</AccountingEntityID>
				<LocationID>_locationID_</LocationID>
		<@common.showApplicationArea indent="\t\t\t\t" noun=noun verb=verb original=true/>
				<ResponseCriteria />
			</${verb}>
	<#break>
	<#case "Sync">
			<${verb}>
				<TenantID>_tenantID_</TenantID>
				<AccountingEntityID>_accountingEntityID_</AccountingEntityID>
				<LocationID>_locationID_</LocationID>
				<ActionCriteria _optional="true">
					<ActionExpression actionCode="" _optional="true" />
				</ActionCriteria>
			</${verb}>
	<#break>
	<#case "Load">
			<${verb}>
				<TenantID>_tenantID_</TenantID>
				<AccountingEntityID>_accountingEntityID_</AccountingEntityID>
				<LocationID>_locationID_</LocationID>
				<ActionCriteria _optional="true">
					<ActionExpression actionCode="" _optional="true" />
				</ActionCriteria>
			</${verb}>
	<#break>
	<#case "Post">
			<${verb}>
				<TenantID>_tenantID_</TenantID>
				<AccountingEntityID>_accountingEntityID_</AccountingEntityID>
				<LocationID>_locationID_</LocationID>
				<ActionCriteria _optional="true">
					<ActionExpression actionCode="" _optional="true" />
				</ActionCriteria>
			</${verb}>
	<#break>
	<#case "Update">
			<${verb}>
				<TenantID>_tenantID_</TenantID>
				<AccountingEntityID>_accountingEntityID_</AccountingEntityID>
				<LocationID>_locationID_</LocationID>
				<ActionCriteria _optional="true">
					<ActionExpression actionCode="" _optional="true" />
				</ActionCriteria>
			</${verb}>
	<#break>
	<#case "Get">
			<${verb} uniqueIndicator="" maxItems="" recordSetSaveIndicator="" recordSetStartNumber="" recordSetReferenceId="">
				<TenantID>_tenantID_</TenantID>
				<AccountingEntityID>_accountingEntityID_</AccountingEntityID>
				<LocationID>_locationID_</LocationID>
				<Expression />
			</${verb}>
	<#break>
	<#case "Show">
			<${verb} recordSetStartNumber="" recordSetCount="" recordSetTotal="" recordSetCompleteIndicator="" recordSetReferenceId="">
				<TenantID>_tenantID_</TenantID>
				<AccountingEntityID>_accountingEntityID_</AccountingEntityID>
				<LocationID>_locationID_</LocationID>
		<@common.showApplicationArea indent="\t\t\t\t" noun=noun verb=verb original=true/>
				<ResponseCriteria />
			</${verb}>
	<#break>
	<#default>
			<${verb}>
				<TenantID>_tenantID_</TenantID>
				<AccountingEntityID>_accountingEntityID_</AccountingEntityID>
				<LocationID>_locationID_</LocationID>
			</${verb}>
	<#break>
	</#switch>
			<${noun}>
				<@common.showAttributes component=bid indent="\t\t\t\t"/>			
			</${noun}>
		</DataArea>
	</${verb}${noun}>
</#if>
</BusinessStudioTest>
