<#--
   ******************************************************
   *
   *                       NOTICE
   *
   *  THIS SOFTWARE IS THE PROPERTY OF AND CONTAINS
   *  CONFIDENTIAL INFORMATION OF INFOR, 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:
   *
   *  Copyright © 2009 Infor. All rights reserved.
   *  The word and design marks set forth herein are
   *  trademarks and/or registered trademarks of Infor
   *  and/or related affiliates and subsidiaries.
   *  All rights reserved. All other trademarks listed
   *  herein are the property of their respective owners.
   *  www.infor.com.
   *
   ******************************************************
  -->
<#macro startsource>
|***************************| start of source |********************************
|*
|*    THIS SOFTWARE IS THE PROPERTY OF AND CONTAINS
|*    CONFIDENTIAL INFORMATION OF INFOR, 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:
|*
|*  Copyright (c) ${today?string("yyyy")} Infor. All rights reserved.
|*  The word and design marks set forth herein are trademarks and/or registered
|*  trademarks of Infor and/or related affiliates and subsidiaries.
|*  All rights reserved. All other trademarks listed herein are the property of
|*  their respective owners.
|*  www.infor.com.
|*
|******************************************************************************
|*
|*    BDE Name      : <#if object.name?has_content>${object.name}</#if>
|*    Gen. Date     : ${today?datetime}
|*
|*    Business Interface Definition info:
|*    -----------------------------------
|*    BID Name      : <#if object.businessInterfaceDefinition.idref.name?has_content>${object.businessInterfaceDefinition.idref.name}</#if>
|*    Description   : <#if object.businessInterfaceDefinition.idref.description?has_content>${object.businessInterfaceDefinition.idref.description}</#if>
|*    VersionID     : <#if object.businessInterfaceDefinition.idref.versionID?has_content>${object.businessInterfaceDefinition.idref.versionID}</#if>
|*    SchemaVersion : <#if object.businessInterfaceDefinition.idref.schemaVersion?has_content>${object.businessInterfaceDefinition.idref.schemaVersion}</#if>
|*
|*    Business Interface Implementation info:
|*    ---------------------------------------
|*    BII Name      : <#if object.name?has_content>${object.name}</#if>
|*    Description   : <#if object.description?has_content>${object.description}</#if>
|*    Status        : <#if object.status?has_content>${object.status}</#if>
|*    VersionID     : <#if object.versionID?has_content>${object.versionID}</#if>
|*    SchemaVersion : <#if object.schemaVersion?has_content>${object.schemaVersion}</#if>
|*
|*    Application info:
|*    -----------------
|*    Name          : <#if object.application.idref.name?has_content>${object.application.idref.name}</#if>
|*    Description   : <#if object.application.idref.description?has_content>${object.application.idref.description}</#if>
|*    Release       : <#if object.application.idref.release?has_content>${object.application.idref.release}</#if>
|*    VersionID     : <#if object.application.idref.versionID?has_content>${object.application.idref.versionID}</#if>
|*    SchemaVersion : <#if object.application.idref.schemaVersion?has_content>${object.application.idref.schemaVersion}</#if>
|* 
|*    Generator info:
|*    ---------------
|*    Name          : ${versionhelper.templatename}
|*    Id            : ${versionhelper.templateid}
|*    Version       : ${versionhelper.templateversion}
|*    Version       : ${versionhelper.generatorversion} (framework)
|* 
|******************************************************************************
|* DO NOT EDIT THIS GENERATED SOURCE !!
|******************************************************************************
|* Script Type: BOL
|******************************************************************************
</#macro><#--startsource-->
<#assign performance_counter=0>
<#macro performance_point description>
	<#-- This macro can be used for performance measuring.
		 The macro is called in certain placed in the templates.
		 It will insert a 'performance' line in de generated code.
		 Also a message will be stored in the log file.
		 So the exact time can be determined for a certain place in the
		 template during generation.
		 When a description is specified this will also be used for logging.
		 The var. perfmance_counter is just coutner which increase every time
		 the macro is executed.
		 
		 In normal situations this macro will do nothing untill the remark signs
		 are removed.
	-->
<#-- NO PERFORMANCE LOGING 
	<#assign performance_counter=performance_counter+1>
	<#if description=="">
| PERF: number : ${performance_counter}
	${logger.warn(object, "Performance number:" + performance_counter)}
	<#else>
| PERF: number : ${performance_counter} (${description})
	${logger.warn(object, "Performance number:" + performance_counter + " location:" + description)}
	</#if>
     NO PERFORMANCE LOGING -->
     <#if description!="">
	     ${monitor.setSubTask(object.name + ":" + description)}
	 </#if>
</#macro>

<#macro idents iIsPublic><#--boolean input parameter-->
<#--Initialisation:-->
<#local locBidName = object.businessInterfaceDefinition.idref.name/>
<#local locBiiName = object.name/>
<#if object.businessInterfaceDefinition.idref.versionID?has_content>
	<#local locBidVersion = "V"+object.businessInterfaceDefinition.idref.versionID>
<#else>
	<#local locBidVersion = "noVersion">
</#if>
<#if object.versionID?has_content>
	<#local locBiiVersion = "V"+object.versionID>
<#else>
	<#local locBiiVersion = "noVersion">
</#if>
<#if object.application.idref.versionID?has_content>
	<#local locApplVersion =  "V"+object.application.idref.versionID>
<#else>
	<#local locApplVersion = "noVersion">
</#if>
<#--Ident for ClearCase build of ERP LN applications (do not change!):-->
<#--"@(#) BUILD_${BID.name}_V<BII.majorVersion>_<Application.name>_<BII.versionID>"
    All upper case. The majorVersion is the first part of the versionID of the BII(!).
    E.g. if BII.versionID = "1.0.000" then majorVersion = "1".
    If versionID="something strange" then major version = "something strange".
    Note: If a BID has multiple implementations (e.g. Inbound_SSA and InboundASN), 
    these will get exactly the same ident (except when the BII version differs)! 
    Additionally, BID and application versionID are not included. 
    But this is as requested by the application owners.-->
<#local locDotPos = locBiiVersion?index_of(".")>
<#if (locDotPos < 0)>
	<#--no '.' so majorVersion is complete versionID-->
	<#local locMajorVersion = locBiiVersion>
<#else>
	<#if (locDotPos = 0)>
		<#--first character is '.' so majorVersion is empty-->
		<#local locMajorVersion = "">
	<#else>
		<#local locMajorVersion = locBiiVersion[0..locDotPos-1]>
	</#if>
</#if>
<#local locBuildString = "@(#) BUILD_"+locBidName+"_"+locMajorVersion+"_"+names.applicationName+"_"+locBiiVersion>
<#local locBuildString = locBuildString?upper_case>
#ident "${locBuildString}"
<#--Other idents:-->
<#local locDateString = today?string("yyyy-MM-dd")>
<#if iIsPublic>
#ident "@(#) <@names.SB_DLLCode/> ${locDateString} BID ${locBidName} ${locBidVersion}"
#ident "@(#) <@names.SB_DLLCode/> ${locDateString} BII ${locBiiName} ${locBiiVersion}"
#ident "@(#) <@names.SB_DLLCode/> ${locDateString} Application ${names.applicationName} ${locApplVersion}"
#ident "@(#) <@names.SB_DLLCode/> ${locDateString} ${versionhelper.templatename} V${versionhelper.templateversion} (framework V${versionhelper.generatorversion})"
<#else>
#ident "@(#) <@names.ST_DLLCode/> ${locDateString} BID ${locBidName} ${locBidVersion}"
#ident "@(#) <@names.ST_DLLCode/> ${locDateString} BII ${locBiiName} ${locBiiVersion}"
#ident "@(#) <@names.ST_DLLCode/> ${locDateString} Application ${names.applicationName} ${locApplVersion}"
#ident "@(#) <@names.ST_DLLCode/> ${locDateString} ${versionhelper.templatename} V${versionhelper.templateversion} (framework V${versionhelper.generatorversion})"
</#if>
</#macro><#--idents-->

<#macro endsource>
|****************************| end of source |*********************************
</#macro><#--endsource-->

<#macro query_statuses>
#define	QUERY.INACTIVE		0
#define QUERY.INIT			1
#define QUERY.START			2
#define	QUERY.FETCH			3
#define QUERY.END			4
#define QUERY.ERROR			99
</#macro><#--endsource-->
