<?xml version="1.0" encoding="UTF-8"?>
<MetamergeConfig IDIversion="Created by TDI6.1.1 - 2008-11-26" created="Fri Feb 06 15:03:34 CST 2009" createdBy="dbutler" modified="Wed Mar 18 16:04:58 CDT 2009" modifiedBy="TCIMUSER" version="6.1.1">
<Folder name="AssemblyLines">
<AssemblyLine name="F98OWSECAL">
<Settings>
<parameter name="ALPoolSettingsDialog">showALPoolSettings</parameter>
<parameter name="automapattributes">false</parameter>
<parameter name="createTombstones">false</parameter>
<parameter name="debug">false</parameter>
<parameter name="includeGlobalPrologs">true</parameter>
<parameter name="nullBehaviorDialog">showNullBehavior</parameter>
</Settings>
<Hooks>
<Hook>
<Name>epilog2</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>onsuccess</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>prolog0</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<LogConfig/>
<ContainerEF name="EntryFeedContainer">
<Connector name="ReadF98OWSEC">
<InheritFrom>system:/Connectors/ibmdi.JDBC</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="jdbcDriver">com.microsoft.sqlserver.jdbc.SQLServerDriver</parameter>
<parameter name="jdbcLogin">s-TCIM</parameter>
<parameter name="jdbcPassword">s-TCIM</parameter>
<parameter name="jdbcPreparedStatement">true</parameter>
<parameter name="jdbcSchema">sy811</parameter>
<parameter name="jdbcSelect"/>
<parameter name="jdbcSource">jdbc:sqlserver://10.252.6.128:1433;databasename=PS811</parameter>
<parameter name="jdbcTable">F98OWSEC</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>SCJOBN</Name>
<Type>simple</Type>
<Simple>SCJOBN</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SCMUSE</Name>
<Type>simple</Type>
<Simple>SCMUSE</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SCPID</Name>
<Type>simple</Type>
<Simple>SCPID</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SCSECF1</Name>
<Type>simple</Type>
<Simple>SCSECF1</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SCSECLST</Name>
<Type>simple</Type>
<Simple>SCSECLST</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SCUPMJ</Name>
<Type>simple</Type>
<Simple>SCUPMJ</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SCUPMT</Name>
<Type>simple</Type>
<Simple>SCUPMT</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SCUSER</Name>
<Type>simple</Type>
<Simple>SCUSER</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>chg_time</Name>
<Type>advanced</Type>
<Script>ret.value = "UNKNOWN";</Script>
<Simple>chg_time</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>new_when</Name>
<Type>advanced</Type>
<Script>ret.value = "UNKNOWN";</Script>
<Simple>new_when</Simple>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<DeltaSettings>
<Enabled>true</Enabled>
<UniqueAttribute>SCUSER+SUSECF1</UniqueAttribute>
<FilePath>F98OWSECDelta</FilePath>
<ReadDeleted>true</ReadDeleted>
<RemoveDeleted>true</RemoveDeleted>
<WhenToCommit>On end of AL cycle</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
<SchemaItem>
<Name>SCATTEMPTS</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCEUSER</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCJOBN</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCMUSE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCOWPWD</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCPID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCRETRY</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCSECF1</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCSECF2</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCSECF3</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCSECFRQ</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCSECLST</Name>
<Syntax>java.math.BigDecimal</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCSECPWD</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCSECTPE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCSECUSR</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCSECV1</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCSECV2</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCSECV3</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCSECV4</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCSRVBLOBA</Name>
<Syntax>[byte array]</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCUGRP</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCUPMJ</Name>
<Syntax>java.math.BigDecimal</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCUPMT</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SCUSER</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
<parameter name="initreconnect">false</parameter>
<parameter name="numberOfRetries">1</parameter>
<parameter name="retryDelay">10</parameter>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerEF>
<ContainerDF name="DataFlowContainer">
<Connector name="xformdate">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[// Transform date - Table F980WSEC	Use "SCUPMJ" + "SCUPMT"
//
// Filename:	xformdate.js
//
// Abstract:	Transform JDE Julian date to TDI format of YYYY-MM-DDTHH:MM:SS+HH:MM
//				The JDE Julian format is CYYDDD
//
// Usage:		TDI internal script component
//
// Author:		IBM
//
// History:		v0.8	Original Version 					January 26, 2009
//
//				v0.9	Modified 'work' object
//						Cleanup								January 28, 2009
//
//				v1.0	Added conditional to
//						check for 'H'our = 00				February 02, 2009
//
//				v1.1	Compensated for bogus data			February 27, 2009
//
//				v1.2	Derive SECBLOBA last change date	March 02, 2009
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################
//
//
// var juldate = work.getAttribute("DATE").getValue(0).toString();
// 

var juldate = work.getString("SCUPMJ");

// 03/02/2009	wdb		Last changed date for SVRBLOBA
var secdate = work.getString("SCSECLST");

// juldate is in the format CYYDDD

//
//  var mytime = work.getAttribute("DATE").getValue(0).toString();
//

var mytime = work.getString("SCUPMT");

// mytime is in the format HHMMSS.s

// 03/02/2009	wdb		Added CC1, Y1, M1, D1 variables for  derivation of date of last changed SECBLOBA
var CC,CC1,Y,Y1,M,M1,D,D1,H,M,min,S,sec,O,O1,O2,chnginfo,myreturn;

// Goal is to have this format 2003-07-18T14:22:01-02:00 
// or YYYY-MM-DDTHH:MM:SS+HH:MM
// the T is a literal 'T' and the +HH:MM is the GMT offset (can be plus or minus)

function twoDigits(num){
	//returns a string that has a 0 before it if it's less than 10
	//returns a -1 if the number is less than zero (error condition)
	num = parseInt(num);
	if((num < 10) && (num >= 0)){
		return( "0" + num.toString());
	} else if(num < 0){
		return( -1 );
	} else {
		return(num.toString());
	}
}

if (parseInt(juldate) >= 100000){
	CC = 20
} else {
	CC = 19;
}
Y = CC.toString() + juldate.substring(1,3);

if (parseInt(secdate) >= 100000) {
    CC1 = 20
} else {
    CC1 = 19;
}
Y1 = CC1.toString() + secdate.substring(1,3);

var d = new Date(Y,0,1);
var d1 = new Date(Y1,0,1);
var dd = new Date((86400000 * (juldate.substr(3) - 1)) + d.getTime());
var dd1 = new Date((86400000 * (secdate.substr(3) - 1)) + d.getTime());

M = twoDigits(dd.getMonth() + 1);
M1 = twoDigits(dd1.getMonth() + 1);
D = twoDigits(dd.getDate());
D1 = twoDigits(dd1.getDate());

var i = mytime.indexOf(".");
sec = twoDigits(mytime.substr(i+1));
S = twoDigits(mytime.substring(i-2,i));
//
// 02/27/2009	wdb		Compensate for bogus data from // Transform date - Table F980WSEC	Use "SCUPMJ" + "SCUPMT"
//
// Filename:	xformdate.js
//
// Abstract:	Transform JDE Julian date to TDI format of YYYY-MM-DDTHH:MM:SS+HH:MM
//				The JDE Julian format is CYYDDD
//
// Usage:		TDI internal script component
//
// Author:		IBM
//
// History:		v0.8	Original Version 					January 26, 2009
//
//				v0.9	Modified 'work' object
//						Cleanup								January 28, 2009
//
//				v1.0	Added conditional to
//						check for 'H'our = 00				February 02, 2009
//
//				v1.1	Compensated for bogus data			February 27, 2009
//
//				v1.2	Derive SECBLOBA last change date	March 02, 2009
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################
//
//
// var juldate = work.getAttribute("DATE").getValue(0).toString();
// 

var juldate = work.getString("SCUPMJ");

// 03/02/2009	wdb		Last changed date for SVRBLOBA
var secdate = work.getString("SCSECLST");

// juldate is in the format CYYDDD

//
//  var mytime = work.getAttribute("DATE").getValue(0).toString();
//

var mytime = work.getString("SCUPMT");

// mytime is in the format HHMMSS.s

// 03/02/2009	wdb		Added CC1, Y1, M1, D1 variables for  derivation of date of last changed SECBLOBA
var CC,CC1,Y,Y1,M,M1,D,D1,H,M,min,S,sec,O,O1,O2,chnginfo,myreturn;

// Goal is to have this format 2003-07-18T14:22:01-02:00 
// or YYYY-MM-DDTHH:MM:SS+HH:MM
// the T is a literal 'T' and the +HH:MM is the GMT offset (can be plus or minus)

function twoDigits(num){
	//returns a string that has a 0 before it if it's less than 10
	//returns a -1 if the number is less than zero (error condition)
	num = parseInt(num);
	if((num < 10) && (num >= 0)){
		return( "0" + num.toString());
	} else if(num < 0){
		return( -1 );
	} else {
		return(num.toString());
	}
}

if (parseInt(juldate) >= 100000){
	CC = 20
} else {
	CC = 19;
}
Y = CC.toString() + juldate.substring(1,3);

if (parseInt(secdate) >= 100000) {
    CC1 = 20
} else {
    CC1 = 19;
}
Y1 = CC1.toString() + secdate.substring(1,3);

var d = new Date(Y,0,1);
var d1 = new Date(Y1,0,1);
var dd = new Date((86400000 * (juldate.substr(3) - 1)) + d.getTime());
var dd1 = new Date((86400000 * (secdate.substr(3) - 1)) + d.getTime());

M = twoDigits(dd.getMonth() + 1);
M1 = twoDigits(dd1.getMonth() + 1);
D = twoDigits(dd.getDate());
D1 = twoDigits(dd1.getDate());

var i = mytime.indexOf(".");
sec = twoDigits(mytime.substr(i+1));
S = twoDigits(mytime.substring(i-2,i));
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if (S > 59) {
	S == '00';
}
min = twoDigits(mytime.substring(i-4,i-2));
if (i <= 5) {
	H = '00';
} else {
	H = twoDigits(mytime.substring(0,i-4));
}

// offset code
var ddd = new Date();
O1 = twoDigits(Math.floor(ddd.getTimezoneOffset()/60).toString());
O2 = twoDigits((ddd.getTimezoneOffset()%60).toString());
if (ddd.getTimezoneOffset() < 0){
	O = "-" + O1 +":"+ O2;
} else {
	O = "+" + O1 +":"+ O2;
}

//
// 02/27/2009	wdb		Compensate for bogus data from // Transform date - Table F980WSEC	Use "SCUPMJ" + "SCUPMT"
//
// Filename:	xformdate.js
//
// Abstract:	Transform JDE Julian date to TDI format of YYYY-MM-DDTHH:MM:SS+HH:MM
//				The JDE Julian format is CYYDDD
//
// Usage:		TDI internal script component
//
// Author:		IBM
//
// History:		v0.8	Original Version 					January 26, 2009
//
//				v0.9	Modified 'work' object
//						Cleanup								January 28, 2009
//
//				v1.0	Added conditional to
//						check for 'H'our = 00				February 02, 2009
//
//				v1.1	Compensated for bogus data			February 27, 2009
//
//				v1.2	Derive SECBLOBA last change date	March 02, 2009
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################
//
//
// var juldate = work.getAttribute("DATE").getValue(0).toString();
// 

var juldate = work.getString("SCUPMJ");

// 03/02/2009	wdb		Last changed date for SVRBLOBA
var secdate = work.getString("SCSECLST");

// juldate is in the format CYYDDD

//
//  var mytime = work.getAttribute("DATE").getValue(0).toString();
//

var mytime = work.getString("SCUPMT");

// mytime is in the format HHMMSS.s

// 03/02/2009	wdb		Added CC1, Y1, M1, D1 variables for  derivation of date of last changed SECBLOBA
var CC,CC1,Y,Y1,M,M1,D,D1,H,M,min,S,sec,O,O1,O2,chnginfo,myreturn;

// Goal is to have this format 2003-07-18T14:22:01-02:00 
// or YYYY-MM-DDTHH:MM:SS+HH:MM
// the T is a literal 'T' and the +HH:MM is the GMT offset (can be plus or minus)

function twoDigits(num){
	//returns a string that has a 0 before it if it's less than 10
	//returns a -1 if the number is less than zero (error condition)
	num = parseInt(num);
	if((num < 10) && (num >= 0)){
		return( "0" + num.toString());
	} else if(num < 0){
		return( -1 );
	} else {
		return(num.toString());
	}
}

if (parseInt(juldate) >= 100000){
	CC = 20
} else {
	CC = 19;
}
Y = CC.toString() + juldate.substring(1,3);

if (parseInt(secdate) >= 100000) {
    CC1 = 20
} else {
    CC1 = 19;
}
Y1 = CC1.toString() + secdate.substring(1,3);

var d = new Date(Y,0,1);
var d1 = new Date(Y1,0,1);
var dd = new Date((86400000 * (juldate.substr(3) - 1)) + d.getTime());
var dd1 = new Date((86400000 * (secdate.substr(3) - 1)) + d.getTime());

M = twoDigits(dd.getMonth() + 1);
M1 = twoDigits(dd1.getMonth() + 1);
D = twoDigits(dd.getDate());
D1 = twoDigits(dd1.getDate());

var i = mytime.indexOf(".");
sec = twoDigits(mytime.substr(i+1));
S = twoDigits(mytime.substring(i-2,i));
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if (S > 59) {
	S == '00';
}
min = twoDigits(mytime.substring(i-4,i-2));
if (i <= 5) {
	H = '00';
} else {
	H = twoDigits(mytime.substring(0,i-4));
}

// offset code
var ddd = new Date();
O1 = twoDigits(Math.floor(ddd.getTimezoneOffset()/60).toString());
O2 = twoDigits((ddd.getTimezoneOffset()%60).toString());
if (ddd.getTimezoneOffset() < 0){
	O = "-" + O1 +":"+ O2;
} else {
	O = "+" + O1 +":"+ O2;
}

//
// 02/27/2009	wdb		Compensate for bogus data from // Transform date - Table F980WSEC	Use "SCUPMJ" + "SCUPMT"
//
// Filename:	xformdate.js
//
// Abstract:	Transform JDE Julian date to TDI format of YYYY-MM-DDTHH:MM:SS+HH:MM
//				The JDE Julian format is CYYDDD
//
// Usage:		TDI internal script component
//
// Author:		IBM
//
// History:		v0.8	Original Version 					January 26, 2009
//
//				v0.9	Modified 'work' object
//						Cleanup								January 28, 2009
//
//				v1.0	Added conditional to
//						check for 'H'our = 00				February 02, 2009
//
//				v1.1	Compensated for bogus data			February 27, 2009
//
//				v1.2	Derive SECBLOBA last change date	March 02, 2009
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################
//
//
// var juldate = work.getAttribute("DATE").getValue(0).toString();
// 

var juldate = work.getString("SCUPMJ");

// 03/02/2009	wdb		Last changed date for SVRBLOBA
var secdate = work.getString("SCSECLST");

// juldate is in the format CYYDDD

//
//  var mytime = work.getAttribute("DATE").getValue(0).toString();
//

var mytime = work.getString("SCUPMT");

// mytime is in the format HHMMSS.s

// 03/02/2009	wdb		Added CC1, Y1, M1, D1 variables for  derivation of date of last changed SECBLOBA
var CC,CC1,Y,Y1,M,M1,D,D1,H,M,min,S,sec,O,O1,O2,chnginfo,myreturn;

// Goal is to have this format 2003-07-18T14:22:01-02:00 
// or YYYY-MM-DDTHH:MM:SS+HH:MM
// the T is a literal 'T' and the +HH:MM is the GMT offset (can be plus or minus)

function twoDigits(num){
	//returns a string that has a 0 before it if it's less than 10
	//returns a -1 if the number is less than zero (error condition)
	num = parseInt(num);
	if((num < 10) && (num >= 0)){
		return( "0" + num.toString());
	} else if(num < 0){
		return( -1 );
	} else {
		return(num.toString());
	}
}

if (parseInt(juldate) >= 100000){
	CC = 20
} else {
	CC = 19;
}
Y = CC.toString() + juldate.substring(1,3);

if (parseInt(secdate) >= 100000) {
    CC1 = 20
} else {
    CC1 = 19;
}
Y1 = CC1.toString() + secdate.substring(1,3);

var d = new Date(Y,0,1);
var d1 = new Date(Y1,0,1);
var dd = new Date((86400000 * (juldate.substr(3) - 1)) + d.getTime());
var dd1 = new Date((86400000 * (secdate.substr(3) - 1)) + d.getTime());

M = twoDigits(dd.getMonth() + 1);
M1 = twoDigits(dd1.getMonth() + 1);
D = twoDigits(dd.getDate());
D1 = twoDigits(dd1.getDate());

var i = mytime.indexOf(".");
sec = twoDigits(mytime.substr(i+1));
S = twoDigits(mytime.substring(i-2,i));
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if (S > 59) {
	S == '00';
}
min = twoDigits(mytime.substring(i-4,i-2));
if (i <= 5) {
	H = '00';
} else {
	H = twoDigits(mytime.substring(0,i-4));
}

// offset code
var ddd = new Date();
O1 = twoDigits(Math.floor(ddd.getTimezoneOffset()/60).toString());
O2 = twoDigits((ddd.getTimezoneOffset()%60).toString());
if (ddd.getTimezoneOffset() < 0){
	O = "-" + O1 +":"+ O2;
} else {
	O = "+" + O1 +":"+ O2;
}

//
// 02/27/2009	wdb		Compensate for bogus data from // Transform date - Table F980WSEC	Use "SCUPMJ" + "SCUPMT"
//
// Filename:	xformdate.js
//
// Abstract:	Transform JDE Julian date to TDI format of YYYY-MM-DDTHH:MM:SS+HH:MM
//				The JDE Julian format is CYYDDD
//
// Usage:		TDI internal script component
//
// Author:		IBM
//
// History:		v0.8	Original Version 					January 26, 2009
//
//				v0.9	Modified 'work' object
//						Cleanup								January 28, 2009
//
//				v1.0	Added conditional to
//						check for 'H'our = 00				February 02, 2009
//
//				v1.1	Compensated for bogus data			February 27, 2009
//
//				v1.2	Derive SECBLOBA last change date	March 02, 2009
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################
//
//
// var juldate = work.getAttribute("DATE").getValue(0).toString();
// 

var juldate = work.getString("SCUPMJ");

// 03/02/2009	wdb		Last changed date for SVRBLOBA
var secdate = work.getString("SCSECLST");

// juldate is in the format CYYDDD

//
//  var mytime = work.getAttribute("DATE").getValue(0).toString();
//

var mytime = work.getString("SCUPMT");

// mytime is in the format HHMMSS.s

// 03/02/2009	wdb		Added CC1, Y1, M1, D1 variables for  derivation of date of last changed SECBLOBA
var CC,CC1,Y,Y1,M,M1,D,D1,H,M,min,S,sec,O,O1,O2,chnginfo,myreturn;

// Goal is to have this format 2003-07-18T14:22:01-02:00 
// or YYYY-MM-DDTHH:MM:SS+HH:MM
// the T is a literal 'T' and the +HH:MM is the GMT offset (can be plus or minus)

function twoDigits(num){
	//returns a string that has a 0 before it if it's less than 10
	//returns a -1 if the number is less than zero (error condition)
	num = parseInt(num);
	if((num < 10) && (num >= 0)){
		return( "0" + num.toString());
	} else if(num < 0){
		return( -1 );
	} else {
		return(num.toString());
	}
}

if (parseInt(juldate) >= 100000){
	CC = 20
} else {
	CC = 19;
}
Y = CC.toString() + juldate.substring(1,3);

if (parseInt(secdate) >= 100000) {
    CC1 = 20
} else {
    CC1 = 19;
}
Y1 = CC1.toString() + secdate.substring(1,3);

var d = new Date(Y,0,1);
var d1 = new Date(Y1,0,1);
var dd = new Date((86400000 * (juldate.substr(3) - 1)) + d.getTime());
var dd1 = new Date((86400000 * (secdate.substr(3) - 1)) + d.getTime());

M = twoDigits(dd.getMonth() + 1);
M1 = twoDigits(dd1.getMonth() + 1);
D = twoDigits(dd.getDate());
D1 = twoDigits(dd1.getDate());

var i = mytime.indexOf(".");
sec = twoDigits(mytime.substr(i+1));
S = twoDigits(mytime.substring(i-2,i));
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if (S > 59) {
	S == '00';
}
min = twoDigits(mytime.substring(i-4,i-2));
if (i <= 5) {
	H = '00';
} else {
	H = twoDigits(mytime.substring(0,i-4));
}

// offset code
var ddd = new Date();
O1 = twoDigits(Math.floor(ddd.getTimezoneOffset()/60).toString());
O2 = twoDigits((ddd.getTimezoneOffset()%60).toString());
if (ddd.getTimezoneOffset() < 0){
	O = "-" + O1 +":"+ O2;
} else {
	O = "+" + O1 +":"+ O2;
}

//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if ((juldate == '0') && (mytime == '0.0')) {
	myreturn = "0000-00-00T00:00:00+00:00"
} else {
	myreturn = Y +"-"+ M +"-"+ D +"T"+ H +":"+ min +":"+ S + O;
}

//
// 03/02/2009	wdb		Compensate for bogus data from authoritative source
//
if (secdate == '0') {
	chnginfo = "00-00-00"
} else {
	chnginfo = Y1 +"-"+ M1 +"-"+ D1;
}

work.setAttribute("new_when", myreturn);
work.setAttribute("chg_info", chnginfo);
 source
//
if ((juldate == '0') && (mytime == '0.0')) {
	myreturn = "0000-00-00T00:00:00+00:00"
} else {
	myreturn = Y +"-"+ M +"-"+ D +"T"+ H +":"+ min +":"+ S + O;
}

//
// 03/02/2009	wdb		Compensate for bogus data from authoritative source
//
if (secdate == '0') {
	chnginfo = "00-00-00"
} else {
	chnginfo = Y1 +"-"+ M1 +"-"+ D1;
}

work.setAttribute("new_when", myreturn);
work.setAttribute("chg_info", chnginfo);
 source
//
if ((juldate == '0') && (mytime == '0.0')) {
	myreturn = "0000-00-00T00:00:00+00:00"
} else {
	myreturn = Y +"-"+ M +"-"+ D +"T"+ H +":"+ min +":"+ S + O;
}

//
// 03/02/2009	wdb		Compensate for bogus data from authoritative source
//
if (secdate == '0') {
	chnginfo = "00-00-00"
} else {
	chnginfo = Y1 +"-"+ M1 +"-"+ D1;
}

work.setAttribute("new_when", myreturn);
work.setAttribute("chg_info", chnginfo);
 source
//
if ((juldate == '0') && (mytime == '0.0')) {
	myreturn = "0000-00-00T00:00:00+00:00"
} else {
	myreturn = Y +"-"+ M +"-"+ D +"T"+ H +":"+ min +":"+ S + O;
}

//
// 03/02/2009	wdb		Compensate for bogus data from authoritative source
//
if (secdate == '0') {
	chnginfo = "00-00-00"
} else {
	chnginfo = Y1 +"-"+ M1 +"-"+ D1;
}

work.setAttribute("new_when", myreturn);
work.setAttribute("chg_info", chnginfo);
 source
//
if (S > 59) {
	S == '00';
}
min = twoDigits(mytime.substring(i-4,i-2));
if (i <= 5) {
	H = '00';
} else {
	H = twoDigits(mytime.substring(0,i-4));
}

// offset code
var ddd = new Date();
O1 = twoDigits(Math.floor(ddd.getTimezoneOffset()/60).toString());
O2 = twoDigits((ddd.getTimezoneOffset()%60).toString());
if (ddd.getTimezoneOffset() < 0){
	O = "-" + O1 +":"+ O2;
} else {
	O = "+" + O1 +":"+ O2;
}

//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if ((juldate == '0') && (mytime == '0.0')) {
	myreturn = "0000-00-00T00:00:00+00:00"
} else {
	myreturn = Y +"-"+ M +"-"+ D +"T"+ H +":"+ min +":"+ S + O;
}

//
// 03/02/2009	wdb		Compensate for bogus data from authoritative source
//
if (secdate == '0') {
	chnginfo = "00-00-00"
} else {
	chnginfo = Y1 +"-"+ M1 +"-"+ D1;
}

work.setAttribute("new_when", myreturn);
work.setAttribute("chg_info", chnginfo);
]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="trimwhtspc">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[//
// Filename:	trimwhtspc
//
// Abstract:	Trim whitespace/padding
//
// Usage:		TDI Script component
//
// Author:		IBM
//
// History:		Created			January 26, 2009
//
// Note:		
//
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################
//
attnames = work.getAttributeNames();
   for (aname in attnames) {
          attval = work.getObject(aname);
          if (attval && attval.getClass().getName().equals("java.lang.String"))
                   work.setAttribute(aname, attval.trim());
   }
]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="W7Connector">
<InheritFrom>/Connectors/W7Connector</InheritFrom>
<ConnectorMode>AddOnly</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="$initialize.1. Insight Import directory">C:\ibm\TCIM\Import</parameter>
<parameter name="$initialize.2. File creation directory">Projects\AJG\Temp</parameter>
<parameter name="$initialize.3. How many events per file"/>
<parameter name="$initialize.4. Minutes before sending events to Insight"/>
<parameter name="$initialize.5. Prefix for W7 import files">F980WSEC_</parameter>
<parameter name="assemblyLine">W7AdapterAL</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>info</Name>
<Type>advanced</Type>
<Script><![CDATA[// Info:	Last Change, SRVBLOBA
ret.value = work.getString("chg_info");]]></Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>SCMUSE</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>SCPID</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>advanced</Type>
<Script>ret.value = "USER";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>advanced</Type>
<Script>ret.value = "PASSWORD";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>advanced</Type>
<Script>ret.value = "SUCCESS";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>advanced</Type>
<Script>ret.value = "CHANGE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>advanced</Type>
<Script>ret.value = work.getAttribute("new_when");</Script>
<Simple>new_when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>SCJOBN</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>SCJOBN</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>advanced</Type>
<Script>ret.value = "F98OWSEC";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Script>ret.value = work.getAttribute("SCUSER");</Script>
<Simple>SCUSER</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Script>ret.value = ;</Script>
<Simple>SCUSER</Simple>
</AttributeMapItem>
</AttributeMap>
<DeltaSettings>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerDF>
<ThreadOptions/>
<Operations>
<Operation name="putEntry">
<Schema name="Input">
<SchemaItem>
<Name>info</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatpath</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhattype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatnoun</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatsuccess</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatverb</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>when</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromtype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherename</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretoname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretotype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whologonname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whorealname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<Schema name="Output">
<SchemaItem>
<Name>info</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatpath</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhattype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatnoun</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatsuccess</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatverb</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>when</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromtype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherename</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretoname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretotype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whologonname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whorealname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<AttributeMap name="Input">
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Simple>info</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>onwhatname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>onwhatpath</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>simple</Type>
<Simple>onwhattype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Simple>whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Simple>whatsuccess</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>simple</Type>
<Simple>whatverb</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Simple>when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>wherefromname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>wherefromtype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>simple</Type>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>simple</Type>
<Simple>wheretoname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>simple</Type>
<Simple>wheretotype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>simple</Type>
<Simple>wheretype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>whologonname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>whorealname</Simple>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Simple>info</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>onwhatname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>onwhatpath</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>simple</Type>
<Simple>onwhattype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Simple>whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Simple>whatsuccess</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>simple</Type>
<Simple>whatverb</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Simple>when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>wherefromname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>wherefromtype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>simple</Type>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>simple</Type>
<Simple>wheretoname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>simple</Type>
<Simple>wheretotype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>simple</Type>
<Simple>wheretype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>whologonname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>whorealname</Simple>
</AttributeMapItem>
</AttributeMap>
<Public>true</Public>
</Operation>
<Operation name="Default">
<Schema name="Input"/>
<Schema name="Output"/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<Public>true</Public>
</Operation>
</Operations>
<InitParams>
<Schema name="AssemblyLineInitParams">
<SchemaItem>
<Name>1. Insight Import directory</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>2. File creation directory</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>3. How many events per file</Name>
<NativeSyntax>Number</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>4. Minutes before sending events to Insight</Name>
<NativeSyntax>Number</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>5. Prefix for W7 import files</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
</Schema>
</InitParams>
</AssemblyLine>
<AssemblyLine name="F9312AL">
<Settings>
<parameter name="ALPoolSettingsDialog">showALPoolSettings</parameter>
<parameter name="automapattributes">false</parameter>
<parameter name="createTombstones">false</parameter>
<parameter name="debug">false</parameter>
<parameter name="includeGlobalPrologs">true</parameter>
<parameter name="nullBehaviorDialog">showNullBehavior</parameter>
</Settings>
<Hooks>
<Hook>
<Name>epilog2</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>onsuccess</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>prolog0</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<LogConfig/>
<ContainerEF name="EntryFeedContainer">
<Connector name="ReadF9312">
<InheritFrom>system:/Connectors/ibmdi.JDBC</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="jdbcDriver">com.microsoft.sqlserver.jdbc.SQLServerDriver</parameter>
<parameter name="jdbcLogin">s-TCIM</parameter>
<parameter name="jdbcPassword">s-TCIM</parameter>
<parameter name="jdbcPreparedStatement">true</parameter>
<parameter name="jdbcSchema">sy811</parameter>
<parameter name="jdbcSource">jdbc:sqlserver://10.252.6.128:1433;databasename=PS811</parameter>
<parameter name="jdbcTable">F9312</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>SHEVSTAT</Name>
<Type>simple</Type>
<Script>ret.value = conn.getAttribute("SHEVSTAT");</Script>
<Simple>SHEVSTAT</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SHEVTYP</Name>
<Type>simple</Type>
<Script><![CDATA[if (conn.getAttribute("SHEVTYP").getValue(0) == "03")
{
 ret.value = "Password Change";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "04")
{
 ret.value = "System Administrator Change";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "05")
{
 ret.value = "Add User";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "06")
{
 ret.value = "Delete User";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "07")
{
 ret.value = "Add Record, F00950";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "08")
{
 ret.value = "Delete Record, F00950";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "09")
{
 ret.value = "Modify Record, F00950";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "10")
{
 ret.value = "Add User to F0092";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "11")
{
 ret.value = "Delete User from F0092";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "12")
{
 ret.value = "Modify User in F0092";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "13")
{
 ret.value = "Add User/Role Relationship";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "14")
{
 ret.value = "Remove User/Role Relationship";
}
else
{
 ret.value = "UNDEF: No translation available";
}
]]></Script>
<Simple>SHEVTYP</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SHJOBN</Name>
<Type>simple</Type>
<Simple>SHJOBN</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SHMKEY</Name>
<Type>simple</Type>
<Simple>SHMKEY</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SHPID</Name>
<Type>simple</Type>
<Simple>SHPID</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SHSECF1</Name>
<Type>simple</Type>
<Script>ret.value = conn.getAttribute("SHSECF1");</Script>
<Simple>SHSECF1</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SHUPMJ</Name>
<Type>simple</Type>
<Simple>SHUPMJ</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SHUPMT</Name>
<Type>simple</Type>
<Simple>SHUPMT</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SHUSER</Name>
<Type>simple</Type>
<Simple>SHUSER</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SHUSR0</Name>
<Type>simple</Type>
<Script>{conn.SHUSR0}</Script>
<Simple>SHUSR0</Simple>
<SubstitutionTemplate>{conn.SHUSR0}</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>new_whatnoun</Name>
<Type>advanced</Type>
<Enabled>true</Enabled>
<Script>ret.value = "UNKNOWN";</Script>
<Simple>new_whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>new_whatverb</Name>
<Type>advanced</Type>
<Script>ret.value = "UNKNOWN";</Script>
<Simple>new_whatverb</Simple>
<SubstitutionTemplate>ret.value = conn.getAttribute("new_whatverb");</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>new_when</Name>
<Type>advanced</Type>
<Script>ret.value = "UNKNOWN";</Script>
<Simple>new_when</Simple>
<SubstitutionTemplate>ret.value = conn.getAttribute("new_when");</SubstitutionTemplate>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<DeltaSettings>
<Enabled>true</Enabled>
<UniqueAttribute>SHUSER+SHMKEY+SHUPMJ+SHUPMT</UniqueAttribute>
<FilePath>F9312Delta</FilePath>
<ReadDeleted>true</ReadDeleted>
<RemoveDeleted>true</RemoveDeleted>
<WhenToCommit>On end of AL cycle</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
<SchemaItem>
<Name>SHCHGF</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SHDTOFF</Name>
<Syntax>java.math.BigDecimal</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SHEVSTAT</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SHEVTYP</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SHJOBN</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SHMKEY</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SHPID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SHSECF1</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SHSECF2</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SHSECV3</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SHSECV4</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SHTMOFF</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SHUPMJ</Name>
<Syntax>java.math.BigDecimal</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SHUPMT</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SHUSER</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SHUSR0</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
<parameter name="initreconnect">false</parameter>
<parameter name="numberOfRetries">1</parameter>
<parameter name="retryDelay">10</parameter>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerEF>
<ContainerDF name="DataFlowContainer">
<Connector name="xformdate">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[// Transform date - Table F9312		Use "SHUPMJ" + "SHUPMT"
//
// Filename:	xformdate.js
//
// Abstract:	Transform JDE Julian date to TDI format of YYYY-MM-DDTHH:MM:SS+HH:MM
//				The JDE Julian format is CYYDDD
//
// Usage:		TDI internal script component
//
// Author:		IBM
//
// History:		v0.8	Original Version 				January 26, 2009
//
//				v0.9	Modified 'work' object
//						Cleanup							January 28, 2009
//
//				v1.0	Added conditional to
//						check for 'H'our = 00			February 02, 2009
//
//				v1.1	Compensated for bogus data		February 27, 2009
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################
//
// var juldate = work.getAttribute("DATE").getValue(0).toString();
//

var juldate = work.getString("SHUPMJ");

// juldate is in the format CYYDDD

//
// var mytime = work.getAttribute("DATE").getValue(0).toString();
//

var mytime = work.getString("SHUPMT");

// mytime is in the format HHMMSS.s

var CC,Y,M,D,H,M,min,S,sec,O,O1,O2,myreturn;

// Goal is to have this format 2003-07-18T14:22:01-02:00 
// or YYYY-MM-DDTHH:MM:SS+HH:MM
// the T is a literal 'T' and the +HH:MM is the GMT offset (can be plus or minus)

function twoDigits(num){
	//returns a string that has a 0 before it if it's less than 10
	//returns a -1 if the number is less than zero (error condition)
	num = parseInt(num);
	if((num < 10) && (num >= 0)){
		return( "0" + num.toString());
	} else if(num < 0){
		return( -1 );
	} else {
		return(num.toString());
	}
}

if (parseInt(juldate) >= 100000){
	CC = 20
} else {
	CC = 19;
}
Y = CC.toString() + juldate.substring(1,3);

var d = new Date(Y,0,1);
var dd = new Date((86400000 * (juldate.substr(3) - 1)) + d.getTime());
// dd now has the correct year, month and day.
M = twoDigits(dd.getMonth() + 1);
D = twoDigits(dd.getDate());

var i = mytime.indexOf(".");
sec = twoDigits(mytime.substr(i+1));
S = twoDigits(mytime.substring(i-2,i));
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if (S > 59) {
	S == '00';
}
min = twoDigits(mytime.substring(i-4,i-2));
if (i <= 5) {
	H = '00';
} else {
	H = twoDigits(mytime.substring(0,i-4));
}

// offset code
var ddd = new Date();
O1 = twoDigits(Math.floor(ddd.getTimezoneOffset()/60).toString());
O2 = twoDigits((ddd.getTimezoneOffset()%60).toString());
if (ddd.getTimezoneOffset() < 0){
	O = "-" + O1 +":"+ O2;
} else {
	O = "+" + O1 +":"+ O2;
}
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if ((juldate == '0') && (mytime == '0.0')) {
	myreturn = "0000-00-00T00:00:00+00:00";
} else {
	myreturn = Y +"-"+ M +"-"+ D +"T"+ H +":"+ min +":"+ S + O;
}

work.setAttribute("new_when", myreturn);
]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="xlatevnt">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[// Filename:	xlatevent.js
// 
// Abstract:    translate specific "event type" to customer specific ASCII text
//
// Usage:       TDI internal script component
//
// Author:		IBM
//
// History:     v0.8    Original Version			January 26, 2009
//				v0.9	modified declaration		January 30, 2009
//				v1.0	rewrote logic				January 30, 2009
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################
//
// var eventnum = work.getAttribute("SHEVTYP").getValue(0).toString();

var eventnum = work.getString("SHEVTYP");

var worknoun = "UNKNOWN";
var workverb = "UNKNOWN";

switch (eventnum)
{
   case "03 ":

	// Customer given text: "Password Change"

	worknoun = "PASSWORD";
	workverb = "CHANGE";
	break;

   case "04 ":

	// Customer given text: "System Administrator Change"

	worknoun = "SYSTEM ADMINISTRATOR";
	workverb = "CHANGE";
	break;

   case "05 ":

	// Customer given text: "ADD USER"

	worknoun = "USER";
	workverb = "ADD";
	break;

   case "06 ":

	// Customer given text: "Delete User"

	worknoun = "USER";
	workverb = "DELETE";
	break;

   case "07 ":

	// Customer given text: "Add Record, F00950"

	worknoun = "RECORD F00950";
	workverb = "ADD";
	break;

   case "08 ":

	// Customer given text: "Delete Record, F00950"

	worknoun = "RECORD F00950";
	workverb = "DELETE";
	break;

   case "09 ":

	// Customer given text: "Modify Record, F00950"

	worknoun = "RECORD F00950";
	workverb = "MODIFY";
	break;

   case "10 ":

	// Customer given text: "Add User to F0092"

	worknoun = "USER TO F0092";
	workverb = "ADD";
	break;

   case "11 ":

	// Customer given text: "Delete User from F0092"

	worknoun = "USER FROM F0092";
	workverb = "DELETE";
	break;

   case "12 ":

	// Customer given text: "Modify User in F0092"

	worknoun = "USER IN F0092";
	workverb = "MODIFY";
	break;

   case "13 ":

	// Customer given text: "Add User/Role Relationship"

	worknoun = "ADD";
	workverb = "USER/ROLE RELATIONSHIP";
	break;

   case "14 ":

	// Customer given text: "Remove User/Role Relationship"

	worknoun = "USER/ROLE RELATIONSHIP";
	workverb = "REMOVE"
	break;

   default:

	// Default values

	worknoun = "UNDEFINED";
	workverb = "UNDEFINED";
}


work.setAttribute("new_whatnoun", worknoun);

work.setAttribute("new_whatverb", workverb);

]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="trimwhtspc">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[//
// Filename:	trimwhtspc
//
// Abstract:	Trim whitespace/padding
//
// Usage:		TDI Script component
//
// Author:		IBM
//
// History:		Created			January 26, 2009
//
// Note:		
//
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################
//
attnames = work.getAttributeNames();
   for (aname in attnames) {
          attval = work.getObject(aname);
          if (attval && attval.getClass().getName().equals("java.lang.String"))
                   work.setAttribute(aname, attval.trim());
   }]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="W7Connector">
<InheritFrom>/Connectors/W7Connector</InheritFrom>
<ConnectorMode>AddOnly</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="$initialize.1. Insight Import directory">C:\ibm\TCIM\Import</parameter>
<parameter name="$initialize.2. File creation directory">Projects\AJG\Temp</parameter>
<parameter name="$initialize.3. How many events per file"/>
<parameter name="$initialize.4. Minutes before sending events to Insight"/>
<parameter name="$initialize.5. Prefix for W7 import files">F9312_</parameter>
<parameter name="assemblyLine">W7AdapterAL</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Script><![CDATA[if (work.getAttribute("SHSECF1") = "") 
{
	ret.value = "Data Source: JDE F9312";
} 
else 
{
	ret.value = work.getAttribute("SHSECF1");
}
]]></Script>
<Simple>SHSECF1</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Script>ret.value = work.getAttribute("SHUSER");</Script>
<Simple>SHUSR0</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Script>ret.value = work.getAttribute("SHPID");</Script>
<Simple>SHPID</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>advanced</Type>
<Script>ret.value = "USER";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Script><![CDATA[if (conn.getAttribute("SHEVTYP").getValue(0) == "03")
{
 ret.value = "Password Change";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "04")
{
 ret.value = "System Administrator Change";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "05")
{
 ret.value = "Add User";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "06")
{
 ret.value = "Delete User";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "07")
{
 ret.value = "Add Record, F00950";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "08")
{
 ret.value = "Delete Record, F00950";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "09")
{
 ret.value = "Modify Record, F00950";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "10")
{
 ret.value = "Add User to F0092";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "11")
{
 ret.value = "Delete User from F0092";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "12")
{
 ret.value = "Modify User in F0092";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "13")
{
 ret.value = "Add User/Role Relationship";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "14")
{
 ret.value = "Remove User/Role Relationship";
}
else
{
 ret.value = "UNDEF: No translation available";
}
]]></Script>
<Simple>new_whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Script>ret.value = work.getAttribute("SHEVSTAT");</Script>
<Simple>SHEVSTAT</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>simple</Type>
<Script><![CDATA[if (conn.getAttribute("SHEVTYP").getValue(0) == "03")
{
 ret.value = "Password Change";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "04")
{
 ret.value = "System Administrator Change";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "05")
{
 ret.value = "Add User";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "06")
{
 ret.value = "Delete User";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "07")
{
 ret.value = "Add Record, F00950";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "08")
{
 ret.value = "Delete Record, F00950";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "09")
{
 ret.value = "Modify Record, F00950";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "10")
{
 ret.value = "Add User to F0092";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "11")
{
 ret.value = "Delete User from F0092";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "12")
{
 ret.value = "Modify User in F0092";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "13")
{
 ret.value = "Add User/Role Relationship";
}
else if (conn.getAttribute("SHEVTYP").getValue(0) == "14")
{
 ret.value = "Remove User/Role Relationship";
}
else
{
 ret.value = "UNDEF: No translation available";
}
]]></Script>
<Simple>new_whatverb</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Script><![CDATA[// ret.value = work.getAttribute("when");
ret.value = work.getAttribute("SHUPMJ") + "T" + work.getAttribute("SHUPMT");]]></Script>
<Simple>new_when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Script>ret.value = work.getAttribute("SHJOBN");</Script>
<Simple>SHJOBN</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Script>ret.value = work.getAttribute("SHJOBN");</Script>
<Simple>SHJOBN</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>advanced</Type>
<Script>ret.value = "F9312";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE"</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE"</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE"</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Script><![CDATA[ret.value = work.getAttribute("SHUSER");
]]></Script>
<Simple>SHUSER</Simple>
<SubstitutionTemplate><![CDATA[
]]></SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Script>ret.value = work.getAttribute("SHUSR0");</Script>
<Simple>SHUSER</Simple>
</AttributeMapItem>
</AttributeMap>
<DeltaSettings>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerDF>
<ThreadOptions/>
<Operations/>
<InitParams>
<Schema name="AssemblyLineInitParams"/>
</InitParams>
</AssemblyLine>
<AssemblyLine name="F00950AL">
<Settings>
<parameter name="ALPoolSettingsDialog">showALPoolSettings</parameter>
<parameter name="automapattributes">false</parameter>
<parameter name="createTombstones">false</parameter>
<parameter name="debug">false</parameter>
<parameter name="includeGlobalPrologs">true</parameter>
<parameter name="nullBehaviorDialog">showNullBehavior</parameter>
</Settings>
<Hooks>
<Hook>
<Name>epilog2</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>onsuccess</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>prolog0</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<LogConfig/>
<ContainerEF name="EntryFeedContainer">
<Connector name="ReadF00950">
<UserComment><![CDATA[ReadF00950 - An iterator Feed designed to gather input from the following data sources:

	[FSCHNG, FSDTAI, FSFRDV, FSJOBN, FSMUSE, FSOBNM, FSPID, FSSETY, FSSY, FSUPMJ, FSUPMT, FSUSER, new_when]

The "new_when" entry is a custom attribute designed to hold the transformed JDE date and time to the required ITCIM format.

The "Delta" entry is configured with the "Unique Attribute Name" derived from the following Primary/Unique database keys:

	FSUSER+FSSETY+FSOBNM+FSDTAI+FSFRDV+FSSY
]]></UserComment>
<InheritFrom>system:/Connectors/ibmdi.JDBC</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="jdbcDriver">com.microsoft.sqlserver.jdbc.SQLServerDriver</parameter>
<parameter name="jdbcLogin">s-TCIM</parameter>
<parameter name="jdbcPassword">s-TCIM</parameter>
<parameter name="jdbcPreparedStatement">true</parameter>
<parameter name="jdbcSchema">sy811</parameter>
<parameter name="jdbcSource">jdbc:sqlserver://10.252.6.128:1433;databasename=PS811</parameter>
<parameter name="jdbcTable">F00950</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>FSCHNG</Name>
<Type>simple</Type>
<Simple>FSCHNG</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSDTAI</Name>
<Type>simple</Type>
<Simple>FSDTAI</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSFRDV</Name>
<Type>simple</Type>
<Simple>FSFRDV</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSJOBN</Name>
<Type>simple</Type>
<Simple>FSJOBN</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSMUSE</Name>
<Type>simple</Type>
<Simple>FSMUSE</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSOBNM</Name>
<Type>simple</Type>
<Simple>FSOBNM</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSPID</Name>
<Type>simple</Type>
<Simple>FSPID</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSSETY</Name>
<Type>simple</Type>
<Simple>FSSETY</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSSY</Name>
<Type>simple</Type>
<Simple>FSSY</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSTHDV</Name>
<Type>simple</Type>
<Simple>FSTHDV</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSUPMJ</Name>
<Type>simple</Type>
<Simple>FSUPMJ</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSUPMT</Name>
<Type>simple</Type>
<Simple>FSUPMT</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSUSER</Name>
<Type>simple</Type>
<Simple>FSUSER</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>new_when</Name>
<Type>advanced</Type>
<Script>ret.value = "UNKNOWN";</Script>
<Simple>new_when</Simple>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<DeltaSettings>
<Enabled>true</Enabled>
<UniqueAttribute>FSUSER+FSSETY+FSOBNM+FSDTAI+FSFRDV+FSSY</UniqueAttribute>
<FilePath>F00950Delta</FilePath>
<ReadDeleted>true</ReadDeleted>
<RemoveDeleted>true</RemoveDeleted>
<ReturnUnchanged>false</ReturnUnchanged>
<DeltaFastAlgorithm>false</DeltaFastAlgorithm>
<WhenToCommit>On end of AL cycle</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
<SchemaItem>
<Name>FSA</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSADDC</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSATN1</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSATN2</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSATN3</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSCHNG</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSDLT</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSDTAI</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSEXITID</Name>
<Syntax>java.math.BigDecimal</Syntax>
<NativeSyntax>numeric</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSFMNM</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSFRDV</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSFUNO</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSICPY</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSINSL</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSIOK</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSIUPT</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSJOBN</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSMUSE</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSOBID</Name>
<Syntax>java.math.BigDecimal</Syntax>
<NativeSyntax>numeric</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSOBNM</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSOWDI</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSPID</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSPTH</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSRUN</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSSETY</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSSY</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSTABID</Name>
<Syntax>java.math.BigDecimal</Syntax>
<NativeSyntax>numeric</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSTEXTID</Name>
<Syntax>java.math.BigDecimal</Syntax>
<NativeSyntax>numeric</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSTHDV</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSUPMJ</Name>
<Syntax>java.math.BigDecimal</Syntax>
<NativeSyntax>numeric</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSUPMT</Name>
<Syntax>java.lang.Double</Syntax>
<NativeSyntax>float</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSUSER</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FSVWYN</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
<parameter name="initreconnect">false</parameter>
<parameter name="numberOfRetries">1</parameter>
<parameter name="retryDelay">10</parameter>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerEF>
<ContainerDF name="DataFlowContainer">
<Connector name="xformdate">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[// Transform date - Table F00950	Use "FSUPMJ" + "FSUPMT"
//
// Filename:	xformdate.js
//
// Abstract:	Transform JDE Julian date to TDI format of YYYY-MM-DDTHH:MM:SS+HH:MM
//				The JDE Julian format is CYYDDD
//
// Usage:		TDI internal script component
//
// Author:		IBM
//
// History:		v0.8	Original Version 				January 26, 2009
//
//				v0.9	Modified 'work' object
//						Cleanup							January 28, 2009
//
//				v1.0	Added conditional to
//						check for 'H'our = 00			February 02, 2009
//
//				v1.1	Compensated for bogus data		February 27, 2009
//
// #######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
//  All Rights Reserved
//  Licensed Materials - Property of IBM
//  IBM Confidential Information
// 
//  Unpublished and Unsupported work
// 
//  Provided by IBM Software Services for Tivoli (ISST)
// ######################################################################
// 
//  Warranty Disclaimer:
// 
//  IBM makes no warranty or representations about the suitability of the 
//  software for any purpose. It is provided "AS IS" without any express or 
//  implied warranty, including the implied warranties of merchantability, 
//  fitness for a particular purpose and non-infringement. IBM shall not be 
//  liable for any direct, indirect, special or consequential damages resulting 
//  from the loss of use, data or projects, whether in an action of contract or 
//  tort, arising out of or in connection with the use or performance of this 
//  software.
// 
// ######################################################################
//
//
// var juldate = work.getAttribute("DATE").getValue(0).toString();
//

var juldate = work.getString("FSUPMJ");

// juldate is in the format CYYDDD

//
//  var mytime = work.getAttribute("DATE").getValue(0).toString();
//

var mytime = work.getString("FSUPMT");

// mytime is in the format HHMMSS.s

var CC,Y,M,D,H,M,min,S,sec,O,O1,O2,myreturn;

// Goal is to have this format 2003-07-18T14:22:01-02:00 
// or YYYY-MM-DDTHH:MM:SS+HH:MM
// the T is a literal 'T' and the +HH:MM is the GMT offset (can be plus or minus)

function twoDigits(num){
	//returns a string that has a 0 before it if it's less than 10
	//returns a -1 if the number is less than zero (error condition)
	num = parseInt(num);
	if((num < 10) && (num >= 0)){
		return( "0" + num.toString());
	} else if(num < 0){
		return( -1 );
	} else {
		return(num.toString());
	}
}

if (parseInt(juldate) >= 100000){
	CC = 20
} else {
	CC = 19;
}
Y = CC.toString() + juldate.substring(1,3);

var d = new Date(Y,0,1);
var dd = new Date((86400000 * (juldate.substr(3) - 1)) + d.getTime());
// dd now has the correct year, month and day.
M = twoDigits(dd.getMonth() + 1);
D = twoDigits(dd.getDate());

var i = mytime.indexOf(".");
sec = twoDigits(mytime.substr(i+1));
S = twoDigits(mytime.substring(i-2,i));
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if (S > 59) {
	S == '00';
}
min = twoDigits(mytime.substring(i-4,i-2));
if (i <= 5) {
	H = '00';
} else {
	H = twoDigits(mytime.substring(0,i-4));
}

// offset code
var ddd = new Date();
O1 = twoDigits(Math.floor(ddd.getTimezoneOffset()/60).toString());
O2 = twoDigits((ddd.getTimezoneOffset()%60).toString());
if (ddd.getTimezoneOffset() < 0){
	O = "-" + O1 +":"+ O2;
} else {
	O = "+" + O1 +":"+ O2;
}

//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if ((juldate == '0') && (mytime == '0.0')) {
	myreturn = "0000-00-00T00:00:00+00:00";
} else {
	myreturn = Y +"-"+ M +"-"+ D +"T"+ H +":"+ min +":"+ S + O;
}

work.setAttribute("new_when", myreturn);
]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="trimwhtspc">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[//
//
// Filename:	trmwhtspc
//
// Abstract:	trim/remove whitespace(padding)
//
// Usage:		TDI Script component
//
// Author:		IBM
//
// History:		Created 	January 26, 2009
//
// Note:		
//
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################

//
attnames = work.getAttributeNames();
   for (aname in attnames) {
          attval = work.getObject(aname);
          if (attval && attval.getClass().getName().equals("java.lang.String"))
                   work.setAttribute(aname, attval.trim());
   }]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="W7Connector">
<InheritFrom>/Connectors/W7Connector</InheritFrom>
<ConnectorMode>AddOnly</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="$initialize.1. Insight Import directory">C:\ibm\TCIM\Import</parameter>
<parameter name="$initialize.5. Prefix for W7 import files">F00950_</parameter>
<parameter name="debug">false</parameter>
<parameter name="shareLog">true</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>FSSY</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>FSOBNM</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>FSPID</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>FSMUSE</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>FSSETY</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>advanced</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>ret.value = "SUCCESS";</Script>
<Simple>whatsuccess</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>ret.value = work.getAttribute("SHEVTYP");</Script>
<Simple>FSCHNG</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>new_when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>FSJOBN</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>FSJOBN</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>advanced</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>ret.value = "F00950";</Script>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>advanced</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>ret.value = work.getString("FSTDTAI") +"/"+ work.getString("FSTHDV") +"/"+ work.getString("FSFRDV");</Script>
<Simple>wheretoname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>advanced</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>ret.value = "JDE";</Script>
<Simple>wheretotype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>advanced</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>ret.value = "JDE";</Script>
<Simple>wheretype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>FSUSER</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>FSUSER</Simple>
</AttributeMapItem>
</AttributeMap>
<DeltaSettings>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerDF>
<ThreadOptions/>
<Operations/>
<InitParams>
<Schema name="AssemblyLineInitParams"/>
</InitParams>
</AssemblyLine>
<AssemblyLine name="F96215AL">
<Settings>
<parameter name="ALPoolSettingsDialog">showALPoolSettings</parameter>
<parameter name="automapattributes">false</parameter>
<parameter name="createTombstones">false</parameter>
<parameter name="debug">false</parameter>
<parameter name="includeGlobalPrologs">true</parameter>
<parameter name="nullBehaviorDialog">showNullBehavior</parameter>
</Settings>
<Hooks>
<Hook>
<Name>epilog2</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>onsuccess</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>prolog0</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<LogConfig/>
<ContainerEF name="EntryFeedContainer">
<Connector name="ReadF96215">
<InheritFrom>system:/Connectors/ibmdi.JDBC</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="iteratorStateKey">EOD</parameter>
<parameter name="jdbcDriver">com.microsoft.sqlserver.jdbc.SQLServerDriver</parameter>
<parameter name="jdbcExposeNullValues">true</parameter>
<parameter name="jdbcLogin">s-TCIM</parameter>
<parameter name="jdbcPassword">s-TCIM</parameter>
<parameter name="jdbcPreparedStatement">true</parameter>
<parameter name="jdbcSchema">sy811</parameter>
<parameter name="jdbcSource">jdbc:sqlserver://10.252.6.128:1433;databasename=PS811</parameter>
<parameter name="jdbcTable">F96215</parameter>
<parameter name="removeProcessed">false</parameter>
<parameter name="stateKeyPersistence">End of cycle</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>HHBLDDTE</Name>
<Type>simple</Type>
<Simple>HHBLDDTE</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HHBLDSTS</Name>
<Type>simple</Type>
<Simple>HHBLDSTS</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HHBLDTME</Name>
<Type>simple</Type>
<Simple>HHBLDTME</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HHDATP</Name>
<Type>simple</Type>
<Simple>HHDATP</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HHJOBN</Name>
<Type>simple</Type>
<Simple>HHJOBN</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HHPATHCD</Name>
<Type>simple</Type>
<Simple>HHPATHCD</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HHPID</Name>
<Type>simple</Type>
<Simple>HHPID</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HHPKGNAME</Name>
<Type>simple</Type>
<Simple>HHPKGNAME</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HHUPMJ</Name>
<Type>simple</Type>
<Simple>HHUPMJ</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HHUPMT</Name>
<Type>simple</Type>
<Simple>HHUPMT</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HHUSER</Name>
<Type>simple</Type>
<Simple>HHUSER</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>bld_date</Name>
<Type>substitution</Type>
<Script>ret.value = "UNKNOWN";</Script>
<Simple>blddate</Simple>
<SubstitutionTemplate>ret.value = "UNKNOWN";</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>bld_time</Name>
<Type>substitution</Type>
<Script>ret.value = "UNKNOWN";</Script>
<Simple>bldtime</Simple>
<SubstitutionTemplate>ret.value = "UNKNOWN";</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>new_when</Name>
<Type>advanced</Type>
<Script>ret.value = "UNKNOWN";</Script>
<Simple>new_when</Simple>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<DeltaSettings>
<Enabled>true</Enabled>
<UniqueAttribute>HHPKGNAME+HHPATHCD+HHDATP+HHBLDDTE+HHBLDTME</UniqueAttribute>
<FilePath>F96215Delta</FilePath>
<ReadDeleted>true</ReadDeleted>
<RemoveDeleted>true</RemoveDeleted>
<WhenToCommit>On end of AL cycle</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
<SchemaItem>
<Name>HHACCUMLOG</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHBLDDOC</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHBLDDTE</Name>
<Syntax>java.math.BigDecimal</Syntax>
<NativeSyntax>numeric</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHBLDFUNC</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHBLDPCK</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHBLDSTS</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHBLDTME</Name>
<Syntax>java.lang.Double</Syntax>
<NativeSyntax>float</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHBLDTYPE</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHCLRDST</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHCMPPKG</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHDATP</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHJOBN</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHPATHCD</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHPID</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHPKG1</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHPKGBULFUT1</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHPKGBULFUT2</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHPKGBULFUT3</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHPKGBULFUT4</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHPKGERROR</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHPKGNAME</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHSTOPBLD</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHSTOPBUSBLD</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHTRNNOBLD</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHUPMJ</Name>
<Syntax>java.math.BigDecimal</Syntax>
<NativeSyntax>numeric</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHUPMT</Name>
<Syntax>java.lang.Double</Syntax>
<NativeSyntax>float</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HHUSER</Name>
<Syntax>java.lang.String</Syntax>
<NativeSyntax>nchar</NativeSyntax>
</SchemaItem>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
<parameter name="initreconnect">false</parameter>
<parameter name="numberOfRetries">1</parameter>
<parameter name="retryDelay">10</parameter>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerEF>
<ContainerDF name="DataFlowContainer">
<Connector name="xformdata">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[//
// Filename:	xformdata.js
//
// Abstract:	Transform JDE Julian date to TDI format of YYYY-MM-DDTHH:MM:SS+HH:MM
//				The JDE Julian format is CYYDDD
//
// Usage:		TDI internal script component - Specific for Table F96215
//
// Author:		IBM
//
// History:		v0.8	Original Version 					January 26, 2009
//
//				v0.9	Modified 'work' object
//						Cleanup								January 28, 2009
//
//				v1.0	Added code to return
//						build date/time for
//						'info' field						February 02, 2009
//
//				v1.1	Added conditional to
//						check for 'H'our = 00				February 02, 2009
//
//				v1.2	Compensated for bogus data			February 27, 2009
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################
//
//	- Table specific reference information
// HHDATP:		java.lang.String		Data Source
// HHBLDDTE:	java.math.BigDecimal	Date Built
// HHBLDTME:	java.lang.Double		Package Build Time
// HHUPMJ:		java.math.BigDecimal	Date updated
// HHUPMT:		java.lang.Double		Time  Last Updated
//
// date fields are in the original format CYYDDD (JDE Julian)
var juldate = work.getString("HHUPMJ");
var blddate = work.getString("HHBLDDTE");

//
// var juldate = work.getAttribute("DATE").getValue(0).toString();
//
// var mytime = work.getAttribute("DATE").getValue(0).toString();
//

// mytime and bldtime are in the  original format HHMMSS.s
var mytime = work.getString("HHUPMT");
var bldtime = work.getString("HHBLDTME");

// variable declarations
var CC,C1,Y,Y1,M,D,D1,H,H1,M,M1,min,min1,S,S1,sec,sec1,O,O1,O2,retupdate,retbuild,retbldtme,retblddte;

// Goal is to have this format 2003-07-18T14:22:01-02:00  for TCIM
// or YYYY-MM-DDTHH:MM:SS+HH:MM
// the T is a literal 'T' and the +HH:MM is the GMT offset (can be plus or minus)

function twoDigits(num){
	//returns a string that has a 0 before it if it's less than 10
	//returns a -1 if the number is less than zero (error condition)
	num = parseInt(num);
	if((num < 10) && (num >= 0)){
		return( "0" + num.toString());
	} else if(num < 0){
		return( -1 );
	} else {
		return(num.toString());
	}
}

if (parseInt(juldate) >= 100000){
	CC = 20
} else {
	CC = 19;
}
Y = CC.toString() + juldate.substring(1,3);

if (parseInt(blddate) >= 100000) {
	C1 = 20
} else {
	C1 = 19;
}
Y1 = C1.toString() + blddate.substring(1,3);

// build correct year, month, and day
var d = new Date(Y,0,1);
var d1 = new Date(Y1,0,1);
var dd = new Date((86400000 * (juldate.substr(3) - 1)) + d.getTime());
var dd1 = new Date((86400000 * (blddate.substr(3) - 1)) + d1.getTime());
//

// month and day setup - juldate, blddate
M = twoDigits(dd.getMonth() + 1);
M1 = twoDigits(dd1.getMonth() + 1);
D = twoDigits(dd.getDate());
D1 = twoDigits(dd1.getDate());

// mytime setup
var i = mytime.indexOf(".");
sec = twoDigits(mytime.substr(i+1));
S = twoDigits(mytime.substring(i-2,i));
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if (S > 59) {
	S == '00';
}
min = twoDigits(mytime.substring(i-4,i-2));
if (i <= 5) {
	H = '00';
} else {
	H = twoDigits(mytime.substring(0,i-4));
}
//

// bldtime setup
var i1 = bldtime.indexOf(".");
sec1 = twoDigits(bldtime.substr(i1+1));
S1 = twoDigits(bldtime.substring(i1-2,i1));
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if (S1 > 59) {
	S1 == '00';
}
min1 = twoDigits(bldtime.substring(i1-4,i1-2));
if (i1 <= 5) {
	H1 = '00';
} else {
	H1 = twoDigits(mytime.substring(0,i-4));
}
//

// offset code
var ddd = new Date();
O1 = twoDigits(Math.floor(ddd.getTimezoneOffset()/60).toString());
O2 = twoDigits((ddd.getTimezoneOffset()%60).toString());
if (ddd.getTimezoneOffset() < 0){
	O = "-" + O1 +":"+ O2;
} else {
	O = "+" + O1 +":"+ O2;
}
//
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if ((juldate == '0') && (mytime == '0.0')) {
	myreturn = "0000-00-00T00:00:00+00:00";
} else {
	myreturn = Y +"-"+ M +"-"+ D +"T"+ H +":"+ min +":"+ S + O;
}
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if ((blddate == '0') && (bldtime == '0.0')) {
	retbldtme = "00-00-00";
	retblddte = "00:00:00+O";
} else {
	retbldtme = Y1 +"-"+ M1 +"-"+ D1;
	retblddte = H1 +":"+ min1 +":"+ S1 + O;
}

work.setAttribute("new_when", myreturn);
work.setAttribute("bld_time", retbldtme);
work.setAttribute("bld_date", retblddte);
]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="trimwhtspc">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[//
// Filename:	trimwhtspc	
//
// Abstract:	Trim whitespace/padding
//
// Usage:		TDI Script component
//
// Author:		IBM
//
// History:		Created			January 26, 2009
//
// Note:		
//
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################
//
attnames = work.getAttributeNames();
   for (aname in attnames) {
          attval = work.getObject(aname);
          if (attval && attval.getClass().getName().equals("java.lang.String"))
                   work.setAttribute(aname, attval.trim());
   }]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="W7Connector">
<InheritFrom>/Connectors/W7Connector</InheritFrom>
<ConnectorMode>AddOnly</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="$initialize.1. Insight Import directory">C:\ibm\TCIM\Import</parameter>
<parameter name="$initialize.2. File creation directory">Projects\AJG\Temp</parameter>
<parameter name="$initialize.3. How many events per file"/>
<parameter name="$initialize.4. Minutes before sending events to Insight"/>
<parameter name="$initialize.5. Prefix for W7 import files">F96215_</parameter>
<parameter name="assemblyLine">W7AdapterAL</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>info</Name>
<Type>advanced</Type>
<Script><![CDATA[// Info: Data Source, Date Built, Package Build Time
ret.value = work.getString("HHDATP") +" "+ work.getString("bld_date") +" "+ work.getString("bld_time");]]></Script>
<SubstitutionTemplate><![CDATA[// info - Table F96215
//
// Data Source, Date Built, Package Build Time

ret.value = "[DATASOURCE]: " + work.getString("HHDATP")
          + "[DATEBUILD]: " + work.getString("bld_time")
          + "[PKGBLDTIME]: " + work.getString("bld_date");]]></SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>HHPKGNAME</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>HHPATHCD</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>advanced</Type>
<Script>ret.value = "DATA";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Simple>HHDATP</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Simple>HHBLDSTS</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>advanced</Type>
<Script>ret.value = "CHANGE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Script>{work.new_when}</Script>
<Simple>new_when</Simple>
<SubstitutionTemplate>{work.new_when}</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>HHJOBN</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>advanced</Type>
<Script>ret.value = "F96215";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>HHUSER</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>HHUSER</Simple>
</AttributeMapItem>
</AttributeMap>
<DeltaSettings>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerDF>
<ThreadOptions/>
<Operations>
<Operation name="putEntry">
<Schema name="Input">
<SchemaItem>
<Name>info</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatpath</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhattype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatnoun</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatsuccess</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatverb</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>when</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromtype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherename</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretoname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretotype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whologonname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whorealname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<Schema name="Output">
<SchemaItem>
<Name>info</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatpath</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhattype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatnoun</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatsuccess</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatverb</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>when</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromtype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherename</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretoname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretotype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whologonname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whorealname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<AttributeMap name="Input">
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Simple>info</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>onwhatname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>onwhatpath</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>simple</Type>
<Simple>onwhattype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Simple>whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Simple>whatsuccess</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>simple</Type>
<Simple>whatverb</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Simple>when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>wherefromname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>wherefromtype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>simple</Type>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>simple</Type>
<Simple>wheretoname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>simple</Type>
<Simple>wheretotype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>simple</Type>
<Simple>wheretype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>whologonname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>whorealname</Simple>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Simple>info</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>onwhatname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>onwhatpath</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>simple</Type>
<Simple>onwhattype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Simple>whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Simple>whatsuccess</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>simple</Type>
<Simple>whatverb</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Simple>when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>wherefromname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>wherefromtype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>simple</Type>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>simple</Type>
<Simple>wheretoname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>simple</Type>
<Simple>wheretotype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>simple</Type>
<Simple>wheretype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>whologonname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>whorealname</Simple>
</AttributeMapItem>
</AttributeMap>
<Public>true</Public>
</Operation>
<Operation name="Default">
<Schema name="Input"/>
<Schema name="Output"/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<Public>true</Public>
</Operation>
</Operations>
<InitParams>
<Schema name="AssemblyLineInitParams">
<SchemaItem>
<Name>1. Insight Import directory</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>2. File creation directory</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>3. How many events per file</Name>
<NativeSyntax>Number</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>4. Minutes before sending events to Insight</Name>
<NativeSyntax>Number</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>5. Prefix for W7 import files</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
</Schema>
</InitParams>
</AssemblyLine>
<AssemblyLine name="F96225AL">
<Settings>
<parameter name="ALPoolSettingsDialog">showALPoolSettings</parameter>
<parameter name="automapattributes">false</parameter>
<parameter name="createTombstones">false</parameter>
<parameter name="debug">false</parameter>
<parameter name="includeGlobalPrologs">true</parameter>
<parameter name="nullBehaviorDialog">showNullBehavior</parameter>
</Settings>
<Hooks>
<Hook>
<Name>epilog2</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>onsuccess</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>prolog0</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<LogConfig/>
<ContainerEF name="EntryFeedContainer">
<Connector name="ReadF96225">
<InheritFrom>system:/Connectors/ibmdi.JDBC</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="jdbcDriver">com.microsoft.sqlserver.jdbc.SQLServerDriver</parameter>
<parameter name="jdbcLogin">s-TCIM</parameter>
<parameter name="jdbcPassword">s-TCIM</parameter>
<parameter name="jdbcPreparedStatement">true</parameter>
<parameter name="jdbcSchema">sy811</parameter>
<parameter name="jdbcSelect"><![CDATA[SELECT * FROM SY811.F96225 
WHERE HDPKGNAME IN (SELECT HHPKGNAME FROM SY811.F96215 
WHERE HHPATHCD='PD811') 
AND HDPATHCD='PD811'  AND HDDATP!='CLIENT' 
AND HDPKGOPER='04']]></parameter>
<parameter name="jdbcSource">jdbc:sqlserver://10.252.6.128:1433;databasename=PS811</parameter>
<parameter name="jdbcTable"/>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>HDBLDDTE</Name>
<Type>simple</Type>
<Simple>HDBLDDTE</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HDBLDTME</Name>
<Type>simple</Type>
<Simple>HDBLDTME</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HDDATP</Name>
<Type>simple</Type>
<Simple>HDDATP</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HDJOBN</Name>
<Type>simple</Type>
<Simple>HDJOBN</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HDPATHCD</Name>
<Type>simple</Type>
<Simple>HDPATHCD</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HDPID</Name>
<Type>simple</Type>
<Simple>HDPID</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HDPKGNAME</Name>
<Type>simple</Type>
<Simple>HDPKGNAME</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HDPKGOPER</Name>
<Type>simple</Type>
<Simple>HDPKGOPER</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HDPKGOPTION</Name>
<Type>simple</Type>
<Simple>HDPKGOPTION</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HDUPMJ</Name>
<Type>simple</Type>
<Simple>HDUPMJ</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HDUPMT</Name>
<Type>simple</Type>
<Simple>HDUPMT</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HDUSER</Name>
<Type>simple</Type>
<Simple>HDUSER</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>HDVERS</Name>
<Type>simple</Type>
<Simple>HDVERS</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>bld_time</Name>
<Type>advanced</Type>
<Script>ret.value = "UNKNOWN";</Script>
<Simple>bld_time</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>new_when</Name>
<Type>advanced</Type>
<Script>ret.value = "UNKNOWN";</Script>
<Simple>new_when</Simple>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<DeltaSettings>
<Enabled>true</Enabled>
<UniqueAttribute>HDPKGNAME+HDPATHCD+HDDATP+HDBLDDTE+HDBLDTME+HDPKGOPTION+HDVERS</UniqueAttribute>
<FilePath>F96225Delta</FilePath>
<ReadDeleted>true</ReadDeleted>
<RemoveDeleted>true</RemoveDeleted>
<WhenToCommit>On end of AL cycle</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
<SchemaItem>
<Name>HDBLDDTE</Name>
<Syntax>java.math.BigDecimal</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDBLDTME</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDDATP</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDJOBN</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDPACKERROR</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDPACKREAD</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDPACKSTS</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDPACKWRIT</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDPATHCD</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDPID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDPKGBULFUT5</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDPKGBULFUT6</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDPKGBULFUT7</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDPKGBULFUT8</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDPKGNAME</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDPKGOPER</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDPKGOPTION</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDSPECERROR</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDSPECREAD</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDSPECSTS</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDSPECWRIT</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDUPMJ</Name>
<Syntax>java.math.BigDecimal</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDUPMT</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDUSER</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HDVERS</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
<parameter name="initreconnect">false</parameter>
<parameter name="numberOfRetries">1</parameter>
<parameter name="retryDelay">10</parameter>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerEF>
<ContainerDF name="DataFlowContainer">
<Connector name="xformdate">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[// Transform date - Table F96225	Use "HDUPMJ" + "HDUPMT"
//
// Transform information - date and time
//
// Filename:	xformdata.js
//
// Abstract:	Transform JDE Julian date to TDI format of YYYY-MM-DDTHH:MM:SS+HH:MM
//				The JDE Julian format is CYYDDD
//					Specific for table	F96225
//
// Usage:		TDI internal script component 
//
// Author:		IBM
//
// History:		v0.8	Original Version 				January 26, 2009
//
//				v0.9	Modified 'work' object
//						Cleanup							January 28, 2009
//
//				v1.0	Added code to return
//						build date/time for
//						'info' field					February 02, 2009
//
//				v1.1	Added conditional to
//						check for 'H'our = 00			February 02, 2009
//
//				v1.2	Compensated for bogus data		February 27, 2009
//
//
//	- Table specific reference information
// HDBLDTME:	java.lang.Double		Package Build Time
// HDBLDDTE:	java.math.BigDecimal	Package Build Date
// HDUPMJ:		java.math.BigDecimal	Date updated
// HDUPMT:		java.lang.Double		Time Last updated
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################
//
//
// date fields are in the original format CYYDDD (JDE Julian)
var juldate = work.getString("HDUPMJ");
var blddate = work.getString("HDBLDDTE");

//
// var juldate = work.getAttribute("DATE").getValue(0).toString();
//
// var mytime = work.getAttribute("DATE").getValue(0).toString();
//

// mytime and bldtime are in the  original format HHMMSS.s
var mytime = work.getString("HDUPMT");
var bldtime = work.getString("HDBLDTME");

// variable declarations
var CC,C1,Y,Y1,M,D,D1,H,H1,M,M1,min,min1,S,S1,sec,sec1,O,O1,O2,retupdate,retbuild,retbldtme,retblddte;

// Goal is to have this format 2003-07-18T14:22:01-02:00  for TCIM
// or YYYY-MM-DDTHH:MM:SS+HH:MM
// the T is a literal 'T' and the +HH:MM is the GMT offset (can be plus or minus)

function twoDigits(num){
	//returns a string that has a 0 before it if it's less than 10
	//returns a -1 if the number is less than zero (error condition)
	num = parseInt(num);
	if((num < 10) && (num >= 0)){
		return( "0" + num.toString());
	} else if(num < 0){
		return( -1 );
	} else {
		return(num.toString());
	}
}

if (parseInt(juldate) >= 100000){
	CC = 20
} else {
	CC = 19;
}
Y = CC.toString() + juldate.substring(1,3);

if (parseInt(blddate) >= 100000) {
	C1 = 20
} else {
	C1 = 19;
}
Y1 = C1.toString() + blddate.substring(1,3);

// build correct year, month, and day
var d = new Date(Y,0,1);
var d1 = new Date(Y1,0,1);
var dd = new Date((86400000 * (juldate.substr(3) - 1)) + d.getTime());
var dd1 = new Date((86400000 * (blddate.substr(3) - 1)) + d1.getTime());
//

// month and day setup - juldate, blddate
M = twoDigits(dd.getMonth() + 1);
M1 = twoDigits(dd1.getMonth() + 1);
D = twoDigits(dd.getDate());
D1 = twoDigits(dd1.getDate());

// mytime setup
var i = mytime.indexOf(".");
sec = twoDigits(mytime.substr(i+1));
S = twoDigits(mytime.substring(i-2,i));
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if (S > 59) {
	S = '00';
}
min = twoDigits(mytime.substring(i-4,i-2));
if (i <= 5) {
	H = '00';
} else {
	H = twoDigits(mytime.substring(0,i-4));
}
//

// bldtime setup
var i1 = bldtime.indexOf(".");
sec1 = twoDigits(bldtime.substr(i1+1));
S1 = twoDigits(bldtime.substring(i1-2,i1));
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if (S1 > 59) {
	S1 = '00';
}
min1 = twoDigits(bldtime.substring(i1-4,i1-2));
if (i1 <= 5) {
	H1 = '00';
} else {
	H1 = twoDigits(bldtime.substring(0,i1-4));
}
//

// offset code
var ddd = new Date();
O1 = twoDigits(Math.floor(ddd.getTimezoneOffset()/60).toString());
O2 = twoDigits((ddd.getTimezoneOffset()%60).toString());
if (ddd.getTimezoneOffset() < 0){
	O = "-" + O1 +":"+ O2;
} else {
	O = "+" + O1 +":"+ O2;
}
//
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if ((juldate == '0') && (mytime == '0.0')) {
	myreturn = "0000-00-00T00:00:00+00:00";
} else {
	myreturn = Y +"-"+ M +"-"+ D +"T"+ H +":"+ min +":"+ S + O;
}
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if ((blddate == '0') && (bldtme == '0.0')) {
	bldtme = "0000-00-00T00";
} else {
	retbldtme = Y1 +"-"+ M1 +"-"+ D1;
}

work.setAttribute("new_when", myreturn);
work.setAttribute("bld_time", retbldtme);
]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="trimwhtspc">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[//
// Filename:	trimwhtspc
//
// Abstract:	Trim whitespace/padding
//
// Usage:		TDI Script component
//
// Author:		IBM
//
// History:		Created			January 26, 2009
//
// Note:		
//
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################
//
attnames = work.getAttributeNames();
   for (aname in attnames) {
          attval = work.getObject(aname);
          if (attval && attval.getClass().getName().equals("java.lang.String"))
                   work.setAttribute(aname, attval.trim());
   }]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="W7Connector">
<InheritFrom>/Connectors/W7Connector</InheritFrom>
<ConnectorMode>AddOnly</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="$initialize.1. Insight Import directory">C:\ibm\TCIM\Import</parameter>
<parameter name="$initialize.2. File creation directory">Projects\AJG\Temp</parameter>
<parameter name="$initialize.3. How many events per file"/>
<parameter name="$initialize.4. Minutes before sending events to Insight"/>
<parameter name="$initialize.5. Prefix for W7 import files">F96225_</parameter>
<parameter name="assemblyLine">W7AdapterAL</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>info</Name>
<Type>advanced</Type>
<Script><![CDATA[// Info:	Data Source, Package Build Time, Package Option Name
ret.value = work.getString("HDDATP") +" "+ work.getString("bld_time") +" "+ work.getString("HDPKGOPTION");]]></Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>HDPKGNAME</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Script>ret.value = work.getAttribute("HDPATHCD");</Script>
<Simple>HDPATHCD</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>simple</Type>
<Script>ret.value = work.getAttribute("HDPKGOPTION");</Script>
<Simple>HDPKGOPTION</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Simple>HDDATP</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Simple>HDPKGOPER</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>advanced</Type>
<Script>ret.value = "CHANGE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Simple>new_when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>HDJOBN</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>HDPID</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>advanced</Type>
<Script>ret.value = "F96225";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>advanced</Type>
<Script><![CDATA[if (work.getString("HDVERS") == ""){
	ret.value = "UNKNOWN";
} else {
	ret.value = work.getString("HDVERS");
}]]></Script>
<Simple>HDVERS</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>advanced</Type>
<Script>ret.value = "Version";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE";</Script>
<SubstitutionTemplate>ret.value = "JDE";</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Script>ret.value = work.getAttribute("HDUSER");</Script>
<Simple>HDUSER</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>HDUSER</Simple>
</AttributeMapItem>
</AttributeMap>
<DeltaSettings>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerDF>
<ThreadOptions/>
<Operations>
<Operation name="putEntry">
<Schema name="Input">
<SchemaItem>
<Name>info</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatpath</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhattype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatnoun</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatsuccess</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatverb</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>when</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromtype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherename</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretoname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretotype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whologonname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whorealname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<Schema name="Output">
<SchemaItem>
<Name>info</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatpath</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhattype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatnoun</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatsuccess</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatverb</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>when</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromtype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherename</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretoname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretotype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whologonname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whorealname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<AttributeMap name="Input">
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Simple>info</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>onwhatname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>onwhatpath</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>simple</Type>
<Simple>onwhattype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Simple>whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Simple>whatsuccess</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>simple</Type>
<Simple>whatverb</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Simple>when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>wherefromname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>wherefromtype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>simple</Type>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>simple</Type>
<Simple>wheretoname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>simple</Type>
<Simple>wheretotype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>simple</Type>
<Simple>wheretype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>whologonname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>whorealname</Simple>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Simple>info</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>onwhatname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>onwhatpath</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>simple</Type>
<Simple>onwhattype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Simple>whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Simple>whatsuccess</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>simple</Type>
<Simple>whatverb</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Simple>when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>wherefromname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>wherefromtype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>simple</Type>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>simple</Type>
<Simple>wheretoname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>simple</Type>
<Simple>wheretotype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>simple</Type>
<Simple>wheretype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>whologonname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>whorealname</Simple>
</AttributeMapItem>
</AttributeMap>
<Public>true</Public>
</Operation>
<Operation name="Default">
<Schema name="Input"/>
<Schema name="Output"/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<Public>true</Public>
</Operation>
</Operations>
<InitParams>
<Schema name="AssemblyLineInitParams">
<SchemaItem>
<Name>1. Insight Import directory</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>2. File creation directory</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>3. How many events per file</Name>
<NativeSyntax>Number</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>4. Minutes before sending events to Insight</Name>
<NativeSyntax>Number</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>5. Prefix for W7 import files</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
</Schema>
</InitParams>
</AssemblyLine>
<AssemblyLine name="F9670AL">
<Settings>
<parameter name="ALPoolSettingsDialog">showALPoolSettings</parameter>
<parameter name="automapattributes">false</parameter>
<parameter name="createTombstones">false</parameter>
<parameter name="debug">false</parameter>
<parameter name="includeGlobalPrologs">true</parameter>
<parameter name="nullBehaviorDialog">showNullBehavior</parameter>
</Settings>
<Hooks>
<Hook>
<Name>epilog2</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>onsuccess</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>prolog0</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<LogConfig/>
<ContainerEF name="EntryFeedContainer">
<Connector name="ReadF9670">
<InheritFrom>system:/Connectors/ibmdi.JDBC</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="jdbcDriver">com.microsoft.sqlserver.jdbc.SQLServerDriver</parameter>
<parameter name="jdbcLogin">s-TCIM</parameter>
<parameter name="jdbcPassword">s-TCIM</parameter>
<parameter name="jdbcPreparedStatement">true</parameter>
<parameter name="jdbcSchema">sy811</parameter>
<parameter name="jdbcSource">jdbc:sqlserver://10.252.6.128:1433;databasename=PS811</parameter>
<parameter name="jdbcTable">F9670</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>SUDL01</Name>
<Type>simple</Type>
<Simple>SUDL01</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SUJOBN</Name>
<Type>simple</Type>
<Simple>SUJOBN</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SUPKGNAME</Name>
<Type>simple</Type>
<Simple>SUPKGNAME</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SURLS</Name>
<Type>simple</Type>
<Simple>SURLS</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SUUPMJ</Name>
<Type>simple</Type>
<Simple>SUUPMJ</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SUUPMT</Name>
<Type>simple</Type>
<Simple>SUUPMT</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SUUSER</Name>
<Type>simple</Type>
<Simple>SUUSER</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>new_when</Name>
<Type>advanced</Type>
<Script>ret.value = "UNKNOWN";</Script>
<Simple>new_when</Simple>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<DeltaSettings>
<Enabled>true</Enabled>
<UniqueAttribute>SUPKGNAME</UniqueAttribute>
<FilePath>F9670Delta</FilePath>
<ReadDeleted>true</ReadDeleted>
<RemoveDeleted>true</RemoveDeleted>
<WhenToCommit>On end of AL cycle</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
<SchemaItem>
<Name>SUDL01</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SUDOCO</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SUFRLS</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SUJOBN</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SUPID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SUPKGNAME</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SURLS</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SUSUDATE</Name>
<Syntax>java.math.BigDecimal</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SUSUFUT1</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SUSUFUT2</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SUSUFUT3</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SUSUFUT4</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SUSUFUT5</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SUSUTYPE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SUTRLS</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SUUPMJ</Name>
<Syntax>java.math.BigDecimal</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SUUPMT</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SUUSER</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
<parameter name="initreconnect">false</parameter>
<parameter name="numberOfRetries">1</parameter>
<parameter name="retryDelay">10</parameter>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerEF>
<ContainerDF name="DataFlowContainer">
<Connector name="xformdate">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[// Transform date - Table F9670		Use "SUUPMJ" + "SUUPMT"
//
// Filename:	xformdate.js
//
// Abstract:	Transform JDE Julian date to TDI format of YYYY-MM-DDTHH:MM:SS+HH:MM
//				The JDE Julian format is CYYDDD
//
// Usage:		TDI internal script component
//
// Author:		IBM
//
// History:		v0.8	Original Version 					January 26, 2009
//
//				v0.9	Modified 'work' object
//						Cleanup								January 28, 2009
//
//				v1.0	Added conditional to
//						check for 'H'our = 00				February 02, 2009
//
//				v1.1	Compensated for bogus data			February 27, 2009
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################
//
//
// var juldate = work.getAttribute("DATE").getValue(0).toString();
//

var juldate = work.getString("SUUPMJ");

// juldate is in the format CYYDDD

//
// var mytime = work.getAttribute("DATE").getValue(0).toString();
//

var mytime = work.getString("SUUPMT");

// mytime is in the format HHMMSS.s

var CC,Y,M,D,H,M,min,S,sec,O,O1,O2,myreturn;

// Goal is to have this format 2003-07-18T14:22:01-02:00 
// or YYYY-MM-DDTHH:MM:SS+HH:MM
// the T is a literal 'T' and the +HH:MM is the GMT offset (can be plus or minus)

function twoDigits(num){
	//returns a string that has a 0 before it if it's less than 10
	//returns a -1 if the number is less than zero (error condition)
	num = parseInt(num);
	if((num < 10) && (num >= 0)){
		return( "0" + num.toString());
	} else if(num < 0){
		return( -1 );
	} else {
		return(num.toString());
	}
}

if (parseInt(juldate) >= 100000){
	CC = 20
} else {
	CC = 19;
}
Y = CC.toString() + juldate.substring(1,3);

var d = new Date(Y,0,1);
var dd = new Date((86400000 * (juldate.substr(3) - 1)) + d.getTime());
// dd now has the correct year, month and day.
M = twoDigits(dd.getMonth() + 1);
D = twoDigits(dd.getDate());

var i = mytime.indexOf(".");
sec = twoDigits(mytime.substr(i+1));
S = twoDigits(mytime.substring(i-2,i));
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if (S > 59) {
	S == '00';
}
min = twoDigits(mytime.substring(i-4,i-2));
if (i <= 5) {
	H = '00';
} else {
	H = twoDigits(mytime.substring(0,i-4));
}

// offset code
var ddd = new Date();
O1 = twoDigits(Math.floor(ddd.getTimezoneOffset()/60).toString());
O2 = twoDigits((ddd.getTimezoneOffset()%60).toString());
if (ddd.getTimezoneOffset() < 0){
	O = "-" + O1 +":"+ O2;
} else {
	O = "+" + O1 +":"+ O2;
}
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if ((juldate == '0') && (mytime == '0.0')) {
	myreturn = "0000-00-00T00:00:00+00:00";
} else {
	myreturn = Y +"-"+ M +"-"+ D +"T"+ H +":"+ min +":"+ S + O;
}

work.setAttribute("new_when", myreturn);
]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="trimwhtspc">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[//
// Filename:	trimwhtspc
//
// Abstract:	Trim whitespace/padding
//
// Usage:		TDI Script component
//
// Author:		IBM
//
// History:		Created			January 26, 2009
//
// Note:		
//
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################
//
attnames = work.getAttributeNames();
   for (aname in attnames) {
          attval = work.getObject(aname);
          if (attval && attval.getClass().getName().equals("java.lang.String"))
                   work.setAttribute(aname, attval.trim());
   }]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="W7Connector">
<InheritFrom>/Connectors/W7Connector</InheritFrom>
<ConnectorMode>AddOnly</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="$initialize.1. Insight Import directory">C:\ibm\TCIM\Import</parameter>
<parameter name="$initialize.2. File creation directory">Projects\AJG\Temp</parameter>
<parameter name="$initialize.3. How many events per file"/>
<parameter name="$initialize.4. Minutes before sending events to Insight"/>
<parameter name="$initialize.5. Prefix for W7 import files">F9670_</parameter>
<parameter name="assemblyLine">W7AdapterAL</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Script><![CDATA[// info - Table F9670
//
// Release Number

ret.value = "Release Number: " + work.getAttribute("SURLS").getValue(0);
]]></Script>
<Simple>SURLS</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>SUDL01</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>SUPKGNAME</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>advanced</Type>
<Script>ret.value = "PROGRAM";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>advanced</Type>
<Script>ret.value = "TOOL";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>advanced</Type>
<Script>ret.value = "SUCCESS";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>advanced</Type>
<Script>ret.value = "INSTALL";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Script>ret.value = work.getAttribute("when");</Script>
<Simple>new_when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>SUJOBN</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>advanced</Type>
<Script>ret.value = "F9670";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>SUUSER</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>SUUSER</Simple>
</AttributeMapItem>
</AttributeMap>
<DeltaSettings>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerDF>
<ThreadOptions/>
<Operations>
<Operation name="putEntry">
<Schema name="Input">
<SchemaItem>
<Name>info</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatpath</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhattype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatnoun</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatsuccess</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatverb</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>when</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromtype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherename</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretoname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretotype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whologonname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whorealname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<Schema name="Output">
<SchemaItem>
<Name>info</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatpath</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhattype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatnoun</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatsuccess</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatverb</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>when</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromtype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherename</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretoname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretotype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whologonname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whorealname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<AttributeMap name="Input">
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Simple>info</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>onwhatname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>onwhatpath</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>simple</Type>
<Simple>onwhattype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Simple>whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Simple>whatsuccess</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>simple</Type>
<Simple>whatverb</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Simple>when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>wherefromname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>wherefromtype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>simple</Type>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>simple</Type>
<Simple>wheretoname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>simple</Type>
<Simple>wheretotype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>simple</Type>
<Simple>wheretype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>whologonname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>whorealname</Simple>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Simple>info</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>onwhatname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>onwhatpath</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>simple</Type>
<Simple>onwhattype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Simple>whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Simple>whatsuccess</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>simple</Type>
<Simple>whatverb</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Simple>when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>wherefromname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>wherefromtype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>simple</Type>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>simple</Type>
<Simple>wheretoname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>simple</Type>
<Simple>wheretotype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>simple</Type>
<Simple>wheretype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>whologonname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>whorealname</Simple>
</AttributeMapItem>
</AttributeMap>
<Public>true</Public>
</Operation>
<Operation name="Default">
<Schema name="Input"/>
<Schema name="Output"/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<Public>true</Public>
</Operation>
</Operations>
<InitParams>
<Schema name="AssemblyLineInitParams">
<SchemaItem>
<Name>1. Insight Import directory</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>2. File creation directory</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>3. How many events per file</Name>
<NativeSyntax>Number</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>4. Minutes before sending events to Insight</Name>
<NativeSyntax>Number</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>5. Prefix for W7 import files</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
</Schema>
</InitParams>
</AssemblyLine>
<AssemblyLine name="F95921AL">
<Settings>
<parameter name="ALPoolSettingsDialog">showALPoolSettings</parameter>
<parameter name="automapattributes">false</parameter>
<parameter name="createTombstones">false</parameter>
<parameter name="debug">false</parameter>
<parameter name="includeGlobalPrologs">true</parameter>
<parameter name="nullBehaviorDialog">showNullBehavior</parameter>
</Settings>
<Hooks>
<Hook>
<Name>epilog2</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>onsuccess</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>prolog0</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<LogConfig/>
<ContainerEF name="EntryFeedContainer">
<Connector name="ReadF95921">
<InheritFrom>system:/Connectors/ibmdi.JDBC</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="jdbcDriver">com.microsoft.sqlserver.jdbc.SQLServerDriver</parameter>
<parameter name="jdbcLogin">s-TCIM</parameter>
<parameter name="jdbcPassword">s-TCIM</parameter>
<parameter name="jdbcPreparedStatement">true</parameter>
<parameter name="jdbcSchema">sy811</parameter>
<parameter name="jdbcSource">jdbc:sqlserver://10.252.6.128:1433;databasename=PS811</parameter>
<parameter name="jdbcTable">F95921</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>RLEFFDATE</Name>
<Type>simple</Type>
<Simple>RLEFFDATE</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>RLEXPIRDATE</Name>
<Type>simple</Type>
<Simple>RLEXPIRDATE</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>RLFRROLE</Name>
<Type>simple</Type>
<Simple>RLFRROLE</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>RLTOROLE</Name>
<Type>simple</Type>
<Simple>RLTOROLE</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>RLUPMJ</Name>
<Type>simple</Type>
<Simple>RLUPMJ</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>RLUPMT</Name>
<Type>simple</Type>
<Simple>RLUPMT</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>RLUSER</Name>
<Type>simple</Type>
<Simple>RLUSER</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>exp_date</Name>
<Type>advanced</Type>
<Script>ret.value = "UNKNOWN";</Script>
<Simple>exp_date</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>new_when</Name>
<Type>advanced</Type>
<Script>ret.value = "UNKNOWN";</Script>
<Simple>new_when</Simple>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<DeltaSettings>
<Enabled>true</Enabled>
<UniqueAttribute>RLFRROLE+RLTOROLE+RLEFFDATE</UniqueAttribute>
<FilePath>F95921Delta</FilePath>
<ReadDeleted>true</ReadDeleted>
<RemoveDeleted>true</RemoveDeleted>
<WhenToCommit>On end of AL cycle</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
<SchemaItem>
<Name>RLDEFROLE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLEFFDATE</Name>
<Syntax>java.math.BigDecimal</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLEXPIRDATE</Name>
<Syntax>java.math.BigDecimal</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFRROLE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE1</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE10</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE11</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE12</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE13</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE14</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE15</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE16</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE17</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE18</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE19</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE2</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE20</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE22</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE23</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE24</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE25</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE3</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE4</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE5</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE6</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE7</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE8</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLFUROLE9</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLJOBN</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLPID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLROLETYP</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLSYSROLE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLTOROLE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLUPMJ</Name>
<Syntax>java.math.BigDecimal</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLUPMT</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RLUSER</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
<parameter name="initreconnect">false</parameter>
<parameter name="numberOfRetries">1</parameter>
<parameter name="retryDelay">10</parameter>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerEF>
<ContainerDF name="DataFlowContainer">
<Connector name="xformdata">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[// Transform information - date and time
//
// Filename:	xformdata.js
//
// Abstract:	Transform JDE Julian date to TDI format of YYYY-MM-DDTHH:MM:SS+HH:MM
//				The JDE Julian format is CYYDDD
//					Specific for table	F95921
//						display Expiration Date in "info" field
//
// Usage:		TDI internal script component
//
// Author:		IBM
//
// History:		v0.8	Original Version 					January 26, 2009
//
//				v0.9	Modified 'work' object
//						Cleanup								January 28, 2009
//
//				v1.0	Added code to return
//						build date/time for
//						'info' field						February 02, 2009
//
//				v1.1	Added conditional to
//						check for 'H'our = 00				February 02, 2009
//
//				v1.2	Compensated for bogus data			February 27, 2009
//
//	- Table specific reference information
// RLUPMJ:		java.math.BigDecimal	Date updated
// RLUPMT:		java.lang.Double		Time Last Updated
// RLEXPIRDATE:	java.math.BigDecimal	Expiration Date
//
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################
//
// date fields are in the original format CYYDDD (JDE Julian)
var juldate = work.getString("RLUPMJ");
var expdate = work.getString("RLEXPIRDATE");

//
// var juldate = work.getAttribute("DATE").getValue(0).toString();
//
// var mytime = work.getAttribute("DATE").getValue(0).toString();
//

// mytime and bldtime are in the  original format HHMMSS.s
var mytime = work.getString("RLUPMT");

// variable declarations
var CC,C1,Y,Y1,M,D,D1,H,H1,M,M1,min,min1,S,S1,sec,sec1,O,O1,O2,retupdate,retbuild,retbldtme,retblddte;

// Goal is to have this format 2003-07-18T14:22:01-02:00  for TCIM
// or YYYY-MM-DDTHH:MM:SS+HH:MM
// the T is a literal 'T' and the +HH:MM is the GMT offset (can be plus or minus)

function twoDigits(num){
	//returns a string that has a 0 before it if it's less than 10
	//returns a -1 if the number is less than zero (error condition)
	num = parseInt(num);
	if((num < 10) && (num >= 0)){
		return( "0" + num.toString());
	} else if(num < 0){
		return( -1 );
	} else {
		return(num.toString());
	}
}

if (parseInt(juldate) >= 100000){
	CC = 20
} else {
	CC = 19;
}
Y = CC.toString() + juldate.substring(1,3);

if (parseInt(expdate) >= 100000) {
	C1 = 20
} else {
	C1 = 19;
}
Y1 = C1.toString() + expdate.substring(1,3);

// build correct year, month, and day
var d = new Date(Y,0,1);
var d1 = new Date(Y1,0,1);
var dd = new Date((86400000 * (juldate.substr(3) - 1)) + d.getTime());
var dd1 = new Date((86400000 * (expdate.substr(3) - 1)) + d1.getTime());
//

// month and day setup - juldate, expdate
M = twoDigits(dd.getMonth() + 1);
M1 = twoDigits(dd1.getMonth() + 1);
D = twoDigits(dd.getDate());
D1 = twoDigits(dd1.getDate());

// mytime setup
var i = mytime.indexOf(".");
sec = twoDigits(mytime.substr(i+1));
S = twoDigits(mytime.substring(i-2,i));
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if (S > 59) {
	S == '00';
}
min = twoDigits(mytime.substring(i-4,i-2));
if (i <= 5) {
	H = '00';
} else {
	H = twoDigits(mytime.substring(0,i-4));
}
//

// offset code
var ddd = new Date();
O1 = twoDigits(Math.floor(ddd.getTimezoneOffset()/60).toString());
O2 = twoDigits((ddd.getTimezoneOffset()%60).toString());
if (ddd.getTimezoneOffset() < 0){
	O = "-" + O1 +":"+ O2;
} else {
	O = "+" + O1 +":"+ O2;
}
//
//
// 02/27/2009	wdb		Compensate for bogus data from authoritative source
//
if ((juldate == '0') && (mytime == '0.0')) {
	myreturn = "0000-00-00T00:00:00+00:00";
} else {
	myreturn = Y +"-"+ M +"-"+ D +"T"+ H +":"+ min +":"+ S + O;
}

retexpdate = Y +"-"+ M +"-"+ D;

work.setAttribute("new_when", myreturn);
work.setAttribute("exp_date", retexpdate);
]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="trimwhtspc">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[//
// Filename:	trimwhtspc
//
// Abstract:	Trim whitespace/padding
//
// Usage:		TDI Script component
//
// Author:		IBM
//
// History:		Created			January 26, 2009
//
// Note:		
//
//
//######################################################################
// (C) COPYRIGHT International Business Machines Corp. 2006
// All Rights Reserved
// Licensed Materials - Property of IBM
// IBM Confidential Information
//
// Unpublished and Unsupported work
//
// Provided by IBM Software Services for Tivoli (ISST)
//######################################################################
//
// Warranty Disclaimer:
//
// IBM makes no warranty or representations about the suitability of the 
// software for any purpose. It is provided "AS IS" without any express or 
// implied warranty, including the implied warranties of merchantability, 
// fitness for a particular purpose and non-infringement. IBM shall not be 
// liable for any direct, indirect, special or consequential damages resulting 
// from the loss of use, data or projects, whether in an action of contract or 
// tort, arising out of or in connection with the use or performance of this 
// software.
//
//######################################################################
//
attnames = work.getAttributeNames();
   for (aname in attnames) {
          attval = work.getObject(aname);
          if (attval && attval.getClass().getName().equals("java.lang.String"))
                   work.setAttribute(aname, attval.trim());
   }]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="W7Connector">
<InheritFrom>/Connectors/W7Connector</InheritFrom>
<ConnectorMode>AddOnly</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="$initialize.1. Insight Import directory">C:\ibm\TCIM\Import</parameter>
<parameter name="$initialize.2. File creation directory">Projects\AJG\Temp</parameter>
<parameter name="$initialize.3. How many events per file"/>
<parameter name="$initialize.4. Minutes before sending events to Insight"/>
<parameter name="$initialize.5. Prefix for W7 import files">F95921_</parameter>
<parameter name="assemblyLine">W7AdapterAL</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>info</Name>
<Type>advanced</Type>
<Script><![CDATA[// Info: Expiration Date
ret.value = work.getString("exp_date");]]></Script>
<Simple>exp_date</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>RLUSER</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>advanced</Type>
<Script>ret.value = "ROLE CHANGE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>advanced</Type>
<Script>ret.value = "USER";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>advanced</Type>
<Script>ret.value = "USER ROLE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>advanced</Type>
<Script>ret.value = "SUCCESS";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>advanced</Type>
<Script>ret.value = "MODIFY";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Simple>new_when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>RLFRROLE</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>RLFRROLE</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>advanced</Type>
<Script>ret.value = "F95921";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>advanced</Type>
<Script>ret.value = "JDE";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>RLTOROLE</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>RLTOROLE</Simple>
</AttributeMapItem>
</AttributeMap>
<DeltaSettings>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerDF>
<ThreadOptions/>
<Operations>
<Operation name="putEntry">
<Schema name="Input">
<SchemaItem>
<Name>info</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatpath</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhattype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatnoun</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatsuccess</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatverb</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>when</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromtype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherename</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretoname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretotype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whologonname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whorealname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<Schema name="Output">
<SchemaItem>
<Name>info</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatpath</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhattype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatnoun</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatsuccess</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatverb</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>when</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromtype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherename</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretoname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretotype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whologonname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whorealname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<AttributeMap name="Input">
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Simple>info</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>onwhatname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>onwhatpath</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>simple</Type>
<Simple>onwhattype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Simple>whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Simple>whatsuccess</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>simple</Type>
<Simple>whatverb</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Simple>when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>wherefromname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>wherefromtype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>simple</Type>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>simple</Type>
<Simple>wheretoname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>simple</Type>
<Simple>wheretotype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>simple</Type>
<Simple>wheretype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>whologonname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>whorealname</Simple>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Simple>info</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>onwhatname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>onwhatpath</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>simple</Type>
<Simple>onwhattype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Simple>whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Simple>whatsuccess</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>simple</Type>
<Simple>whatverb</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Simple>when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>wherefromname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>wherefromtype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>simple</Type>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>simple</Type>
<Simple>wheretoname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>simple</Type>
<Simple>wheretotype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>simple</Type>
<Simple>wheretype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>whologonname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>whorealname</Simple>
</AttributeMapItem>
</AttributeMap>
<Public>true</Public>
</Operation>
<Operation name="Default">
<Schema name="Input"/>
<Schema name="Output"/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<Public>true</Public>
</Operation>
</Operations>
<InitParams>
<Schema name="AssemblyLineInitParams">
<SchemaItem>
<Name>1. Insight Import directory</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>2. File creation directory</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>3. How many events per file</Name>
<NativeSyntax>Number</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>4. Minutes before sending events to Insight</Name>
<NativeSyntax>Number</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>5. Prefix for W7 import files</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
</Schema>
</InitParams>
</AssemblyLine>
<AssemblyLine name="W7AdapterAL">
<Settings>
<parameter name="ALPoolSettingsDialog">showALPoolSettings</parameter>
<parameter name="automapattributes">false</parameter>
<parameter name="createTombstones">false</parameter>
<parameter name="debug">false</parameter>
<parameter name="includeGlobalPrologs">true</parameter>
<parameter name="nullBehaviorDialog">showNullBehavior</parameter>
</Settings>
<Hooks>
<Hook>
<Name>epilog2</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>onsuccess</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>prolog0</Name>
<Script>task.dumpEntry(task.getOpEntry());</Script>
<Enabled>false</Enabled>
</Hook>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<LogConfig/>
<ContainerEF name="EntryFeedContainer"/>
<ContainerDF name="DataFlowContainer">
<Branch name="IF putEntry">
<Connector name="init &amp; incr eventCount">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[var vrs = "v.1.2";
var debug = false;

if (typeof(eventCount) == "undefined") { // if this is the first call, then it's "initialize()"
	// Initialize some variables for use later. Note that the
	// fixPath() function is define below in this script
	//
	var eventCount = 0;
	var opentry = task.getOpEntry(); // Contains AL init parameters
	var insightImportDir = fixPath(task.getOpEntry().getString("1. Insight Import directory"));
	var fileCreationDir = fixPath(task.getOpEntry().getString("2. File creation directory"));
	var eventMax = task.getOpEntry().getObject("3. How many events per file");

	if (eventMax && system.isValidInt(eventMax))
		eventMax = Number(eventMax)
	else
		eventMax = 0;
	
	var timeBeforeMove = task.getOpEntry().getObject("4. Minutes before sending events to Insight");

	if (system.isValidInt(timeBeforeMove))
		timeBeforeMove = Number(timeBeforeMove)
	else
		timeBeforeMove = 0;

	var deadline = new java.util.Date().getTime() + timeBeforeMove*1000*60;

	var importFilePrefix = task.getOpEntry().getString("5. Prefix for W7 import files");
	if (importFilePrefix == null)
		importFilePrefix = "EventsFromTDI_";

/* For debugging 
	task.logmsg("\n\n ********************* Setting default parameter values *********************\n\n");
	insightImportDir = "Projects\\Insight_W7\\Insight Import Dir\\";
	fileCreationDir = "Projects\\Insight_W7\\W7 Creation Dir\\";
	eventMax = 100;
*/

	// set output Path for Connector to temp file in temp dir
	//
	tempEventFilepath = fileCreationDir + "/" + importFilePrefix + "TempEvents.csv";
	W7FileConnector.connector.setParam("filePath", tempEventFilepath);

	// Print version message with param info
	//
	task.logmsg("** W7FileConnector " + vrs + " **");
	task.logmsg("**  Insight import dir: " + insightImportDir);
	task.logmsg("**   File creation dir: " + fileCreationDir);
	task.logmsg("**     Events per move: " + eventMax);
	task.logmsg("** Prefix for W7 files: " + importFilePrefix);

}

eventCount++;



// Define functions used later in the AL
//

// Move the file from the fileCreationDir to the insightImportDir.
// Returns true if file was moved, otherwise false (or exception)
//
function moveFile(fromPath) { // returns Boolean, true = success
	var paths = system.splitString(fromPath, "/");
	var toPath = insightImportDir + "/" + importFilePrefix + new java.util.Date().getTime() + ".csv";

	var fromFile = new java.io.File(fromPath);
	var toFile = new java.io.File(toPath);
	task.logmsg("== Moving file from: " + fromFile);

	if (fromFile.exists()) {
		if (fromFile.renameTo(toFile)) {
			task.logmsg("== Moving file to: " + toFile)
			return true;
		} else {
			task.logmsg("ERROR", "\n\n!!!! ------- COULD NOT MOVE FILE: " + fromFile + " ------- !!!!\n\n");
			return true;
		}
	}
	return false;
}

// Removes "/" or "\" from the path 
//
function fixPath(path) {
	if (path == null)
		path = new java.lang.String("")
	else if (path.endsWith("\\") || path.endsWith("/"))
		path = path.substring(0,insightImportDir.length()-1);

	return path;
}

]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="set filepath">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[if (debug)
	task.logmsg("@@ [set filepath] writing event " + (eventCount+1) + " " +
			work.getString("onwhatname") + " to " + tempEventFilepath);

W7FileConnector.connector.setParam("filePath", tempEventFilepath);]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="W7FileConnector">
<InheritFrom>system:/Connectors/ibmdi.FileSystem</InheritFrom>
<ConnectorMode>AddOnly</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>system:/Connectors/ibmdi.FileSystem</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="filePath">HowTos\Insight_W7\W7 Creation Dir\arf.csv</parameter>
</Configuration>
<Parser>
<InheritFrom>system:/Parsers/ibmdi.CSV</InheritFrom>
<parameter name="characterSet">UTF-8</parameter>
<parameter name="csvColumnSeparator">,</parameter>
<parameter name="csvColumns"><![CDATA[when
whorealname
whologonname
whatverb
whatnoun
whatsuccess
wheretype
wherename
wherefromtype
wherefromname
wheretotype
wheretoname
onwhattype
onwhatpath
onwhatname
info
]]></parameter>
<parameter name="csvEnableQuoting">true</parameter>
<parameter name="csvLogLongLines">0</parameter>
<parameter name="csvWriteHeader">true</parameter>
<parameter name="debug">false</parameter>
</Parser>
<AttributeMap name="Input">
<InheritFrom>system:/Connectors/ibmdi.FileSystem</InheritFrom>
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Simple>info</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>onwhatname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>onwhatpath</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>simple</Type>
<Simple>onwhattype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Simple>whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Simple>whatsuccess</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>simple</Type>
<Simple>whatverb</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Simple>when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>wherefromname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>wherefromtype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>simple</Type>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>simple</Type>
<Simple>wheretoname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>simple</Type>
<Simple>wheretotype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>simple</Type>
<Simple>wheretype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>whologonname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>whorealname</Simple>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>system:/Connectors/ibmdi.FileSystem</InheritFrom>
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Simple>info</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>onwhatname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>onwhatpath</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>simple</Type>
<Simple>onwhattype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Simple>whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Simple>whatsuccess</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>simple</Type>
<Simple>whatverb</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Simple>when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>wherefromname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>wherefromtype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>simple</Type>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>simple</Type>
<Simple>wheretoname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>simple</Type>
<Simple>wheretotype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>simple</Type>
<Simple>wheretype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>whologonname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>whorealname</Simple>
</AttributeMapItem>
</AttributeMap>
<DeltaSettings>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>system:/Connectors/ibmdi.FileSystem</InheritFrom>
</Schema>
<Schema name="Output">
<InheritFrom>system:/Connectors/ibmdi.FileSystem</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>system:/Connectors/ibmdi.FileSystem</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>system:/Connectors/ibmdi.FileSystem</InheritFrom>
<Hook>
<Name>after_close</Name>
<Script><![CDATA[moveFile(tempEventFilepath);
]]></Script>
<Enabled>true</Enabled>
</Hook>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
<parameter name="initreconnect">false</parameter>
<parameter name="numberOfRetries">1</parameter>
<parameter name="retryDelay">10</parameter>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>system:/Connectors/ibmdi.FileSystem</InheritFrom>
<Enabled>false</Enabled>
<MinPoolSize>0</MinPoolSize>
<PurgeInterval>0</PurgeInterval>
<InitializeAttempts>1</InitializeAttempts>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
<InitializeOption>1</InitializeOption>
</Connector>
<Branch name="IF time to flush and move file">
<Connector name="Flush and move file">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[// Close the current temp file
W7FileConnector.connector.terminate();

if (!moveFile(W7FileConnector.connector.getParam("filePath")))
	throw "** ERROR! Temp file not renamed. Stopping.";


]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="Re-initialize Connector">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[if (debug)
	task.logmsg("@@ [Re-initialize] starting new temp file");

// W7FileConnector.connector.setParam("filePath", tempEventFilepath);
W7FileConnector.connector.initialize(null);]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<ScriptCondition><![CDATA[moveIt = false;

// First I check the Events Per File (if set)
//
if (eventMax > 0)
	moveIt = (eventCount % eventMax) == 0;

// Now I check to see if the Time Before Move is set, and if so,
// if the deadline is passed.
//
if (!moveIt && timeBeforeMove > 0) {
	moveIt = (new java.util.Date().getTime() > deadline);
	if (moveIt)
		deadline = new java.util.Date().getTime() + timeBeforeMove * 1000 * 60;
}

ret.value = moveIt;
]]></ScriptCondition>
<Conditions/>
<MatchAny>false</MatchAny>
<Enabled>true</Enabled>
<Type>0</Type>
</Branch>
<ScriptCondition><![CDATA[ret.value = task.getOpEntry().getString("$operation") == "putEntry";]]></ScriptCondition>
<Conditions/>
<MatchAny>false</MatchAny>
<Enabled>true</Enabled>
<Type>0</Type>
</Branch>
<Branch name="ELSE">
<Connector name="Got called!!!">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[task.logmsg("\n\n\n\nELSE Branch got invoked (not a putEntry() call)\n\n\n");

task.logmsg("^^^^^^^^^^^^^^^^^^^^ OpEntry ^^^^^^^^^^^^^^^^^^^^^^");
task.dumpEntry(task.getOpEntry());]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Conditions/>
<MatchAny>false</MatchAny>
<Enabled>true</Enabled>
<Type>2</Type>
</Branch>
</ContainerDF>
<ThreadOptions/>
<Operations>
<Operation name="putEntry">
<Schema name="Input">
<SchemaItem>
<Name>info</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatpath</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhattype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatnoun</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatsuccess</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatverb</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>when</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromtype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherename</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretoname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretotype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whologonname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whorealname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<Schema name="Output">
<SchemaItem>
<Name>info</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatpath</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhattype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatnoun</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatsuccess</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatverb</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>when</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromtype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherename</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretoname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretotype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whologonname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whorealname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<AttributeMap name="Input">
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Simple>info</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>onwhatname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>onwhatpath</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>simple</Type>
<Simple>onwhattype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Simple>whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Simple>whatsuccess</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>simple</Type>
<Simple>whatverb</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Simple>when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>wherefromname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>wherefromtype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>simple</Type>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>simple</Type>
<Simple>wheretoname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>simple</Type>
<Simple>wheretotype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>simple</Type>
<Simple>wheretype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>whologonname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>whorealname</Simple>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Simple>info</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>onwhatname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>onwhatpath</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>simple</Type>
<Simple>onwhattype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Simple>whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Simple>whatsuccess</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>simple</Type>
<Simple>whatverb</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Simple>when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>wherefromname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>wherefromtype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>simple</Type>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>simple</Type>
<Simple>wheretoname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>simple</Type>
<Simple>wheretotype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>simple</Type>
<Simple>wheretype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>whologonname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>whorealname</Simple>
</AttributeMapItem>
</AttributeMap>
<Public>true</Public>
</Operation>
<Operation name="Default">
<Schema name="Input"/>
<Schema name="Output"/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<Public>true</Public>
</Operation>
</Operations>
<InitParams>
<Schema name="AssemblyLineInitParams">
<SchemaItem>
<Name>1. Insight Import directory</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>2. File creation directory</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>3. How many events per file</Name>
<NativeSyntax>Number</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>4. Minutes before sending events to Insight</Name>
<NativeSyntax>Number</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>5. Prefix for W7 import files</Name>
<NativeSyntax>String</NativeSyntax>
</SchemaItem>
</Schema>
</InitParams>
</AssemblyLine>
<AssemblyLine name="LauncherAL">
<Settings>
<parameter name="ALPoolSettingsDialog">showALPoolSettings</parameter>
<parameter name="automapattributes">false</parameter>
<parameter name="createTombstones">false</parameter>
<parameter name="debug">false</parameter>
<parameter name="includeGlobalPrologs">true</parameter>
<parameter name="nullBehaviorDialog">showNullBehavior</parameter>
</Settings>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<LogConfig/>
<ContainerEF name="EntryFeedContainer">
<Connector name="TimerConnector">
<InheritFrom>system:/Connectors/ibmdi.Timer</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Disabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="hours">1</parameter>
<parameter name="minutes">30</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<DeltaSettings>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
<parameter name="initreconnect">false</parameter>
<parameter name="numberOfRetries">1</parameter>
<parameter name="retryDelay">10</parameter>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerEF>
<ContainerDF name="DataFlowContainer">
<Connector name="AJGCallAL">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[var al1 = main.startAL("F00950AL"); 
al1.join(); 
var al2 = main.startAL("F9312AL"); 
al2.join();
var al3 = main.startAL("F95921AL");
al3.join();
//
//	03/13/2009	wdb Removed to verify requirement to collection data from table F96215
// var al4 = main.startAL("F96215AL");
// al4.join();
//
var al4 = main.startAL("F96225AL");
al4.join();
var al5 = main.startAL("F9670AL");
al5.join();
var al6 = main.startAL("F98OWSECAL");
al6.join();

]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
</ContainerDF>
<ThreadOptions/>
<Operations/>
<InitParams>
<Schema name="AssemblyLineInitParams"/>
</InitParams>
</AssemblyLine>
</Folder>
<Folder name="Connectors">
<Connector name="W7Connector">
<InheritFrom>system:/Connectors/ibmdi.AssemblyLineConnector</InheritFrom>
<ConnectorMode>AddOnly</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="$initialize.1. Insight Import directory">Projects\AJG\Import</parameter>
<parameter name="$initialize.2. File creation directory">Projects\AJG\Temp</parameter>
<parameter name="$initialize.2. How many events per file">5</parameter>
<parameter name="$initialize.3. File creation directory">C:\Documents and Settings\no010196\My Documents\TDI\HowTos\Insight_W7\W7 Creation Dir</parameter>
<parameter name="$initialize.3. How many events per file"/>
<parameter name="$initialize.4. Minutes before sending events to Insight"/>
<parameter name="$initialize.4. Prefix for W7 import files">EventsFromTDI_</parameter>
<parameter name="$initialize.5. Prefix for W7 import files">F00950</parameter>
<parameter name="assemblyLine">W7AdapterAL</parameter>
<parameter name="debug">false</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>info</Name>
<Type>simple</Type>
<Simple>info</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>onwhatname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>onwhatpath</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>simple</Type>
<Simple>onwhattype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>simple</Type>
<Simple>whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>simple</Type>
<Simple>whatsuccess</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>simple</Type>
<Simple>whatverb</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>simple</Type>
<Simple>when</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>simple</Type>
<Simple>wherefromname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>simple</Type>
<Simple>wherefromtype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>simple</Type>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>simple</Type>
<Simple>wheretoname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>simple</Type>
<Simple>wheretotype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>simple</Type>
<Simple>wheretype</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>simple</Type>
<Simple>whologonname</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>simple</Type>
<Simple>whorealname</Simple>
</AttributeMapItem>
<NullBehavior>Value</NullBehavior>
<NullBehaviorValue>-</NullBehaviorValue>
</AttributeMap>
<DeltaSettings>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
<SchemaItem>
<Name>info</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhatpath</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>onwhattype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatnoun</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatsuccess</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whatverb</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>when</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherefromtype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wherename</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretoname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretotype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>wheretype</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whologonname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>whorealname</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
<parameter name="initreconnect">false</parameter>
<parameter name="numberOfRetries">1</parameter>
<parameter name="retryDelay">10</parameter>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
<Enabled>false</Enabled>
<MinPoolSize>0</MinPoolSize>
<PurgeInterval>0</PurgeInterval>
<InitializeAttempts>1</InitializeAttempts>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="ReadTable">
<InheritFrom>system:/Connectors/ibmdi.JDBC</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="jdbcDriver">com.microsoft.sqlserver.jdbc.SQLServerDriver</parameter>
<parameter name="jdbcLogin">tcim</parameter>
<parameter name="jdbcPassword">tcim</parameter>
<parameter name="jdbcPreparedStatement">true</parameter>
<parameter name="jdbcSchema">sn811</parameter>
<parameter name="jdbcSource">jdbc:sqlserver://10.252.6.151:1433;databasename=SYSNEW</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>FSCHNG</Name>
<Type>simple</Type>
<Simple>FSCHNG</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSJOBN</Name>
<Type>simple</Type>
<Simple>FSJOBN</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSMUSE</Name>
<Type>simple</Type>
<Simple>FSMUSE</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSOBNM</Name>
<Type>simple</Type>
<Simple>FSOBNM</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSPID</Name>
<Type>simple</Type>
<Simple>FSPID</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSSETY</Name>
<Type>simple</Type>
<Simple>FSSETY</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSSY</Name>
<Type>simple</Type>
<Simple>FSSY</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSUPMJ</Name>
<Type>simple</Type>
<Simple>FSUPMJ</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSUPMT</Name>
<Type>simple</Type>
<Simple>FSUPMT</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>FSUSER</Name>
<Type>simple</Type>
<Simple>FSUSER</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>new_when</Name>
<Type>advanced</Type>
<Script>ret.value = "UNKNOWN";</Script>
<Simple>new_when</Simple>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<DeltaSettings>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
<SchemaItem>
<Name>FSA</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSADDC</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSATN1</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSATN2</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSATN3</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSCHNG</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSDLT</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSDTAI</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSEXITID</Name>
<Syntax>java.math.BigDecimal</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSFMNM</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSFRDV</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSFUNO</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSICPY</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSINSL</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSIOK</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSIUPT</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSJOBN</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSMUSE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSOBID</Name>
<Syntax>java.math.BigDecimal</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSOBNM</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSOWDI</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSPID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSPTH</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSRUN</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSSETY</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSSY</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSTABID</Name>
<Syntax>java.math.BigDecimal</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSTEXTID</Name>
<Syntax>java.math.BigDecimal</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSTHDV</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSUPMJ</Name>
<Syntax>java.math.BigDecimal</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSUPMT</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSUSER</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FSVWYN</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
<parameter name="initreconnect">false</parameter>
<parameter name="numberOfRetries">1</parameter>
<parameter name="retryDelay">10</parameter>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
<Enabled>false</Enabled>
<MinPoolSize>0</MinPoolSize>
<PurgeInterval>0</PurgeInterval>
<InitializeAttempts>1</InitializeAttempts>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</Folder>
<Folder name="Parsers"/>
<Folder name="EventHandlers"/>
<Folder name="Scripts">
<Script name="trimwhtspc">
<parameter name="includeFiles"/>
<parameter name="script"><![CDATA[// Trim whitespace/padding
//
attnames = work.getAttributeNames();
   for (aname in attnames) {
          attval = work.getObject(aname);
          if (attval && attval.getClass().getName().equals("java.lang.String"))
                   work.setAttribute(aname, attval.trim());
   }]]></parameter>
</Script>
<Script name="xformdate">
<parameter name="includeFiles"/>
<parameter name="script"><![CDATA[// Transform date - Table F00950	Use "FSUPMJ" + "FSUPMT"
//
//
// Filename:	xformdate.js
//
// Abstract:	Transform JDE Julian date to TDI format of YYYY-MM-DDTHH:MM:SS+HH:MM
//				The JDE Julian format is CYYDDD
//
// Usage:		TDI internal script component
//
// History:		v0.8	Original Version 			IBM				January 26, 2009
//
//				v0.9	Modified 'work' object
//						Cleanup						IBM				January 28, 2009
//
//				v1.0	Added conditional to
//						check for 'H'our = 00		IBM				February 02, 2009
//

//
// var juldate = work.getAttribute("DATE").getValue(0).toString();
//

var juldate = work.getString("FSUPMJ");

// juldate is in the format CYYDDD

//
//  var mytime = work.getAttribute("DATE").getValue(0).toString();
//

var mytime = work.getString("FSUPMT");

// mytime is in the format HHMMSS.s

var CC,Y,M,D,H,M,min,S,sec,O,O1,O2,myreturn;

// Goal is to have this format 2003-07-18T14:22:01-02:00 
// or YYYY-MM-DDTHH:MM:SS+HH:MM
// the T is a literal 'T' and the +HH:MM is the GMT offset (can be plus or minus)

function twoDigits(num){
	//returns a string that has a 0 before it if it's less than 10
	//returns a -1 if the number is less than zero (error condition)
	num = parseInt(num);
	if((num < 10) && (num >= 0)){
		return( "0" + num.toString());
	} else if(num < 0){
		return( -1 );
	} else {
		return(num.toString());
	}
}

if (parseInt(juldate) >= 100000){
	CC = 20
} else {
	CC = 19;
}
Y = CC.toString() + juldate.substring(1,3);

var d = new Date(Y,0,1);
var dd = new Date((86400000 * (juldate.substr(3) - 1)) + d.getTime());
// dd now has the correct year, month and day.
M = twoDigits(dd.getMonth() + 1);
D = twoDigits(dd.getDate());

var i = mytime.indexOf(".");
sec = twoDigits(mytime.substr(i+1));
S = twoDigits(mytime.substring(i-2,i));
min = twoDigits(mytime.substring(i-4,i-2));
if (i <= 5) {
	H = '00';
} else {
	H = twoDigits(mytime.substring(0,i-4));
}

// offset code
var ddd = new Date();
O1 = twoDigits(Math.floor(ddd.getTimezoneOffset()/60).toString());
O2 = twoDigits((ddd.getTimezoneOffset()%60).toString());
if (ddd.getTimezoneOffset() < 0){
	O = "-" + O1 +":"+ O2;
} else {
	O = "+" + O1 +":"+ O2;
}

myreturn = Y +"-"+ M +"-"+ D +"T"+ H +":"+ min +":"+ S + O;

work.setAttribute("new_when", myreturn);
]]></parameter>
</Script>
<Script name="xformdata">
<parameter name="includeFiles"/>
<parameter name="script"><![CDATA[// Transform information - date and time
//
// Filename:	xformdata.js
//
// Abstract:	Transform JDE Julian date to TDI format of YYYY-MM-DDTHH:MM:SS+HH:MM
//			The JDE Julian format is CYYDDD
//
// Usage:		TDI internal script component - Specific for Table F96215
//
// History:		v0.8	Original Version 			IBM				January 26, 2009
//
//				v0.9	Modified 'work' object
//						Cleanup						IBM				January 28, 2009
//
//				v1.0	Added code to return
//						build date/time for
//						'info' field				IBM				February 02, 2009
//
//				v1.1	Added conditional to
//						check for 'H'our = 00		IBM				February 02, 2009
//
//	- Table specific reference information
// HHDATP:		java.lang.String		Data Source
// HHBLDDTE:	java.math.BigDecimal	Date Built
// HHBLDTME:	java.lang.Double		Package Build Time
// HHUPMJ:		java.math.BigDecimal	Date updated
// HHUPMT:		java.lang.Double		Time  Last Updated
//
// date fields are in the original format CYYDDD (JDE Julian)
var juldate = work.getString("HHUPMJ");
var blddate = work.getString("HHBLDDTE");

//
// var juldate = work.getAttribute("DATE").getValue(0).toString();
//
// var mytime = work.getAttribute("DATE").getValue(0).toString();
//

// mytime and bldtime are in the  original format HHMMSS.s
var mytime = work.getString("HHUPMT");
var bldtime = work.getString("HHBLDTME");

// variable declarations
var CC,C1,Y,Y1,M,D,D1,H,H1,M,M1,min,min1,S,S1,sec,sec1,O,O1,O2,retupdate,retbuild,retbldtme,retblddte;

// Goal is to have this format 2003-07-18T14:22:01-02:00  for TCIM
// or YYYY-MM-DDTHH:MM:SS+HH:MM
// the T is a literal 'T' and the +HH:MM is the GMT offset (can be plus or minus)

function twoDigits(num){
	//returns a string that has a 0 before it if it's less than 10
	//returns a -1 if the number is less than zero (error condition)
	num = parseInt(num);
	if((num < 10) && (num >= 0)){
		return( "0" + num.toString());
	} else if(num < 0){
		return( -1 );
	} else {
		return(num.toString());
	}
}

if (parseInt(juldate) >= 100000){
	CC = 20
} else {
	CC = 19;
}
Y = CC.toString() + juldate.substring(1,3);

if (parseInt(blddate) >= 100000) {
	C1 = 20
} else {
	C1 = 19;
}
Y1 = C1.toString() + blddate.substring(1,3);

// build correct year, month, and day
var d = new Date(Y,0,1);
var d1 = new Date(Y1,0,1);
var dd = new Date((86400000 * (juldate.substr(3) - 1)) + d.getTime());
var dd1 = new Date((86400000 * (blddate.substr(3) - 1)) + d1.getTime());
//

// month and day setup - juldate, blddate
M = twoDigits(dd.getMonth() + 1);
M1 = twoDigits(dd1.getMonth() + 1);
D = twoDigits(dd.getDate());
D1 = twoDigits(dd1.getDate());

// mytime setup
var i = mytime.indexOf(".");
sec = twoDigits(mytime.substr(i+1));
S = twoDigits(mytime.substring(i-2,i));
min = twoDigits(mytime.substring(i-4,i-2));
if (i <= 5) {
	H = '00';
} else {
	H = twoDigits(mytime.substring(0,i-4));
}
//

// bldtime setup
var i1 = bldtime.indexOf(".");
sec1 = twoDigits(bldtime.substr(i1+1));
S1 = twoDigits(bldtime.substring(i1-2,i1));
min1 = twoDigits(bldtime.substring(i1-4,i1-2));
if (i1 <= 5) {
	H1 = '00';
} else {
	H1 = twoDigits(mytime.substring(0,i-4));
}
//

// offset code
var ddd = new Date();
O1 = twoDigits(Math.floor(ddd.getTimezoneOffset()/60).toString());
O2 = twoDigits((ddd.getTimezoneOffset()%60).toString());
if (ddd.getTimezoneOffset() < 0){
	O = "-" + O1 +":"+ O2;
} else {
	O = "+" + O1 +":"+ O2;
}
//

retupdate = Y +"-"+ M +"-"+ D +"T"+ H +":"+ min +":"+ S + O;
retbuild = Y1 +"-"+ M1 +"-"+ D1 +"T"+ H1 +":"+ min1 +":"+ S + O;
retbldtme = Y1 +"-"+ M1 +"-"+ D1;
retblddte = H1 +":"+ min1 +":"+ S1 + O;

work.setAttribute("new_when", retupdate);
work.setAttribute("bld_time", retbldtme);
work.setAttribute("bld_date", retblddte);
]]></parameter>
</Script>
</Folder>
<JavaLibraries/>
<JavaProperties/>
<Folder name="Includes"/>
<Folder name="Config">
<LogConfig name="Logging"/>
<InstanceProperties name="AutoStart">
<AutoStart/>
</InstanceProperties>
<TombstonesConfig name="Tombstones"/>
<SolutionInterface name="SolutionInterface"/>
</Folder>
<Folder name="Functions"/>
<Folder name="AttributeMaps">







</Folder>
<Properties name="Properties">
<Stores>
<PropertyStore name="Solution-Properties">
<Parser/>
<RawConnector>
<InheritFrom>system:/Connectors/ibmdi.Properties</InheritFrom>
<parameter name="collectionType">Solution-Properties</parameter>
</RawConnector>
<Key>key</Key>
<Value>value</Value>
<ReadOnly>false</ReadOnly>
<InitialLoad>true</InitialLoad>
<CacheTimeout>0</CacheTimeout>
</PropertyStore>
<PropertyStore name="Global-Properties">
<Parser/>
<RawConnector>
<InheritFrom>system:/Connectors/ibmdi.Properties</InheritFrom>
<parameter name="collectionType">Global-Properties</parameter>
</RawConnector>
<Key>key</Key>
<Value>value</Value>
<ReadOnly>false</ReadOnly>
<InitialLoad>true</InitialLoad>
<CacheTimeout>0</CacheTimeout>
</PropertyStore>
<PropertyStore name="Java-Properties">
<Parser/>
<RawConnector>
<InheritFrom>system:/Connectors/ibmdi.Properties</InheritFrom>
<parameter name="collectionType">Java-Properties</parameter>
</RawConnector>
<Key>key</Key>
<Value>value</Value>
<ReadOnly>false</ReadOnly>
<InitialLoad>true</InitialLoad>
<CacheTimeout>0</CacheTimeout>
</PropertyStore>
<PropertyStore name="System-Properties">
<Parser/>
<RawConnector>
<InheritFrom>system:/Connectors/ibmdi.Properties</InheritFrom>
<parameter name="collectionType">System-Properties</parameter>
</RawConnector>
<Key>key</Key>
<Value>value</Value>
<ReadOnly>false</ReadOnly>
<InitialLoad>true</InitialLoad>
<CacheTimeout>0</CacheTimeout>
</PropertyStore>
</Stores>
</Properties>
</MetamergeConfig>
