<?xml version="1.0" encoding="UTF-8"?>
<MetamergeConfig IDIversion="Created by TDI6.1.1 - 2008-11-26" created="Wed Jan 14 17:31:46 CST 2009" createdBy="butlerda" modified="Fri Feb 06 14:45:07 CST 2009" modifiedBy="dbutler" 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">tcim</parameter>
<parameter name="jdbcPassword">tcim</parameter>
<parameter name="jdbcPreparedStatement">true</parameter>
<parameter name="jdbcSchema">sn811</parameter>
<parameter name="jdbcSelect"/>
<parameter name="jdbcSource">jdbc:sqlserver://10.252.6.151:1433;databasename=SYSNEW</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>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_date</Name>
<Type>advanced</Type>
<Script>ret.value = "UNKNOWN";</Script>
<Simple>chg_blob</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>
<WhenToCommit>After every database operation</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
//
//######################################################################
// (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");

// 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

var CC,Y,M,D,H,M,min,S,sec,O,O1,O2,retchgdte,retchgtme,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());
	}
}

// [Last Change SRVBLOBA]: 2008-09-18 �:56:36+06:00

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;
retchgdte = Y +"-"+ M +"-"+ D;
retchgtme = H +":"+ min +":"+ S + O;

work.setAttribute("new_when", myreturn);
work.setAttribute("chg_date", retchgdte);
work.setAttribute("chg_time", retchgtme);
]]></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 field [F980WSEC]
//
// Last change, SRVBLOBA

ret.value = "[SRVBLOBA CHG]: " + work.getString("chg_date") +" "+ work.getString("chg_time");
]]></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>simple</Type>
<Simple>SCMUSE</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>advanced</Type>
<Script>ret.value = "PASSWORD";</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>advanced</Type>
<Script>ret.value = "FAILURE";</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 = "JDE";</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><![CDATA[whologonname
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">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>
<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>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 = conn.getAttribute("new_whatnoun");</Script>
<Simple>new_whatnoun</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>new_whatverb</Name>
<Type>advanced</Type>
<Script>ret.value = conn.getAttribute("new_whatverb");</Script>
<Simple>new_whatverb</Simple>
<SubstitutionTemplate>ret.value = conn.getAttribute("new_whatverb");</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>new_when</Name>
<Type>simple</Type>
<Script>ret.value = conn.getAttribute("new_when");</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>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
//
//######################################################################
// (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));
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);
]]></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>advanced</Type>
<Script>ret.value = work.getAttribute("SHUSER");</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>advanced</Type>
<Script>ret.value = work.getAttribute("SHPID");</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>advanced</Type>
<Script>ret.value = work.getAttribute("SHUSR0");</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>advanced</Type>
<Script>ret.value = work.getAttribute("SHEVSTAT");</Script>
</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>advanced</Type>
<Script>ret.value = work.getAttribute("SHJOBN");</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>advanced</Type>
<Script>ret.value = work.getAttribute("SHJOBN");</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>advanced</Type>
<Script><![CDATA[// ret.value = work.getAttribute("wherename");
ret.value = "JDE"]]></Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>advanced</Type>
<Script><![CDATA[// ret.value = work.getAttribute("wheretoname");
ret.value = "JDE"]]></Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>advanced</Type>
<Script><![CDATA[// ret.value = work.getAttribute("wheretotype");
ret.value = "JDE"]]></Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>advanced</Type>
<Script><![CDATA[// ret.value = work.getAttribute("wheretype");
ret.value = "JDE"]]></Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>advanced</Type>
<Script><![CDATA[ret.value = work.getAttribute("SHUSER");
]]></Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>advanced</Type>
<Script>ret.value = work.getAttribute("SHUSR0");</Script>
</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">
<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>
<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>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>
</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
//
// #######################################################################
// (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));
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);
]]></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[// Trim whitespace/padding
//
//
// 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 = "JDE";</Script>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>advanced</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>ret.value = "JDE";</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="jdbcDriver">com.microsoft.sqlserver.jdbc.SQLServerDriver</parameter>
<parameter name="jdbcExposeNullValues">true</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>
<parameter name="jdbcTable">F96215</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>
<WhenToCommit>After every database operation</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
//
//######################################################################
// (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));
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);
]]></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 - 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");]]></Script>
</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 = "JDE";</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">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>
<parameter name="jdbcTable">F96225</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
<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>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>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>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"
//
// 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	
//
//######################################################################
// (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("HDUPMJ");

// juldate is in the format CYYDDD

//
// var mytime = work.getAttribute("DATE").getValue(0).toString();
//

var mytime = work.getString("HDUPMT");

// 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);
]]></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[//ret.value = work.getAttribute("Data Source");
//
// info - Data Source, Package Build Time, Package Option Name
//
ret.value = "Data Source Package: " + work.getString("HDDATP")  
             + ", Package Build Time: " + work.getString("HDBLDTME")
			 + ", Package Option Name: " + work.getString("HDPKGOPTION");]]></Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>HDPKGNAME</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>simple</Type>
<Simple>HDPATHCD</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>advanced</Type>
<Script>ret.value = "DATA";</Script>
</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 = "JDE";</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>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">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>
<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>
<WhenToCommit>After every database operation</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
//
//######################################################################
// (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));
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);
]]></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 = "JDE";</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">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>
<parameter name="jdbcTable">F95921</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
<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>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>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="xformdate">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[// Transform date - Table F95921	Use "RLUPMJ" + "RLUPMT"
//
// 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
//
//######################################################################
// (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("RLUPMJ");

// juldate is in the format CYYDDD

//
// var mytime = work.getAttribute("DATE").getValue(0).toString();
//

var mytime = work.getString("RLUPMT");

// 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);
]]></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>simple</Type>
<Simple>RLEXPIRDATE</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>simple</Type>
<Simple>RLTOROLE</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 = "JDE";</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_OLD">
<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"/>
<ContainerDF name="DataFlowContainer">
<Branch name="IF putEntry">
<Connector name="init &amp; incr eventCount">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[try {
	eventCount++; 	// if this has not been defined yet then
			// we end up in the catch area to init
			// the various variables.
} catch (e) {
	// Initialize some variables for use later. Note that the
	// fixPath() function is define below in this Hook
	//
	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 (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 = "HowTos\\Insight_W7\\Insight Import Dir\\";
	fileCreationDir = "HowTos\\Insight_W7\\W7 Creation Dir/";
	eventMax = 100;
*/

	// set output Path for Connector to temp file in temp dir
	//
	tempEventFilepath = fileCreationDir + "/TempEvents.csv";
	W7FileConnector.connector.setParam("filePath", tempEventFilepath);

	// Print version message with param info
	//
	task.logmsg("** W7FileConnector v0.9 **");
	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);

}

// 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) {
	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 false;
		}
	}
	
	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[/*
task.logmsg("...writing event " + (eventCount+1) + " " +
		work.getString("onwhatname"));
*/
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>
</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[W7FileConnector.connector.terminate();
moveFile(W7FileConnector.connector.getParam("filePath"));


]]></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[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>task.logmsg("\n\n\n\n                      *********** GOT CALLED ******************\n\n\n");</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="XFERTableToW7">
<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><![CDATA[// task.dumpEntry(task.getOpEntry())
var TableName = work.getString("TableName");
if (!TableName)
	TableName = "F00950";]]></Script>
<Enabled>true</Enabled>
</Hook>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<LogConfig/>
<ContainerEF name="EntryFeedContainer">
<Connector name="ReadTable">
<InheritFrom>system:/Connectors/ibmdi.JDBC</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Disabled</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>
<parameter name="jdbcTable">@SUBSTITUTE{op-entry.TableName}</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>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerEF>
<ContainerDF name="DataFlowContainer">
<ALMap name="TableName">
<AttributeMap name="Input">
<AttributeMapItem>
<Name>TableName</Name>
<Type>advanced</Type>
<Script>ret.value = TableName;</Script>
<Simple>TableName</Simple>
</AttributeMapItem>
</AttributeMap>
<State>Enabled</State>
</ALMap>
<Loop name="LoopThruTable">
<LoopInitOption>1</LoopInitOption>
<Connector name="LoopThruTable">
<InheritFrom>/Connectors/ReadTable</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="jdbcTable">F00950</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<AttributeMapItem>
<Name>jdbcTable</Name>
<Type>simple</Type>
<Simple>TableName</Simple>
</AttributeMapItem>
</AttributeMap>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<Schema name="Output">
<SchemaItem>
<Name>connectorFlags</Name>
</SchemaItem>
<SchemaItem>
<Name>debug</Name>
</SchemaItem>
<SchemaItem>
<Name>help</Name>
</SchemaItem>
<SchemaItem>
<Name>jdbcCommit</Name>
</SchemaItem>
<SchemaItem>
<Name>jdbcDateFormat</Name>
</SchemaItem>
<SchemaItem>
<Name>jdbcDelete</Name>
</SchemaItem>
<SchemaItem>
<Name>jdbcDriver</Name>
</SchemaItem>
<SchemaItem>
<Name>jdbcExposeNullValues</Name>
</SchemaItem>
<SchemaItem>
<Name>jdbcInsert</Name>
</SchemaItem>
<SchemaItem>
<Name>jdbcLogin</Name>
</SchemaItem>
<SchemaItem>
<Name>jdbcLookup</Name>
</SchemaItem>
<SchemaItem>
<Name>jdbcPassword</Name>
</SchemaItem>
<SchemaItem>
<Name>jdbcPreparedStatement</Name>
</SchemaItem>
<SchemaItem>
<Name>jdbcProviderParams</Name>
</SchemaItem>
<SchemaItem>
<Name>jdbcSchema</Name>
</SchemaItem>
<SchemaItem>
<Name>jdbcSelect</Name>
</SchemaItem>
<SchemaItem>
<Name>jdbcSessionParameters</Name>
</SchemaItem>
<SchemaItem>
<Name>jdbcSource</Name>
</SchemaItem>
<SchemaItem>
<Name>jdbcTable</Name>
</SchemaItem>
<SchemaItem>
<Name>jdbcUpdate</Name>
</SchemaItem>
</Schema>
<LinkCriteria/>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
<Hook>
<Name>before_initialize</Name>
<Script><![CDATA[task.logmsg("--> Reading Table " + 
			thisConnector.connector.getParam("jdbcTable"));]]></Script>
<Enabled>true</Enabled>
</Hook>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Branch name="LoopThruTable">
<Branch name="IF F9312">
<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
//
// History:     v0.8    Original Version                IBM      January 26, 2009
//

var eventnum = work.getAttribute("SHEVTYP").getValue(0);
var worknoun = "UNKNOWN";
var workverb = "UNKNOWN";

if (eventnum == "03"){

    // Customer given text: "Password Change";

    worknoun = "CHANGE";

    workverb = "Password";

}

else if (eventnum == "04"){

    // Customer given text: "System Administrator Change";

    worknoun = "CHANGE";

    workverb = "System Administrator";

}

else if (eventnum == "05"){

    // Customer given text: "Add User";

    worknoun = "ADD";

    workverb = "User";

}

else if (eventnum == "06"){

    // Customer given text: "Delete User";

    worknoun = "DELETE";

    workverb = "User";

}

else if (eventnum == "07"){

    // Customer given text: "Add Record, F00950";

    worknoun = "ADD";

    workverb = "F00950 Record";

}

else if (eventnum == "08"){

    // Customer given text: "Delete Record, F00950";

    worknoun = "DELETE";

    workverb = "F00950 Record";

}

else if (eventnum == "09"){

    // Customer given text: "Modify Record, F00950";

    worknoun = "MODIFY";

    workverb = "F00950 Record";

}

else if (eventnum == "10"){

    // Customer given text: "Add User to F0092";

    worknoun = "ADD";

    workverb = "F0092 Record";

}

else if (eventnum == "11"){

    // Customer given text: "Delete User from F0092";

    worknoun = "DELETE";

    workverb = "F0092 Record";

}

else if (eventnum == "12"){

    // Customer given text: "Modify User in F0092";

    worknoun = "MODIFY";

    workverb = "F0092 Record";

}

else if (eventnum == "13"){

    // Customer given text: "Add User/Role Relationship";

    worknoun = "ADD";

    workverb = "User/Role Relationship";

}

else if (eventnum == "14"){

    // Customer given text: "Remove User/Role Relationship";

    worknoun = "REMOVE";

    workverb = "User/Role Relationship";

}

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>
<ScriptCondition/>
<Conditions>
<BranchCondition>
<LeftHand>TableName</LeftHand>
<Operator>equals</Operator>
<RightHand>F9312</RightHand>
<CaseSensitive>true</CaseSensitive>
</BranchCondition>
</Conditions>
<MatchAny>false</MatchAny>
<Enabled>true</Enabled>
<Type>0</Type>
</Branch>
<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
//
// History:	v0.8	Original Version 		IBM				January 26, 2009
//
//			v0.9	Modified 'work' object
//					Cleanup					IBM				January 28, 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));
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);
]]></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.5. Prefix for W7 import files">@SUBSTITUTE{work.TableName}_</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 = "JDE";</Script>
<Simple>wherename</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>advanced</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>ret.value = "JDE";</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>
<InitializeOption>1</InitializeOption>
</Connector>
<Conditions/>
<MatchAny>false</MatchAny>
<Enabled>true</Enabled>
<Type>0</Type>
</Branch>
</Loop>
</ContainerDF>
<ThreadOptions/>
<Operations/>
<InitParams>
<Schema name="AssemblyLineInitParams"/>
</InitParams>
</AssemblyLine>
<AssemblyLine name="Launcher">
<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"/>
<ContainerDF name="DataFlowContainer">
<Connector name="Init">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[var tablenames = ["F00950", "F9312", "F95921", "F96215", "F96225", "F9670", "F98OWSEC"];
var tcount = 0;

]]></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>
<Loop name="ForEachTable">
<LoopType>0</LoopType>
<Branch name="ForEachTable">
<ALMap name="TableName">
<AttributeMap name="Input">
<AttributeMapItem>
<Name>TableName</Name>
<Type>advanced</Type>
<Script><![CDATA[ret.value = tablenames[tcount];
tcount++;]]></Script>
<Simple>TableName</Simple>
</AttributeMapItem>
</AttributeMap>
<State>Enabled</State>
</ALMap>
<Function name="LaunchAL">
<UserComment/>
<InheritFrom>system:/Functions/ibmdi.AssemblyLineFC</InheritFrom>
<parameter name="$initialize.TableName">@SUBSTITUTE{work.TableName}</parameter>
<parameter name="assemblyLine">XFERTableToW7</parameter>
<parameter name="compInitOption">0</parameter>
<parameter name="debug">false</parameter>
<parameter name="state">Enabled</parameter>
<parameter name="userComment"/>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
<SchemaItem>
<Name>FSCHNG</Name>
</SchemaItem>
<SchemaItem>
<Name>FSJOBN</Name>
</SchemaItem>
<SchemaItem>
<Name>FSMUSE</Name>
</SchemaItem>
<SchemaItem>
<Name>FSOBNM</Name>
</SchemaItem>
<SchemaItem>
<Name>FSPID</Name>
</SchemaItem>
<SchemaItem>
<Name>FSSETY</Name>
</SchemaItem>
<SchemaItem>
<Name>FSSY</Name>
</SchemaItem>
<SchemaItem>
<Name>FSUPMJ</Name>
</SchemaItem>
<SchemaItem>
<Name>FSUPMT</Name>
</SchemaItem>
<SchemaItem>
<Name>FSUSER</Name>
</SchemaItem>
<SchemaItem>
<Name>TableName</Name>
</SchemaItem>
<SchemaItem>
<Name>new_when</Name>
</SchemaItem>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
<SchemaItem>
<Name>FSCHNG</Name>
</SchemaItem>
<SchemaItem>
<Name>FSJOBN</Name>
</SchemaItem>
<SchemaItem>
<Name>FSMUSE</Name>
</SchemaItem>
<SchemaItem>
<Name>FSOBNM</Name>
</SchemaItem>
<SchemaItem>
<Name>FSPID</Name>
</SchemaItem>
<SchemaItem>
<Name>FSSETY</Name>
</SchemaItem>
<SchemaItem>
<Name>FSSY</Name>
</SchemaItem>
<SchemaItem>
<Name>FSUPMJ</Name>
</SchemaItem>
<SchemaItem>
<Name>FSUPMT</Name>
</SchemaItem>
<SchemaItem>
<Name>FSUSER</Name>
</SchemaItem>
<SchemaItem>
<Name>new_when</Name>
</SchemaItem>
</Schema>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<Configuration>
<UserComment/>
<InheritFrom>[parent]</InheritFrom>
<parameter name="$initialize.TableName">@SUBSTITUTE{work.TableName}</parameter>
<parameter name="assemblyLine">XFERTableToW7</parameter>
<parameter name="debug">false</parameter>
<parameter name="userComment"/>
</Configuration>
<SandboxConfig/>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>TableName</Name>
<Type>simple</Type>
<Simple>TableName</Simple>
</AttributeMapItem>
</AttributeMap>
</Function>
<ScriptCondition><![CDATA[ret.value = tcount < tablenames.length;]]></ScriptCondition>
<Conditions/>
<MatchAny>false</MatchAny>
<Enabled>true</Enabled>
<Type>0</Type>
</Branch>
</Loop>
</ContainerDF>
<ThreadOptions/>
<Operations/>
<InitParams>
<Schema name="AssemblyLineInitParams"/>
</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="test">
<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"/>
<ContainerDF name="DataFlowContainer">
<Connector name="W7Connector">
<InheritFrom>/Connectors/W7Connector</InheritFrom>
<ConnectorMode>AddOnly</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="$initialize.5. Prefix for W7 import files">TeSt_</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>substitution</Type>
<SubstitutionTemplate>InFo</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatname</Name>
<Type>substitution</Type>
<SubstitutionTemplate>onwhatname</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhatpath</Name>
<Type>substitution</Type>
<SubstitutionTemplate>onwhatpath</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>onwhattype</Name>
<Type>substitution</Type>
<SubstitutionTemplate>onwhattype</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatnoun</Name>
<Type>substitution</Type>
<SubstitutionTemplate>whatnoun</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatsuccess</Name>
<Type>substitution</Type>
<SubstitutionTemplate>whatsuccess</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>whatverb</Name>
<Type>substitution</Type>
<SubstitutionTemplate>whatverb</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>when</Name>
<Type>substitution</Type>
<SubstitutionTemplate>when</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromname</Name>
<Type>substitution</Type>
<SubstitutionTemplate>wherefromname</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherefromtype</Name>
<Type>substitution</Type>
<SubstitutionTemplate>wherefromtype</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>wherename</Name>
<Type>substitution</Type>
<SubstitutionTemplate>wherename</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretoname</Name>
<Type>substitution</Type>
<SubstitutionTemplate>wheretoname</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretotype</Name>
<Type>substitution</Type>
<SubstitutionTemplate>wheretotype</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>wheretype</Name>
<Type>substitution</Type>
<SubstitutionTemplate>wheretype</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>whologonname</Name>
<Type>substitution</Type>
<SubstitutionTemplate>whologonname</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>whorealname</Name>
<Type>substitution</Type>
<SubstitutionTemplate>whorealname</SubstitutionTemplate>
</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>
</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>
<Folder name="AttributeMaps">
<ALMap name="F00950AM">
<AttributeMap name="Input">
<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>
<State>Enabled</State>
</ALMap>
<ALMap name="F9312AM">
<AttributeMap name="Input">
<AttributeMapItem>
<Name>SHEVSTAT</Name>
<Type>advanced</Type>
<Script>ret.value = conn.getAttribute("SHEVSTAT");</Script>
<Simple>SHEVSTAT</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>SHEVTYP</Name>
<Type>advanced</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>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>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>
<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>
</AttributeMapItem>
<AttributeMapItem>
<Name>new_when</Name>
<Type>advanced</Type>
<Script>ret.value = "UNKNOWN";</Script>
<Simple>new_when</Simple>
</AttributeMapItem>
</AttributeMap>
<State>Enabled</State>
</ALMap>
<ALMap name="F95921AM">
<AttributeMap name="Input"/>
</ALMap>
<ALMap name="F96215AM">
<AttributeMap name="Input"/>
</ALMap>
<ALMap name="F96225AM">
<AttributeMap name="Input"/>
</ALMap>
<ALMap name="F9670AM">
<AttributeMap name="Input"/>
</ALMap>
<ALMap name="F980WSECAM">
<AttributeMap name="Input"/>
<State>Enabled</State>
</ALMap>
</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>
