<?xml version="1.0" encoding="UTF-8"?>
<MetamergeConfig IDIversion="Created by TDI6.1.1 - 2008-11-26" created="Thu Jan 29 00:05:20 CET 2009" createdBy="NO010196" modified="Thu Jan 29 00:05:20 CET 2009" modifiedBy="NO010196" version="6.1.1">
<Folder name="AssemblyLines">
<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>true</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";

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;
	}
}

// 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>
</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>
</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\CARS\Demo\W7 Import</parameter>
<parameter name="$initialize.2. File creation directory">Projects\CARS\Demo\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">10</parameter>
<parameter name="$initialize.4. Prefix for W7 import files">EventsFromTDI_</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>
</Folder>
<Folder name="Parsers"/>
<Folder name="EventHandlers"/>
<Folder name="Scripts"/>
<JavaLibraries/>
<JavaProperties/>
<Folder name="Includes"/>
<Folder name="Config">
<LogConfig name="Logging"/>
<InstanceProperties name="AutoStart">
<AutoStart/>
</InstanceProperties>
<TombstonesConfig name="Tombstones"/>
<SolutionInterface name="SolutionInterface"/>
</Folder>
<Folder name="Functions"/>
<Folder name="AttributeMaps"/>
<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>
