<?xml version="1.0" encoding="UTF-8"?>
<MetamergeConfig IDIversion="Created by TDI6.1.1 - 2008-03-12" created="Fri Oct 05 15:34:56 CDT 2007" createdBy="admin" modified="Sat Jul 05 18:54:23 CEST 2008" modifiedBy="Tivoli" version="6.1.1">
<Folder name="AssemblyLines">




















<AssemblyLine name="EIF_to_TSRM">
<LogEnabled>true</LogEnabled>
<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>
<Logger name="IDIFileRoller">
<parameter name="IDIFileRoller.File">logs/EIF_to_TSRM.log</parameter>
<parameter name="IDIFileRoller.RollCount">25</parameter>
<parameter name="Pattern.ConversionPattern">%d{ISO8601} %-5p [%c] - %m%n</parameter>
<parameter name="com.ibm.di.log.appender">IDIFileRoller</parameter>
<parameter name="com.ibm.di.log.layout">Pattern</parameter>
<parameter name="com.ibm.di.log.level">INFO</parameter>
<parameter name="enabled">true</parameter>
</Logger>
</LogConfig>
<ContainerEF name="EntryFeedContainer">
<Connector name="EIFListener">
<InheritFrom>/Connectors/EIFListener</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="eifWaitTimeout">0</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>identifier</Name>
<Type>simple</Type>
<Script>ret.value = conn.getAttribute("identifier");</Script>
</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>
</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>
<Connector name="eif_filesim">
<InheritFrom>/Connectors/eif_filesim</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Disabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<DeltaSettings>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
<SchemaItem>
<Name>agent</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>alertgroup</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>alertkey</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>className</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>identifier</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>internallast</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>lastoccurrence</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>manager</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>node</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>nodealias</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>server_identifier</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>severity</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>summary</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>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerEF>
<ContainerDF name="DataFlowContainer">
<Connector name="Define functions">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Disabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[function reportBadEvent(entry, msg) {
	// Get name of calling component
	var str = "** [" + thisConnector.getName() + "] - " + msg + " **********************************************";

	/// Get list of attributes
	var attList = entry.getAttributeNames();

	java.util.Arrays.sort(attList);

	for (att in attList)
		str += "\n---> " + att;

	task.logmsg("\n" + str);
}

reportBadEvent(work, "bad event");

]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<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="Strip Quotes">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[var name;
var value;

// get a list of all the attributes in our work unit
var attribute_names = work.getAttributeNames();

// go through each attrribute
for (i = 0; i < attribute_names.length; i++) {
	name = attribute_names[i];
	value = work.getAttribute(name).getValue();

	if (value != null) {
		// if an attribute starts and ends with a single quote then remvoe them
		if ((value.charAt(0) == "\'") && (value.charAt(value.length - 1)) == "\'") {
			work.setAttribute(name, value.substring(1, value.length - 1));
		}
	}
}]]></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="Variables for AttMap">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[// map netcool severity to maximo priority
var severity = work.getString("severity");
if (severity == null)
	severity = "";

var className = work.getString("className");
if (className == null)
	className = "";
]]></ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings/>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
<ALMap name="AttrMap_EIF_to_TSRM">
<AttributeMap name="Input">
<InheritFrom>[no inheritance]</InheritFrom>
<AttributeMapItem>
<Name>T_EIF_ID</Name>
<Type>advanced</Type>
<Script><![CDATA[ret.value = getEIFSystemId();
]]></Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>T_PRIORITY</Name>
<Type>advanced</Type>
<Script><![CDATA[// map netcool severity to maximo priority
switch (severity) {
	case "0":
		if (className == "OMNIbus_Insert") {
			// if this is an insert we are processing then we map a netcool
			// clear to a maximo low (4)
			ret.value = 4;
		} else {
			// else this is an update to clear or a delete - both indications that
			// a ticket should be closed and not really that its severity should
			// changed so we leave new_severity as null
			ret.value = null;
		}
		break;
	case "1":
		// low
		ret.value = 4;
		break;
	case "2":
		// medium
		ret.value = 3;
		break;
	case "3":
		// high
		ret.value = 2;
		break;
	case "4":
		// urgent
		ret.value = 1;
		break;
	case "5":
		// urgent
		ret.value = 1;
		break;
	default:
		task.logmsg("alert has an unknown severity (" + work.getString("severity") + "). mapping to maximo severity \"high\" (2)");
		task.dumpEntry(work);
		ret.value = 2;
		break;
}

// ret.value is now a javascript Number object but we need it to be a
// java Integer so that when it is converted to text it doesn't have a
// ".0" appended. If we use ret.value in any Java expression it becomes
// a java.lang.Double
if (ret.value != null) {
	ret.value = new java.lang.Integer(ret.value.intValue());
}
]]></Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>T_STATUS</Name>
<Type>advanced</Type>
<Script><![CDATA[if (className) {
	// a new event
	if (severity == "0") {
		// this new event is already cleared so we should create an already resolved
		// ticket
		ret.value = "RESOLVED";
	} else {
		// other inserts get a new ticket
		ret.value = "NEW";
	}
} else if (className == "OMNIbus_Delete") {
	// a deletion means the ticket should be resolved
	ret.value = "RESOLVED";
} else {
	// must be an update
	if (severity == "0") {
		// an update to clear means its time to close the ticket
		ret.value = "RESOLVED";
	} else {
		// all other updates have their status left
		ret.value = null;
	}
}
]]></Script>
<Simple>status</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>T_TICKET_TYPE</Name>
<Type>substitution</Type>
<SubstitutionTemplate>INCIDENT</SubstitutionTemplate>
</AttributeMapItem>
</AttributeMap>
<State>Enabled</State>
</ALMap>
<Connector name="Display">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[msg = "\n\n@@@---> EIF to TSRM: Event (" +
				work.getString("className") +
				") for " + work.getString("server_identifier") +
				"   id: " + work.getString("T_EIF_ID") + "\n";

task.logmsg(msg);]]></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="MaximoLookupTicketByExternalrecid">
<InheritFrom>/Connectors/MaximoLookupTicketByExternalrecid</InheritFrom>
<ConnectorMode>Lookup</ConnectorMode>
<ConnectorState>Disabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>CLASS</Name>
<Type>simple</Type>
<Script>ret.value = conn.getAttribute("CLASS");</Script>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<DeltaSettings>
<InheritFrom>[no inheritance]</InheritFrom>
<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>
<Connector name="ClassifyEIFTicket">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Disabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[task.logmsg("Classifiying EIF Ticket");

var server_identifier = work.getString("server_identifier");
var severity = work.getString("severity");

task.logmsg("Server ID: " + server_identifier + "; Severity: " + severity);

if (work.getString("className").equals("OMNIbus_Insert")) {
    if ("5".equals(severity)) {
        work.setAttribute("T_TICKET_TYPE", "INCIDENT");
        task.logmsg("Ticket class is INCIDENT.");
    } else {
        work.setAttribute("T_TICKET_TYPE", "SR");
        task.logmsg("Ticket class is SERVICE REQUEST.");
    }
}
]]></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>
<Branch name="Is_ServiceRequest">
<ALMap name="AttrMap_SR_EIF_Maximo">
<AttributeMap name="Input">
<InheritFrom>[no inheritance]</InheritFrom>
<AttributeMapItem>
<Name>T_CLASS</Name>
<Type>advanced</Type>
<Script>ret.value = getSynonymValue(SendToMaximoAsSR, "TKCLASS", "SR");</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>T_EXTERNALSYSTEM</Name>
<Type>advanced</Type>
<Script>ret.value = getSynonymKey(SendToMaximoAsSR, "TSDTKTSOURCE", "EVENTMANAGEMENT");</Script>
<Simple>T_EXTERNALSYSTEM</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>T_STATUS</Name>
<Type>advanced</Type>
<Script><![CDATA[var status = work.getAttribute("T_STATUS");

if (status == null || status.getValue() == null) {
    ret.value = null;
} else {
    ret.value = getSynonymValue(SendToMaximoAsSR, "SRSTATUS", status);
}]]></Script>
<Simple>T_STATUS</Simple>
</AttributeMapItem>
</AttributeMap>
<State>Enabled</State>
</ALMap>
<Connector name="SendToMaximoAsSR">
<InheritFrom>/Connectors/SendToMaximoAsSR</InheritFrom>
<ConnectorMode>Update</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="authenticationRequired">@SUBSTITUTE{property.TSRM:default.maximo.authentication.required}</parameter>
<parameter name="maximoBaseURL">@SUBSTITUTE{property.TSRM:default.maximo.url}</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<DeltaSettings>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
<Conditions>
<BranchCondition>
<LeftHand>T_TICKET_TYPE</LeftHand>
<Operator>equals</Operator>
<RightHand>SR</RightHand>
<Negate>false</Negate>
<CaseSensitive>false</CaseSensitive>
</BranchCondition>
</Conditions>
<MatchAny>false</MatchAny>
<Enabled>false</Enabled>
<Type>0</Type>
</Branch>
<Branch name="Is_Incident">
<ALMap name="AttrMap_Incident_EIF_Maximo">
<AttributeMap name="Input">
<InheritFrom>[no inheritance]</InheritFrom>
<AttributeMapItem>
<Name>T_CLASS</Name>
<Type>advanced</Type>
<Script>ret.value = getSynonymValue(SendToMaximoAsIncident, "TKCLASS", "INCIDENT");</Script>
</AttributeMapItem>
<AttributeMapItem>
<Name>T_EXTERNALSYSTEM</Name>
<Type>advanced</Type>
<Script>ret.value = getSynonymKey(SendToMaximoAsIncident, "TSDTKTSOURCE", "EVENTMANAGEMENT");</Script>
<Simple>T_EXTERNALSYSTEM</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>T_STATUS</Name>
<Type>advanced</Type>
<Script><![CDATA[var status = work.getAttribute("T_STATUS");

if (status == null || status.getValue() == null) {
    ret.value = null;
} else {
    ret.value = getSynonymValue(SendToMaximoAsIncident, "INCIDENTSTATUS", status);
}]]></Script>
<Simple>T_STATUS</Simple>
</AttributeMapItem>
</AttributeMap>
<State>Enabled</State>
</ALMap>
<Connector name="SendToMaximoAsIncident">
<InheritFrom>/Connectors/SendToMaximoAsIncident</InheritFrom>
<ConnectorMode>Update</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[no inheritance]</InheritFrom>
<AttributeMapItem>
<Name>CLASS</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script><![CDATA[var severity = work.getAttribute("TECSEVERITY");
if (severity != null) {
    severity = severity.getValue();
}

if ("FATAL".equals(severity)) {
    ret.value = "INCIDENT";
} else {
    ret.value = "SR";
}
]]></Script>
<Simple>T_CLASS</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>DESCRIPTION</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>ret.value = "TECTicketID:" + work.getAttribute("TECTTID").getValue();</Script>
<Simple>summary</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>DESCRIPTION_LONGDESCRIPTION</Name>
<Type>advanced</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script><![CDATA[node = work.getString("node");
summary = work.getString("summary");

if (node == null)
	ret.value = summary
else if (summary == null) 
	ret.value = null
else
	ret.value = node + " - " + summary

]]></Script>
<Simple>summary</Simple>
<SubstitutionTemplate>{work.node} - {work.summary}</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>EXTERNALRECID</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>null</Script>
<Simple>T_EIF_ID</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>EXTERNALSYSTEM</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>ret.value = work.getAttribute("EXTERNALSYSTEM");</Script>
<Simple>T_EXTERNALSYSTEM</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>EXTERNALSYSTEM_TICKETID</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>server_identifier</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>INTERNALPRIORITY</Name>
<Type>simple</Type>
<Simple>T_PRIORITY</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>REPORTEDPRIORITY</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script><![CDATA[var val = work.getAttribute("TECSEVERITY");
if (val == null) {
    task.logmsg("No REPORTEDPRIORITY, default to INFO");
    val = "INFO";
} else {
    val = val.getValue();
}

if ("CRITICAL".equals(val)) {
    ret.value = "2";
} else if ("FATAL".equals(val)) {
    ret.value = "1";
} else if ("WARNING".equals(val)) {
    ret.value = "3";
} else {
    ret.value = "4";
}]]></Script>
<Simple>T_PRIORITY</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>STATUS</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script><![CDATA[var tecop = work.getAttribute("TECOPERATION").getValue();

if ("CLOSE_TT".equals(tecop)) {
    ret.value = "RESOLVED";
} else if ("OPEN_TT".equals(tecop)) {
    ret.value = "NEW";
} else {
    ret.value = null; //do not report status if updating
}
]]></Script>
<Simple>T_STATUS</Simple>
<SubstitutionTemplate>null</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>
<Hook>
<Name>before_add</Name>
<Script><![CDATA[if (work.getString("ClassName") != "OMNIbus_Insert") {
	task.logmsg("ERROR", "Received " +
							work.getString("ClassName") + " (server_identifier: " +
							work.getString("server_identifier") +
							") for ticket not already registered in Maximo" );
	task.dumpEntry(conn);
	system.exitFlow();
}]]></Script>
<Enabled>true</Enabled>
</Hook>
<Hook>
<Name>before_modify</Name>
<Script><![CDATA[task.logmsg("Updating " +
							work.getString("ClassName") + " (server_identifier: " +
							work.getString("server_identifier") +
							") for ticket found in Maximo" );]]></Script>
<Enabled>true</Enabled>
</Hook>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
<Conditions>
<BranchCondition>
<LeftHand>T_TICKET_TYPE</LeftHand>
<Operator>equals</Operator>
<RightHand>INCIDENT</RightHand>
<CaseSensitive>true</CaseSensitive>
</BranchCondition>
</Conditions>
<MatchAny>false</MatchAny>
<Enabled>true</Enabled>
<Type>0</Type>
</Branch>
</ContainerDF>
<ThreadOptions/>
<Operations/>
<InitParams>
<Schema name="AssemblyLineInitParams"/>
</InitParams>
</AssemblyLine>














<AssemblyLine name="TSRM_to_EIF_Incident">
<LogEnabled>true</LogEnabled>
<Settings>
<parameter name="ALPoolSettingsDialog">showALPoolSettings</parameter>
<parameter name="automapattributes">false</parameter>
<parameter name="createTombstones">false</parameter>
<parameter name="debug">false</parameter>
<parameter name="includeGlobalPrologs">true</parameter>
<parameter name="nullBehaviorDialog">showNullBehavior</parameter>
</Settings>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<LogConfig/>
<ContainerEF name="EntryFeedContainer">
<Connector name="MaximoIncident">
<InheritFrom>/Connectors/MaximoIncident</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>CHANGEDATE</Name>
<Type>simple</Type>
<Simple>CHANGEDATE</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>DESCRIPTION</Name>
<Type>simple</Type>
<Simple>DESCRIPTION</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>DESCRIPTION_LONGDESCRIPTION</Name>
<Type>simple</Type>
<Simple>DESCRIPTION_LONGDESCRIPTION</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>EXTERNALRECID</Name>
<Type>simple</Type>
<Script><![CDATA[ret.value = hashToExt(conn.getString("EXTERNALRECID"));
]]></Script>
<Simple>EXTERNALRECID</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>EXTERNALSYSTEM_TICKETID</Name>
<Type>simple</Type>
<Simple>EXTERNALSYSTEM_TICKETID</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>INTERNALPRIORITY</Name>
<Type>advanced</Type>
<Script><![CDATA[prio = conn.getObject("INTERNALPRIORITY");

if (prio == null)
	prio = conn.getObject("REPORTEDPRIORITY");

ret.value = prio;]]></Script>
<Simple>INTERNALPRIORITY</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>LOCATION</Name>
<Type>simple</Type>
<Simple>LOCATION</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>OWNERGROUP</Name>
<Type>simple</Type>
<Simple>OWNERGROUP</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>REPORTEDPRIORITY</Name>
<Type>simple</Type>
<Simple>REPORTEDPRIORITY</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>STATUS</Name>
<Type>simple</Type>
<Simple>STATUS</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>TICKETID</Name>
<Type>simple</Type>
<Simple>TICKETID</Simple>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<DeltaSettings>
<Enabled>true</Enabled>
<UniqueAttribute>TICKETID</UniqueAttribute>
<FilePath>TSRM_Snapshots</FilePath>
<ReadDeleted>true</ReadDeleted>
<RemoveDeleted>true</RemoveDeleted>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
<SchemaItem>
<Name>ACTLABCOST</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>ACTLABHRS</Name>
<Syntax>java.lang.Double</Syntax>
</SchemaItem>
<SchemaItem>
<Name>ACTUALCONTACTDATE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>ACTUALFINISH</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>ACTUALSTART</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>AFFECTEDDATE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>AFFECTEDEMAIL</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>AFFECTEDPERSON</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>AFFECTEDPHONE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>ASSETNUM</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>ASSETORGID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>ASSETSITEID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>CHANGEBY</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>CHANGEDATE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>CINUM</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>CLASS</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>CLASS#maxvalue</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>CLASSIFICATIONID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>CLASSSTRUCTUREID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>COMMODITY</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>COMMODITYGROUP</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>CORRELATIONATTRS</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>CREATEDBY</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>CREATEWOMULTI</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>CREATEWOMULTI#maxvalue</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>CREATIONDATE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>DESCRIPTION</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>DESCRIPTION_LONGDESCRIPTION</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>DESCSRVID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>EXTERNALRECID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>EXTERNALSYSTEM</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>EXTERNALSYSTEM#maxvalue</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>EXTERNALSYSTEM_TICKETID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FAILURECODE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FR1CODE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FR1CODE_LONGDESCRIPTION</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FR2CODE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>FR2CODE_LONGDESCRIPTION</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>GLOBALTICKETCLASS</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>GLOBALTICKETID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HASACTIVITY</Name>
<Syntax>java.lang.Boolean</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HASSOLUTION</Name>
<Syntax>java.lang.Boolean</Syntax>
</SchemaItem>
<SchemaItem>
<Name>HISTORYFLAG</Name>
<Syntax>java.lang.Boolean</Syntax>
</SchemaItem>
<SchemaItem>
<Name>INHERITSTATUS</Name>
<Syntax>java.lang.Boolean</Syntax>
</SchemaItem>
<SchemaItem>
<Name>INTERNALPRIORITY</Name>
<Syntax>java.lang.Long</Syntax>
</SchemaItem>
<SchemaItem>
<Name>ISGLOBAL</Name>
<Syntax>java.lang.Boolean</Syntax>
</SchemaItem>
<SchemaItem>
<Name>ISKNOWNERROR</Name>
<Syntax>java.lang.Boolean</Syntax>
</SchemaItem>
<SchemaItem>
<Name>ISKNOWNERRORDATE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>LOCATION</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>ORGID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>ORIGRECORDCLASS</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>ORIGRECORDID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>ORIGRECORGID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>ORIGRECSITEID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>OWNER</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>OWNERGROUP</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>PMCOMRESOLUTION</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>PMCOMTYPE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>PROBLEMCODE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>PROBLEMCODE_LONGDESCRIPTION</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>RELATEDTOGLOBAL</Name>
<Syntax>java.lang.Boolean</Syntax>
</SchemaItem>
<SchemaItem>
<Name>REMARKDESC_LONGDESCRIPTION</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTDATE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDBY</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDEMAIL</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDPHONE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDPRIORITY</Name>
<Syntax>java.lang.Long</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SEARCHSOURCE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SELFSERVSOLACCESS</Name>
<Syntax>java.lang.Boolean</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SITEID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SITEVISIT</Name>
<Syntax>java.lang.Boolean</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SOLUTION</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SOURCE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>STATUS</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>STATUS#maxvalue</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>STATUSDATE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>SUPERVISOR</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>TARGETCONTACTDATE</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>TARGETDESC</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>TARGETFINISH</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>TARGETSTART</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>TEMPLATE</Name>
<Syntax>java.lang.Boolean</Syntax>
</SchemaItem>
<SchemaItem>
<Name>TEMPLATEID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>TICKETID</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>TICKETUID</Name>
<Syntax>java.lang.Long</Syntax>
</SchemaItem>
<SchemaItem>
<Name>VENDOR</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
<Hook>
<Name>after_close</Name>
<Script><![CDATA[//Try to store the last execution date
storeNewLastExecutionDate(maxDate, "LASTEXECUTION_EIFINCIDENT_MAXIMO", "", "", "Maximo_ESD");
]]></Script>
<Enabled>true</Enabled>
</Hook>
<Hook>
<Name>after_getnext</Name>
<Script><![CDATA[if (conn.getOperation() == "delete") 
	system.skipEntry();]]></Script>
<Enabled>true</Enabled>
</Hook>
<Hook>
<Name>before_initialize</Name>
<Script><![CDATA[convertQueryCriteria( "LASTEXECUTION_EIFINCIDENT_MAXIMO", "Maximo_ESD", getEIFSystemId());

//Define the maxDate variable that will store the last date for each execution
var maxDate = "";]]></Script>
<Enabled>true</Enabled>
</Hook>
<Hook>
<Name>default_fail</Name>
<Script><![CDATA[// Swallow error
task.logmsg("ERROR: " + error);]]></Script>
<Enabled>true</Enabled>
</Hook>
<Hook>
<Name>end_of_data</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>get_ok</Name>
<Script><![CDATA[//Verify whether dates stored in the current connection are great than the MaxDate.
var currentMaxDate = defineTheHighestDate( "", "CHANGEDATE", "", "", "Maximo_ESD" );

//In the first iteraction, this variable is null
if( maxDate == "" ) {

   maxDate = currentMaxDate;
} else {

   //Verify whether the currentDate is higher than the maxDate
   var result = currentMaxDate.compareTo( maxDate );
   if( result > 0 ) {

      maxDate = currentMaxDate;
   }
}
]]></Script>
<Enabled>true</Enabled>
</Hook>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerEF>
<ContainerDF name="DataFlowContainer">
<ALMap name="AttrMap_TSRM_to_EIF">
<AttributeMap name="Input">
<InheritFrom>[no inheritance]</InheritFrom>
<AttributeMapItem>
<Name>T_SEVERITY</Name>
<Type>advanced</Type>
<Script><![CDATA[// if the ticket has been resolved or closed then we need to clear
// the alert in netcool
if (work.getString("STATUS").equals("RESOLVED") ||
	work.getString("STATUS").equals("CLOSED")) {
	ret.value = "0";
} else {
	// ticket is still open so map maximo priorities to netcool
	// severities
	switch (String(work.getString("INTERNALPRIORITY"))) {
		case "1":
			ret.value = "5";
			break;
		case "2":
			ret.value = "3";
			break;
		case "3":
			ret.value = "2";
			break;
		case "4":
			ret.value = "1";
			break;
		default:
			task.logmsg("ticket has an unknown priority (" +
				work.getString("INTERNALPRIORITY") +
				"). mapping to indeterminate");
			task.dumpEntry(work);
			ret.value = "1";
			break;
	}
}]]></Script>
</AttributeMapItem>
</AttributeMap>
<State>Enabled</State>
</ALMap>
<Connector name="display">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration/>
<ConnectorScript><![CDATA[msg = "\n\n@@@ ----> Ticket ID: " + work.getString("ticketid") +
		"   Severity: " + work.getString("t_severity") +
		"   Owner group: " + work.getString("ownergroup") +
		"   Omnibus id: " + work.getString("EXTERNALSYSTEM_TICKETID") + 
		"   Change date: " + work.getString("ChangeDate") + "\n";

task.logmsg(msg);]]></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="EIFOut">
<InheritFrom>/Connectors/EIFOut</InheritFrom>
<ConnectorMode>AddOnly</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="eifWaitTimeout"/>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>/Connectors/MaximoIncident</InheritFrom>
<AttributeMapItem>
<Name>className</Name>
<Type>advanced</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>ret.value = "TSRM_updates";</Script>
<Simple>className</Simple>
<SubstitutionTemplate>{work.className}</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>location</Name>
<Type>simple</Type>
<Simple>TICKETID</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>owner_group</Name>
<Type>simple</Type>
<Script>OWNERGROUP</Script>
<Simple>OWNERGROUP</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>server_identifier</Name>
<Type>simple</Type>
<Simple>EXTERNALSYSTEM_TICKETID</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>severity</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>T_SEVERITY</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>status</Name>
<Type>simple</Type>
<Simple>status</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>summary</Name>
<Type>simple</Type>
<Enabled>false</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>DESCRIPTION_LONGDESCRIPTION</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>
<Hook>
<Name>before_add</Name>
<Script><![CDATA[msg = "\n\nsummary: " + conn.getString("summary") +"\n\n";

task.logmsg(msg);]]></Script>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>default_fail</Name>
<Script><![CDATA[// Swallow error
task.logmsg("ERROR: " + error);]]></Script>
<Enabled>true</Enabled>
</Hook>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
<InitializeOption>0</InitializeOption>
</Connector>
<Connector name="dumpIt">
<ConnectorMode>Script</ConnectorMode>
<ConnectorState>Disabled</ConnectorState>
<Configuration/>
<ConnectorScript>task.dumpEntry(work);</ConnectorScript>
<Parser/>
<AttributeMap name="Input"/>
<AttributeMap name="Output"/>
<DeltaSettings>
<Driver>BTree</Driver>
</DeltaSettings>
<Schema name="Input"/>
<Schema name="Output"/>
<LinkCriteria/>
<Hooks/>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance/>
</Connector>
</ContainerDF>
<ThreadOptions/>
<Operations/>
<InitParams>
<Schema name="AssemblyLineInitParams"/>
</InitParams>
</AssemblyLine>
<AssemblyLine name="FIRE_TSRM_to_EIF">
<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>
<Logger name="IDIFileRoller">
<parameter name="IDIFileRoller.File">logs/FIRE_TSRM_to_EIF.log</parameter>
<parameter name="IDIFileRoller.RollCount">25</parameter>
<parameter name="Pattern.ConversionPattern">%d{ISO8601} %-5p [%c] - %m%n</parameter>
<parameter name="com.ibm.di.log.appender">IDIFileRoller</parameter>
<parameter name="com.ibm.di.log.layout">Pattern</parameter>
<parameter name="com.ibm.di.log.level">INFO</parameter>
<parameter name="enabled">true</parameter>
</Logger>
</LogConfig>
<ContainerEF name="EntryFeedContainer">
<Connector name="Timer">
<InheritFrom>system:/Connectors/ibmdi.Timer</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Disabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="minutes">*</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>timestamp</Name>
<Type>simple</Type>
<Simple>timestamp</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>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
<Hook>
<Name>override_getnext</Name>
<Script>work.setAttribute("timestamp", new java.util.Date());	</Script>
<Enabled>false</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>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
<Connector name="Scripted Timer">
<InheritFrom>system:/Connectors/ibmdi.ScriptConnector</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="includeFiles"/>
<parameter name="script"><![CDATA[// Sample connector
// Place initialization code before function declarations
//
var waittime = system.getTDIProperty("TSRM", "time.between.polling.MEA"); // seconds to wait
if (!system.isValidInt(waittime))
	waittime = 5
else
	waittime = new java.lang.Integer(waittime);


function selectEntries()
{
}

function getNextEntry ()
{
	task.logmsg("...sleeping for " + waittime + " second(s)...");

	system.sleep(waittime);

	entry.setAttribute ("timestamp", new java.util.Date());
}
]]></parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<DeltaSettings>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
</Hooks>
<CheckpointConfig/>
<SandboxConfig/>
<Reconnect>
<InheritFrom>[parent]</InheritFrom>
<parameter name="initreconnect">false</parameter>
<parameter name="numberOfRetries">1</parameter>
<parameter name="retryDelay">10</parameter>
</Reconnect>
<Operations/>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
</ContainerEF>
<ContainerDF name="DataFlowContainer">
<Function name="Fire TSRM_to_EIF">
<UserComment/>
<InheritFrom>system:/Functions/ibmdi.AssemblyLineFC</InheritFrom>
<parameter name="assemblyLine">TSRM_to_EIF_Incident</parameter>
<parameter name="debug">false</parameter>
<parameter name="shareLog">true</parameter>
<parameter name="state">Enabled</parameter>
<parameter name="userComment"/>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
<SchemaItem>
<Name>CHANGEDATE</Name>
</SchemaItem>
<SchemaItem>
<Name>DESCRIPTION</Name>
</SchemaItem>
<SchemaItem>
<Name>DESCRIPTION_LONGDESCRIPTION</Name>
</SchemaItem>
<SchemaItem>
<Name>EXTERNALRECID</Name>
</SchemaItem>
<SchemaItem>
<Name>EXTERNALSYSTEM_TICKETID</Name>
</SchemaItem>
<SchemaItem>
<Name>INTERNALPRIORITY</Name>
</SchemaItem>
<SchemaItem>
<Name>LOCATION</Name>
</SchemaItem>
<SchemaItem>
<Name>OWNERGROUP</Name>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDPRIORITY</Name>
</SchemaItem>
<SchemaItem>
<Name>STATUS</Name>
</SchemaItem>
<SchemaItem>
<Name>TICKETID</Name>
</SchemaItem>
<SchemaItem>
<Name>T_SEVERITY</Name>
</SchemaItem>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
<SchemaItem>
<Name>CHANGEDATE</Name>
</SchemaItem>
<SchemaItem>
<Name>DESCRIPTION</Name>
</SchemaItem>
<SchemaItem>
<Name>DESCRIPTION_LONGDESCRIPTION</Name>
</SchemaItem>
<SchemaItem>
<Name>EXTERNALRECID</Name>
</SchemaItem>
<SchemaItem>
<Name>EXTERNALSYSTEM_TICKETID</Name>
</SchemaItem>
<SchemaItem>
<Name>INTERNALPRIORITY</Name>
</SchemaItem>
<SchemaItem>
<Name>LOCATION</Name>
</SchemaItem>
<SchemaItem>
<Name>OWNERGROUP</Name>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDPRIORITY</Name>
</SchemaItem>
<SchemaItem>
<Name>STATUS</Name>
</SchemaItem>
<SchemaItem>
<Name>TICKETID</Name>
</SchemaItem>
<SchemaItem>
<Name>T_SEVERITY</Name>
</SchemaItem>
</Schema>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
<Hook>
<Name>no_reply</Name>
<Enabled>true</Enabled>
</Hook>
</Hooks>
<Configuration>
<UserComment/>
<InheritFrom>[parent]</InheritFrom>
<parameter name="assemblyLine">TSRM_to_EIF_Incident</parameter>
<parameter name="debug">false</parameter>
<parameter name="shareLog">true</parameter>
<parameter name="userComment"/>
</Configuration>
<SandboxConfig/>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
</Function>
</ContainerDF>
<ThreadOptions/>
<Operations/>
<InitParams>
<Schema name="AssemblyLineInitParams"/>
</InitParams>
</AssemblyLine>


</Folder>
<Folder name="Connectors">











<Connector name="MaximoIncident">
<InheritFrom>system:/Connectors/ibmdi.GenericMaximoConnector</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="authenticationRequired">@SUBSTITUTE{property.TSRM:default.maximo.authentication.required}</parameter>
<parameter name="debug">false</parameter>
<parameter name="enterpriseServiceCreate">MXIncidentCreate</parameter>
<parameter name="enterpriseServiceDelete">MXIncidentDelete</parameter>
<parameter name="enterpriseServiceQuery">MXIncidentQuery</parameter>
<parameter name="enterpriseServiceUpdate">MXIncidentUpdate</parameter>
<parameter name="errorOnExcedentSize">@SUBSTITUTE{property.TSRM:default.maximo.error.excedent.size}</parameter>
<parameter name="externalSystem">EXTSYSTDI</parameter>
<parameter name="maximoBaseURL">@SUBSTITUTE{property.TSRM:default.maximo.url}</parameter>
<parameter name="maximoVersion">7 1 Harrier 072 7100-001</parameter>
<parameter name="maxobjEnterpriseService">MXMaxObjectQuery</parameter>
<parameter name="maxobjObjectStructure">MXOBJECTCFG</parameter>
<parameter name="mbo"/>
<parameter name="objectStructure">MXOSINCIDENT</parameter>
<parameter name="pageSize">100</parameter>
<parameter name="password">@SUBSTITUTE{property.TSRM:default.maximo.password}</parameter>
<parameter name="queryCriteria"><![CDATA[<INCIDENT>
  <CHANGEDATE operator="&gt;">{work.LASTEXECUTION_EIFINCIDENT_MAXIMO}</CHANGEDATE>
  <EXTERNALRECID>{work.SYSTEM_ID}</EXTERNALRECID>
</INCIDENT>]]></parameter>
<parameter name="transLanguage">@SUBSTITUTE{property.TSRM:default.maximo.transaction.language}</parameter>
<parameter name="userId">@SUBSTITUTE{property.TSRM:default.maximo.user}</parameter>
<parameter name="xmlCharacterValidation">@SUBSTITUTE{property.TSRM:default.maximo.xml.character.validation}</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<DeltaSettings>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
<SchemaItem>
<Name>ACTLABCOST</Name>
<NativeSyntax>java.lang.Double</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ACTLABHRS</Name>
<NativeSyntax>java.lang.Double</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ACTUALCONTACTDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ACTUALFINISH</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ACTUALSTART</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>AFFECTEDDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>AFFECTEDEMAIL</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>AFFECTEDPERSON</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>AFFECTEDPHONE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ASSETNUM</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ASSETORGID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ASSETSITEID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CHANGEBY</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CHANGEDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CINUM</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CLASS</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CLASSIFICATIONID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CLASSSTRUCTUREID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>COMMODITY</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>COMMODITYGROUP</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CORRELATIONATTRS</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CREATEDBY</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CREATEWOMULTI</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CREATIONDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>DESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>DESCRIPTION_LONGDESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>DESCSRVID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>EXTERNALRECID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>EXTERNALSYSTEM</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>EXTERNALSYSTEM_TICKETID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FAILURECODE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FR1CODE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FR1CODE_LONGDESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FR2CODE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FR2CODE_LONGDESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>GLOBALTICKETCLASS</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>GLOBALTICKETID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HASACTIVITY</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HISTORYFLAG</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>IMPACT</Name>
<NativeSyntax>java.lang.Long</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>INDICATEDPRIORITY</Name>
<NativeSyntax>java.lang.Long</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>INHERITSTATUS</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>INTERNALPRIORITY</Name>
<NativeSyntax>java.lang.Long</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ISGLOBAL</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ISKNOWNERROR</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ISKNOWNERRORDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>LOCATION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ORGID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ORIGRECORDCLASS</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ORIGRECORDID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ORIGRECORGID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ORIGRECSITEID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>OWNER</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>OWNERGROUP</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>PROBLEMCODE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>PROBLEMCODE_LONGDESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>RELATEDTOGLOBAL</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REMARKDESC_LONGDESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDBY</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDEMAIL</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDPHONE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDPRIORITY</Name>
<NativeSyntax>java.lang.Long</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>SITEID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>SITEVISIT</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>SOLUTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>SOURCE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>STATUS</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>STATUSDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>SUPERVISOR</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TARGETCONTACTDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TARGETDESC</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TARGETFINISH</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TARGETSTART</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TEMPLATE</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TEMPLATEID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TICKETID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TICKETUID</Name>
<NativeSyntax>java.lang.Long</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>URGENCY</Name>
<NativeSyntax>java.lang.Long</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>VENDOR</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>action</Name>
</SchemaItem>
<SchemaItem>
<Name>deleteForInsert</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>relationship</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>transLanguage</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
<AdvancedLinkMode>false</AdvancedLinkMode>
<Script><![CDATA[ret.filter = "";
]]></Script>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
<Hook>
<Name>before_initialize</Name>
<Script/>
<Enabled>false</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>[parent]</InheritFrom>
<Enabled>false</Enabled>
<MinPoolSize>0</MinPoolSize>
<PurgeInterval>0</PurgeInterval>
<InitializeAttempts>1</InitializeAttempts>
</PoolDefinition>
<PoolInstance/>
</Connector>




<Connector name="MaximoServiceRequest">
<InheritFrom>system:/Connectors/ibmdi.GenericMaximoConnector</InheritFrom>
<ConnectorMode>Update</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="authenticationRequired">@SUBSTITUTE{property.TSRM:default.maximo.authentication.required}</parameter>
<parameter name="debug">false</parameter>
<parameter name="enterpriseServiceCreate">MXServreqCreate</parameter>
<parameter name="enterpriseServiceDelete">MXServreqDelete</parameter>
<parameter name="enterpriseServiceQuery">MXServreqQuery</parameter>
<parameter name="enterpriseServiceUpdate">MXServreqUpdate</parameter>
<parameter name="errorOnExcedentSize">@SUBSTITUTE{property.TSRM:default.maximo.error.excedent.size}</parameter>
<parameter name="externalSystem">EXTSYSTDI</parameter>
<parameter name="maximoBaseURL">@SUBSTITUTE{property.TSRM:default.maximo.url}</parameter>
<parameter name="maximoVersion">7 1 Harrier 072 7100-001</parameter>
<parameter name="maxobjEnterpriseService">MXMaxObjectQuery</parameter>
<parameter name="maxobjObjectStructure">MXOBJECTCFG</parameter>
<parameter name="mbo">SR</parameter>
<parameter name="objectStructure">MXOSSERVREQ</parameter>
<parameter name="pageSize">100</parameter>
<parameter name="password">@SUBSTITUTE{property.TSRM:default.maximo.password}</parameter>
<parameter name="queryCriteria"/>
<parameter name="transLanguage">@SUBSTITUTE{property.TSRM:default.maximo.transaction.language}</parameter>
<parameter name="userId">@SUBSTITUTE{property.TSRM:default.maximo.user}</parameter>
<parameter name="xmlCharacterValidation">@SUBSTITUTE{property.TSRM:default.maximo.xml.character.validation}</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<DeltaSettings>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
<SchemaItem>
<Name>ACTLABCOST</Name>
<NativeSyntax>java.lang.Double</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ACTLABHRS</Name>
<NativeSyntax>java.lang.Double</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ACTUALCONTACTDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ACTUALFINISH</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ACTUALSTART</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>AFFECTEDDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>AFFECTEDEMAIL</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>AFFECTEDPERSON</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>AFFECTEDPHONE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ASSETNUM</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ASSETORGID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ASSETSITEID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CHANGEBY</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CHANGEDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CINUM</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CLASS</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CLASSIFICATIONID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CLASSSTRUCTUREID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>COMMODITY</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>COMMODITYGROUP</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CORRELATIONATTRS</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CREATEDBY</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CREATEWOMULTI</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CREATIONDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>DESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>DESCRIPTION_LONGDESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>DESCSRVID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>EXTERNALRECID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>EXTERNALSYSTEM</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>EXTERNALSYSTEM_TICKETID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FAILURECODE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FR1CODE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FR1CODE_LONGDESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FR2CODE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FR2CODE_LONGDESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>GLOBALTICKETCLASS</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>GLOBALTICKETID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HASACTIVITY</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HISTORYFLAG</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>IMPACT</Name>
<NativeSyntax>java.lang.Long</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>INDICATEDPRIORITY</Name>
<NativeSyntax>java.lang.Long</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>INHERITSTATUS</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>INTERNALPRIORITY</Name>
<NativeSyntax>java.lang.Long</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ISGLOBAL</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ISKNOWNERROR</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ISKNOWNERRORDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>LOCATION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ORGID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ORIGRECORDCLASS</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ORIGRECORDID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ORIGRECORGID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ORIGRECSITEID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>OWNER</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>OWNERGROUP</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>PROBLEMCODE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>PROBLEMCODE_LONGDESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>RELATEDTOGLOBAL</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REMARKDESC_LONGDESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDBY</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDEMAIL</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDPHONE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDPRIORITY</Name>
<NativeSyntax>java.lang.Long</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>SITEID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>SITEVISIT</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>SOLUTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>SOURCE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>STATUS</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>STATUSDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>SUPERVISOR</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TARGETCONTACTDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TARGETDESC</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TARGETFINISH</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TARGETSTART</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TEMPLATE</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TEMPLATEID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TICKETID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TICKETUID</Name>
<NativeSyntax>java.lang.Long</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>URGENCY</Name>
<NativeSyntax>java.lang.Long</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>VENDOR</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>action</Name>
</SchemaItem>
<SchemaItem>
<Name>deleteForInsert</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>relationship</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>transLanguage</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
<Hook>
<Name>before_close</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>before_initialize</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>get_ok</Name>
<Script/>
<Enabled>false</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>[parent]</InheritFrom>
<Enabled>false</Enabled>
<MinPoolSize>0</MinPoolSize>
<PurgeInterval>0</PurgeInterval>
<InitializeAttempts>1</InitializeAttempts>
</PoolDefinition>
<PoolInstance/>
</Connector>



<Connector name="SendToMaximoAsIncident">
<InheritFrom>/Connectors/MaximoIncident</InheritFrom>
<ConnectorMode>Update</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="mbo">INCIDENT</parameter>
</Configuration>
<ComputeChanges>true</ComputeChanges>
<DeltaBehavior>0</DeltaBehavior>
<DeltaStrict>true</DeltaStrict>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>CLASS</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script><![CDATA[var severity = work.getAttribute("TECSEVERITY");
if (severity != null) {
    severity = severity.getValue();
}

if ("FATAL".equals(severity)) {
    ret.value = "INCIDENT";
} else {
    ret.value = "SR";
}
]]></Script>
<Simple>T_CLASS</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>DESCRIPTION</Name>
<Type>advanced</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>ret.value = "TECTicketID:" + work.getAttribute("TECTTID").getValue();</Script>
<Simple>summary</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>DESCRIPTION_LONGDESCRIPTION</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>null</Script>
<Simple>summary</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>EXTERNALRECID</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>null</Script>
<Simple>T_EIF_ID</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>EXTERNALSYSTEM</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>ret.value = work.getAttribute("EXTERNALSYSTEM");</Script>
<Simple>T_EXTERNALSYSTEM</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>EXTERNALSYSTEM_TICKETID</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>server_identifier</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>INTERNALPRIORITY</Name>
<Type>simple</Type>
<Simple>T_PRIORITY</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>REPORTEDPRIORITY</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script><![CDATA[var val = work.getAttribute("TECSEVERITY");
if (val == null) {
    task.logmsg("No REPORTEDPRIORITY, default to INFO");
    val = "INFO";
} else {
    val = val.getValue();
}

if ("CRITICAL".equals(val)) {
    ret.value = "2";
} else if ("FATAL".equals(val)) {
    ret.value = "1";
} else if ("WARNING".equals(val)) {
    ret.value = "3";
} else {
    ret.value = "4";
}]]></Script>
<Simple>T_PRIORITY</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>STATUS</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script><![CDATA[var tecop = work.getAttribute("TECOPERATION").getValue();

if ("CLOSE_TT".equals(tecop)) {
    ret.value = "RESOLVED";
} else if ("OPEN_TT".equals(tecop)) {
    ret.value = "NEW";
} else {
    ret.value = null; //do not report status if updating
}
]]></Script>
<Simple>T_STATUS</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
</AttributeMap>
<DeltaSettings>
<InheritFrom>[no inheritance]</InheritFrom>
<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>[no inheritance]</InheritFrom>
<LinkCriteriaItem>
<Key>1126cfd0391</Key>
<Attribute>EXTERNALRECID</Attribute>
<Operator>equals</Operator>
<Value>$T_EIF_ID</Value>
</LinkCriteriaItem>
<LinkCriteriaItem>
<Key>11962e19546</Key>
<Attribute>EXTERNALSYSTEM_TICKETID</Attribute>
<Operator>equals</Operator>
<Value>$server_identifier</Value>
</LinkCriteriaItem>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
<Hook>
<Name>before_lookup</Name>
<Script/>
<Enabled>false</Enabled>
<DebugBreak>false</DebugBreak>
</Hook>
<Hook>
<Name>default_fail</Name>
<Script><![CDATA[task.logmsg("ERROR",
			"==Error updating TSRM");
task.dumpEntry(error);
task.logmsg("ERROR",
			"==Date attempted written to TSRM");
task.dumpEntry(conn);
task.logmsg("ERROR",
			"==Date read on lookup from TSRM");
task.dumpEntry(current);
]]></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/>
<OperationCarrierIsProperty>false</OperationCarrierIsProperty>
<PoolDefinition>
<InheritFrom>[parent]</InheritFrom>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
<InitializeOption>0</InitializeOption>
</Connector>
<Connector name="SendToMaximoAsSR">
<InheritFrom>/Connectors/MaximoServiceRequest</InheritFrom>
<ConnectorMode>Update</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>CLASS</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script><![CDATA[var severity = work.getAttribute("TECSEVERITY");
if (severity != null) {
    severity = severity.getValue();
}

if ("FATAL".equals(severity)) {
    ret.value = "INCIDENT";
} else {
    ret.value = "SR";
}
]]></Script>
<Simple>T_CLASS</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>DESCRIPTION</Name>
<Type>advanced</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>ret.value = "TECTicketID:" + work.getAttribute("TECTTID").getValue();</Script>
<Simple>summary</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>DESCRIPTION_LONGDESCRIPTION</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>null</Script>
<Simple>summary</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>EXTERNALRECID</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>null</Script>
<Simple>T_EIF_ID</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>EXTERNALSYSTEM</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>ret.value = work.getAttribute("EXTERNALSYSTEM");</Script>
<Simple>T_EXTERNALSYSTEM</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>EXTERNALSYSTEM_TICKETID</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>server_identifier</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>INTERNALPRIORITY</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>T_PRIORITY</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>REPORTEDPRIORITY</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script><![CDATA[var val = work.getAttribute("TECSEVERITY");
if (val == null) {
    task.logmsg("No REPORTEDPRIORITY, default to INFO");
    val = "INFO";
} else {
    val = val.getValue();
}

if ("CRITICAL".equals(val)) {
    ret.value = "2";
} else if ("FATAL".equals(val)) {
    ret.value = "1";
} else if ("WARNING".equals(val)) {
    ret.value = "3";
} else {
    ret.value = "4";
}]]></Script>
<Simple>T_PRIORITY</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>STATUS</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script><![CDATA[var tecop = work.getAttribute("TECOPERATION").getValue();

if ("CLOSE_TT".equals(tecop)) {
    ret.value = "RESOLVED";
} else if ("OPEN_TT".equals(tecop)) {
    ret.value = "NEW";
} else {
    ret.value = null; //do not report status if updating
}
]]></Script>
<Simple>T_STATUS</Simple>
<SubstitutionTemplate>null</SubstitutionTemplate>
</AttributeMapItem>
</AttributeMap>
<DeltaSettings>
<InheritFrom>[no inheritance]</InheritFrom>
<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>
<LinkCriteriaItem>
<Key>117a6b952e1</Key>
<Attribute>EXTERNALRECID</Attribute>
<Operator>equals</Operator>
<Value>$T_EIF_ID</Value>
</LinkCriteriaItem>
<LinkCriteriaItem>
<Key>11962e0e3d9</Key>
<Attribute>EXTERNALSYSTEM_TICKETID</Attribute>
<Operator>equals</Operator>
<Value>$server_identifier</Value>
</LinkCriteriaItem>
</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>















<Connector name="MaximoLookupTicketByExternalrecid">
<InheritFrom>system:/Connectors/ibmdi.GenericMaximoConnector</InheritFrom>
<ConnectorMode>Lookup</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="authenticationRequired">@SUBSTITUTE{property.TSRM:default.maximo.authentication.required}</parameter>
<parameter name="debug">false</parameter>
<parameter name="enterpriseServiceCreate"/>
<parameter name="enterpriseServiceDelete"/>
<parameter name="enterpriseServiceQuery">MXTicketQuery</parameter>
<parameter name="enterpriseServiceUpdate"/>
<parameter name="errorOnExcedentSize">@SUBSTITUTE{property.TSRM:default.maximo.error.excedent.size}</parameter>
<parameter name="externalSystem">EXTSYSTDI</parameter>
<parameter name="maximoBaseURL">@SUBSTITUTE{property.TSRM:default.maximo.url}</parameter>
<parameter name="maximoVersion">7 1 Harrier 072 7100-001</parameter>
<parameter name="maxobjEnterpriseService">MXMaxObjectQuery</parameter>
<parameter name="maxobjObjectStructure">MXOBJECTCFG</parameter>
<parameter name="mbo"/>
<parameter name="objectStructure">MXOSTICKET</parameter>
<parameter name="pageSize">100</parameter>
<parameter name="password">@SUBSTITUTE{property.TSRM:default.maximo.password}</parameter>
<parameter name="queryCriteria"/>
<parameter name="transLanguage">@SUBSTITUTE{property.TSRM:default.maximo.transaction.language}</parameter>
<parameter name="userId">@SUBSTITUTE{property.TSRM:default.maximo.user}</parameter>
<parameter name="xmlCharacterValidation">@SUBSTITUTE{property.TSRM:default.maximo.xml.character.validation}</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>CLASS</Name>
<Type>simple</Type>
<Simple>CLASS</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>EXTERNALRECID</Name>
<Type>simple</Type>
<Simple>EXTERNALRECID</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>EXTERNALSYSTEM_TICKETID</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>EXTERNALSYSTEM_TICKETID</Simple>
</AttributeMapItem>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>CLASS</Name>
<Type>simple</Type>
<Script>ret.value = getSynonymValue(thisConnector, "TKCLASS", "INCIDENT");</Script>
<Simple>T_CLASS</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>DESCRIPTION</Name>
<Type>simple</Type>
<Simple>briefDescription</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>DESCRIPTION_LONGDESCRIPTION</Name>
<Type>simple</Type>
<Simple>T_INCIDENTDESCRIPTION</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>EXTERNALRECID</Name>
<Type>simple</Type>
<Simple>T_INCIDENTID</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>EXTERNALSYSTEM</Name>
<Type>advanced</Type>
<Enabled>false</Enabled>
<Script>ret.value = getSynonymKey("TSDTKTSOURCE", "EXTERNALSERVICEDESK");</Script>
<Simple>EXTERNALSYSTEM</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>EXTERNALSYSTEM_TICKETID</Name>
<Type>simple</Type>
<Enabled>false</Enabled>
<Simple>incidentId</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>STATUS</Name>
<Type>simple</Type>
<Simple>T_STATUS</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>
<SchemaItem>
<Name>ACTLABCOST</Name>
<NativeSyntax>java.lang.Double</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ACTLABHRS</Name>
<NativeSyntax>java.lang.Double</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ACTUALCONTACTDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ACTUALFINISH</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ACTUALSTART</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>AFFECTEDDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>AFFECTEDEMAIL</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>AFFECTEDPERSON</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>AFFECTEDPHONE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ASSETNUM</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ASSETORGID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ASSETSITEID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CHANGEBY</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CHANGEDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CINUM</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CLASS</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CLASSSTRUCTUREID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>COMMODITY</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>COMMODITYGROUP</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CORRELATIONATTRS</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>CREATEWOMULTI</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>DESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>DESCRIPTION_LONGDESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>EXTERNALRECID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FAILURECODE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FR1CODE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FR1CODE_LONGDESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FR2CODE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>FR2CODE_LONGDESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>GLOBALTICKETCLASS</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>GLOBALTICKETID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HASACTIVITY</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>HISTORYFLAG</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>IMPACT</Name>
<NativeSyntax>java.lang.Long</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>INHERITSTATUS</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>INTERNALPRIORITY</Name>
<NativeSyntax>java.lang.Long</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ISGLOBAL</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ISKNOWNERROR</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ISKNOWNERRORDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>LOCATION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ORGID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ORIGRECORDCLASS</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ORIGRECORDID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ORIGRECORGID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>ORIGRECSITEID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>OWNER</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>OWNERGROUP</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>PROBLEMCODE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>PROBLEMCODE_LONGDESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>RELATEDTOGLOBAL</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REMARKDESC_LONGDESCRIPTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDBY</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDEMAIL</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDPHONE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>REPORTEDPRIORITY</Name>
<NativeSyntax>java.lang.Long</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>SITEID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>SITEVISIT</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>SOLUTION</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>SOURCE</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>STATUS</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>STATUSDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>SUPERVISOR</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TARGETCONTACTDATE</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TARGETDESC</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TARGETFINISH</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TARGETSTART</Name>
<NativeSyntax>java.lang.Object</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TEMPLATE</Name>
<NativeSyntax>java.lang.Boolean</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TEMPLATEID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TICKETID</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>TICKETUID</Name>
<NativeSyntax>java.lang.Long</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>URGENCY</Name>
<NativeSyntax>java.lang.Long</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>VENDOR</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>action</Name>
</SchemaItem>
<SchemaItem>
<Name>deleteForInsert</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>relationship</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
<SchemaItem>
<Name>transLanguage</Name>
<NativeSyntax>java.lang.String</NativeSyntax>
</SchemaItem>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
<AdvancedLinkMode>false</AdvancedLinkMode>
<Script><![CDATA[ret.filter = "";
]]></Script>
<LinkCriteriaItem>
<Key>1188b3725f5</Key>
<Attribute>EXTERNALRECID</Attribute>
<Operator>equals</Operator>
<Value>$T_EIF_ID</Value>
</LinkCriteriaItem>
<LinkCriteriaItem>
<Key>11a16e1a864</Key>
<Attribute>EXTERNALSYSTEM_TICKETID</Attribute>
<Operator>equals</Operator>
<Value>$server_identifier</Value>
</LinkCriteriaItem>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
<Hook>
<Name>before_add</Name>
<Script><![CDATA[var mxStatus = conn.getString("STATUS");

mxStatus = getSynonymKey(thisConnector, "INCIDENTSTATUS", mxStatus);

if ("CLOSED".equalsIgnoreCase(mxStatus) || "RESOLVED".equalsIgnoreCase(mxStatus)) {
    system.skipEntry();
    task.logmsg("Incident closed or resolved. Skipped.");
}
]]></Script>
<Enabled>true</Enabled>
</Hook>
<Hook>
<Name>before_close</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>before_initialize</Name>
<Script/>
<Enabled>false</Enabled>
</Hook>
<Hook>
<Name>get_ok</Name>
<Script><![CDATA[//Verify whether dates stored in the current connection are great than the MaxDate.
var currentMaxDate = defineTheHighestDate( "", "CHANGEDATE", "", "", "Maximo_ESD" );

//In the first iteraction, this variable is null
if( maxDate == "" ) {

   maxDate = currentMaxDate;
}
else {

   //Verify whether the currentDate is higher than the maxDate
   var result = currentMaxDate.compareTo( maxDate );
   if( result > 0 ) {

      maxDate = currentMaxDate;
   }
}
]]></Script>
<Enabled>true</Enabled>
</Hook>
<Hook>
<Name>lookup_multiple</Name>
<Enabled>true</Enabled>
</Hook>
<Hook>
<Name>lookup_nomatch</Name>
<Script>work.setAttribute("T_TICKET_TYPE","NO_TICKET_CLASS");</Script>
<Enabled>true</Enabled>
</Hook>
<Hook>
<Name>lookup_ok</Name>
<Script><![CDATA[var ticketClass = work.getString("CLASS");
var syn = getSynonymKey(MaximoLookupTicketByExternalrecid, "TKCLASS", ticketClass);

work.setAttribute("T_TICKET_TYPE", syn);
]]></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>[parent]</InheritFrom>
<Enabled>false</Enabled>
<MinPoolSize>0</MinPoolSize>
<PurgeInterval>0</PurgeInterval>
<InitializeAttempts>1</InitializeAttempts>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="EIFListener">
<InheritFrom>system:/Connectors/ibmdi.EIFConnector</InheritFrom>
<ConnectorMode>Iterator</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">true</parameter>
<parameter name="eifWaitOnClose">@SUBSTITUTE{property.TSRM:eif.recv.wait.before.close}</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>agent</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>agent</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>alertgroup</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>alertgroup</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>alertkey</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>alertkey</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>className</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>className</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>identifier</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>identifier</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>internallast</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>internallast</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>lastoccurrence</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>lastoccurrence</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>manager</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>manager</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>node</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>node</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>nodealias</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>nodealias</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>server_identifier</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>server_identifier</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>servername</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>servername</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>serverserial</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>serverserial</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>severity</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>severity</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>summary</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>summary</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>agent</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>alertgroup</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>alertkey</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>className</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>gateway_instance</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>identifier</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>internallast</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>lastoccurrence</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>manager</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>node</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>nodealias</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>omnibus_status</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>server_identifier</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>servername</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>serverserial</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>severity</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>summary</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
<Hook>
<Name>before_initialize</Name>
<Script><![CDATA[var eif_config = "!\n";

eif_config += "ServerLocation=localhost\n";
eif_config += "ServerPort=" + system.getTDIProperty("TSRM", "eif.recv.port") + "\n";
eif_config += "BufEvtPath=" + system.getTDIProperty("TSRM", "eif.recv.cache.location") + "\n";
eif_config += "BufEvtMaxSize=" + system.getTDIProperty("TSRM", "eif.recv.cache.size") + "\n";


if (system.getTDIProperty("TSRM","eif.recv.trace.on") == "true") {
	eif_config += "LogLevel=ALL\n" +
			"TraceLevel=ALL\n" +
			"LogFileName=/tmp/eifrecv_log.out\n" +
			"TraceFileName=/tmp/eifrecv_trc.out\n";

	task.logmsg("\n...setting EIF Config to:\n" + eif_config + "\n");
}

thisConnector.getConnector().setParam("eifConfFilePath", eif_config);]]></Script>
<Enabled>true</Enabled>
</Hook>
<Hook>
<Name>default_fail</Name>
<Script><![CDATA[task.logmsg("ERROR",
			"==Error receiving EIF Event");
task.dumpEntry(error);

]]></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>[parent]</InheritFrom>
<Enabled>false</Enabled>
<MinPoolSize>0</MinPoolSize>
<PurgeInterval>0</PurgeInterval>
<InitializeAttempts>1</InitializeAttempts>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="EIFOut">
<InheritFrom>system:/Connectors/ibmdi.EIFConnector</InheritFrom>
<ConnectorMode>AddOnly</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="eifWaitOnClose">@SUBSTITUTE{property.TSRM:eif.send.wait.before.close}</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>className</Name>
<Type>advanced</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Script>ret.value = "TSRM_updates";</Script>
<Simple>className</Simple>
<SubstitutionTemplate>{work.className}</SubstitutionTemplate>
</AttributeMapItem>
<AttributeMapItem>
<Name>location</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>LOCATION</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>server_identifier</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>EXTERNALSYSTEM_TICKETID</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>severity</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>T_SEVERITY</Simple>
</AttributeMapItem>
<AttributeMapItem>
<Name>summary</Name>
<Type>simple</Type>
<Enabled>true</Enabled>
<Add>true</Add>
<Modify>true</Modify>
<Simple>DESCRIPTION</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>
<Hook>
<Name>addonly_fail</Name>
<Script><![CDATA[task.logmsg("ERROR",
			"==Error sending EIF Event");
task.dumpEntry(error);
task.logmsg("ERROR",
			"==EIF Event attempted sent:");
task.dumpEntry(conn);]]></Script>
<Enabled>true</Enabled>
</Hook>
<Hook>
<Name>before_initialize</Name>
<Script><![CDATA[var eif_config = "!\n";

eif_config += "ServerLocation=" + system.getTDIProperty("TSRM", "eif.send.host") + "\n"
eif_config += "ServerPort=" + system.getTDIProperty("TSRM", "eif.send.port") + "\n";
eif_config += "BufEvtPath=" + system.getTDIProperty("TSRM", "eif.send.cache.location") + "\n";
eif_config += "BufEvtMaxSize=" + system.getTDIProperty("TSRM", "eif.send.cache.size") + "\n";

if (system.getTDIProperty("TSRM","eif.send.trace.on") == "true") {
	eif_config += "LogLevel=ALL\n" +
			"TraceLevel=ALL\n" +
			"LogFileName=/tmp/eifsend_log.out\n" +
			"TraceFileName=/tmp/eifsend_trc.out\n";

	task.logmsg("\n...setting EIF Config to:\n" + eif_config + "\n");
}

thisConnector.getConnector().setParam("eifConfFilePath", eif_config);]]></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>[parent]</InheritFrom>
<Enabled>false</Enabled>
<MinPoolSize>0</MinPoolSize>
<PurgeInterval>0</PurgeInterval>
<InitializeAttempts>1</InitializeAttempts>
</PoolDefinition>
<PoolInstance/>
</Connector>
<Connector name="eif_filesim">
<InheritFrom>system:/Connectors/ibmdi.FileSystem</InheritFrom>
<ConnectorMode>AddOnly</ConnectorMode>
<ConnectorState>Enabled</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="filePath">eif.csv</parameter>
</Configuration>
<Parser>
<InheritFrom>system:/Parsers/ibmdi.CSV</InheritFrom>
<parameter name="characterSet"/>
<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>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
<AttributeMapItem>
<Name>*</Name>
<Type>simple</Type>
<Simple>*</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>
<SchemaItem>
<Name>agent</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>alertgroup</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>alertkey</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>className</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>identifier</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>internallast</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>lastoccurrence</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>manager</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>node</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>nodealias</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>server_identifier</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>severity</Name>
<Syntax>java.lang.String</Syntax>
</SchemaItem>
<SchemaItem>
<Name>summary</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>
</PoolDefinition>
<PoolInstance>
<Enabled>false</Enabled>
<ExhaustedPoolBehavior>Wait</ExhaustedPoolBehavior>
</PoolInstance>
</Connector>
<Connector name="EventLog">
<InheritFrom>system:/Connectors/ibmdi.FileSystem</InheritFrom>
<ConnectorMode>AddOnly</ConnectorMode>
<ConnectorState>Passive</ConnectorState>
<Configuration>
<InheritFrom>[parent]</InheritFrom>
<parameter name="debug">false</parameter>
<parameter name="filePath">logs/EventLog_EIF2TSRM</parameter>
</Configuration>
<Parser>
<InheritFrom>[parent]</InheritFrom>
</Parser>
<AttributeMap name="Input">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<AttributeMap name="Output">
<InheritFrom>[parent]</InheritFrom>
</AttributeMap>
<DeltaSettings>
<WhenToCommit>After every database operation</WhenToCommit>
<Driver>CloudScape</Driver>
</DeltaSettings>
<Schema name="Input">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<Schema name="Output">
<InheritFrom>[parent]</InheritFrom>
</Schema>
<LinkCriteria>
<InheritFrom>[parent]</InheritFrom>
</LinkCriteria>
<Hooks>
<InheritFrom>[parent]</InheritFrom>
<Hook>
<Name>before_initialize</Name>
<Script><![CDATA[var filePath = thisConnector.getConnector().getParam("filePath");

if (filePath == null) 
	filePath = "logs/" + task.getName();

p = filePath.lastIndexOf(".");

if (p > 0) {
	filePath = filePath.substring(0,p);
	ext = filePath.substring(p);
} else {
	ext = "log";
}

var dt = system.formatDate(new java.util.Date(), 
							"YYmmdd");

filePath += "_" + dt + "." + ext;

thisConnector.getConnector.setParam("filePath", filePath);]]></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>[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>
<Folder name="EventHandlers"/>
<Folder name="Scripts">
<Script name="Global">
<parameter name="autoInclude">true</parameter>
<parameter name="includeFiles"/>
<parameter name="script"><![CDATA[/*
 * Returns the EIF system ID.
 */
function getEIFSystemId() {
    return system.getExternalProperty("default.eif.systemId");
}

/*
 * Returns the synonym value for a given key.
 * 
 * @param domainId domain ID
 * @param synonymKey key associated with the synonym value
 * @return synonym value for a given key or <code>null</code> if the
 * domain ID does not exist
 * @throws MxConnectorException if it is not possible obtain the synonym
 * domain from Maximo
 */
function getSynonymValue(domainId, synonymKey) {

    return getSynonymValue(thisConnector, domainId, synonymKey);
}

function getSynonymValue(connector, domainId, synonymKey) {

    var fc = connector.getConnector().getFc();
    var value = fc.getSynonymValue(domainId, synonymKey);

    return value;
}

/*
 * Returns the synonym key for a given value.
 * 
 * @param domainId domain ID
 * @param synonymValue value associated with the synonym key
 * @return synonym key for a given value or <code>null</code> if the
 * domain ID does not exist
 * @throws MxConnectorException if it is not possible obtain the synonym
 * domain from Maximo
 */
function getSynonymKey(domainId, synonymValue) {

    return getSynonymKey(thisConnector, domainId, synonymValue);
}

function getSynonymKey(connector, domainId, synonymValue) {

    var fc = connector.getConnector().getFc();
    var key = fc.getSynonymKey(domainId, synonymValue);

    return key;
}
]]></parameter>
</Script>
<Script name="Offset_Script">
<parameter name="autoInclude">true</parameter>
<parameter name="includeFiles"/>
<parameter name="script"><![CDATA[/*
 * IBM CONFIDENTIAL
 * Author: mauroms
 * Version: 0.1
 * Creation date: 21/09/2007
 * Changes:
 * 	Script name			Author 			Change date				Root cause				Solution
 *
 */
importPackage(Packages.java.text);
importPackage(Packages.java.io);
importPackage(Packages.java.util);
importPackage(Packages.com.ibm.di.maximo.util.typeconverter);

/*
 *   The deletePersistentTDIObject function is responsible for deleting the TDI object that stores the date.
 *   The following rule is implemented: no rule
 *   The input represents the name of the property that contains the last execution date.
 *   There is not any output for this function.
 *
 */
function deletePersistentTDIObject( objectName, integrationDirection ) {

   //Delete only if the external property is equals yes
   var deleteLastExecutionDate = system.getExternalProperty( "delete.last.execution.date." + integrationDirection );
   if( deleteLastExecutionDate == "yes" ) {

      system.deletePersistentObject( objectName );
   }
}

/*
 *   The readLastExecutionDate function is responsible for reading the date (date/time) of last assembly line execution.
 *   The following rule is implemented: no rule
 *   The input represents the name of the property that contains the last execution date.
 *   The output would be the date of last assembly line execution or null.
 */
function readLastExecutionDate( objectName, integrationDirection ) {

   //Before reading the date, verify if it is necessary to delete the previous date.
   deletePersistentTDIObject( objectName, integrationDirection );

   //Read String that represents that the last execution date
   var lastExecutionStr = system.getPersistentObject( objectName );
   if( lastExecutionStr == null ) {

      task.logmsg( "USING DEFAULT LAST EXECUTION DATE." );
      lastExecutionStr = system.getExternalProperty( "default.last.execution.date." + integrationDirection );

      if( lastExecutionStr == null ) {

         task.logmsg( "INVALID LAST EXECUTION DATE." );
         return null;
      }
   }

   return lastExecutionStr;
}

/*
 *   The convertWorkEntryToLastExecution function is responsible for convering work entry defined on query field to its value.
 *   The following rule is implemented: no rule
 *   The input represents the name of the property that contains the last execution date.
 *   There is not any output for this function.
 */
function convertWorkEntryToLastExecution( objectName, queryFieldName, integrationDirection ) {

   var lastExecutionStr = readLastExecutionDate( objectName, integrationDirection );
   if( lastExecutionStr != null ) {

      var entry = system.newEntry();
      if( integrationDirection == "Maximo_ESD" ) {

         entry.setAttribute( objectName, lastExecutionStr );
      } else {

         entry.setAttribute( objectName, "\'" + lastExecutionStr + "\'" );
      }

      var map = java.util.HashMap();
      map.put( "work", entry );

      var query = thisConnector.connector.getParam( queryFieldName );
      var expr = system.getTDIExpression( query );
      var finalValue = expr.substitute( map );

      thisConnector.connector.setParam( queryFieldName, finalValue );
   }
}

/*
 *   The defineTheHighestDate function is responsible for defining the highest date.
 *   The following rule is implemented: for each record read, this function store the highest date
 *   There are two input values: The name of create and modified fields in the form.
 *   The result represents the higest date between Create Time and Modified Time.
 */
function defineTheHighestDate( createDateName, modifiedDateName, sourceDateFormat, sourceTimeZone, integrationDirection ) {

   var currentMaxDate = null;

   //When records are created by integration they donn't have any create time.
   if( createDateName != "" && work.getAttribute( createDateName ) != null ) {

      var currentCreateTimeStr   = work.getAttribute( createDateName ).getValue(0);
      var currentCreateTime = null;
      if( integrationDirection == "Maximo_ESD" ) {

         currentCreateTime      = convertStrToDateMaximo( currentCreateTimeStr );
      }
      else {

         currentCreateTime      = convertStrToDateESD( currentCreateTimeStr, sourceDateFormat, sourceTimeZone );
      }
   }
   else {

      var currentCreateTime      = "";
   }

   //I always have this date
   var currentModifiedTimeStr = work.getAttribute( modifiedDateName ).getValue(0);
   var currentModifiedTime = null;
   if( integrationDirection == "Maximo_ESD" ) {

      currentModifiedTime      = convertStrToDateMaximo( currentModifiedTimeStr );
   }
   else {

      currentModifiedTime      = convertStrToDateESD( currentModifiedTimeStr, sourceDateFormat, sourceTimeZone );
   }

   if( currentCreateTime != "" ) {

      var result = currentModifiedTime.compareTo( currentCreateTime );
      if( result > 0 ) {

         currentMaxDate = currentModifiedTime;
      }
      else {

         currentMaxDate = currentCreateTime;
      }
   }
   else {

      currentMaxDate = currentModifiedTime;
   }

   return currentMaxDate;
}

/*
 *   The storeNewLastExecutionDate function is responsible for storing the new last execution date.
 *   The following rule is implemented:  no rule
 *   The input represents the attribute that store the highest date presents in the ticket setting considering.
 *   There is not any output for this function.
 */
function storeNewLastExecutionDate( maxDate, objectName, targetDateFormat, targetTimeZone, integrationDirection ) {

   //Find the number of error happened
   var nErrors = task.getStats().numErrors();
   //It means that there were some records were updated and no happened.
   if( maxDate != "" && nErrors == 0 ) {

      var maxFinalDate = null;
      if( integrationDirection == "Maximo_ESD" ) {

         maxFinalDate = convertDateToStrMaximo( maxDate );
      }
      else {

         maxFinalDate = convertDateToStrESD( maxDate, targetDateFormat, targetTimeZone );
      }
      
      task.logmsg( "SAVING  THE LAST EXECUTION DATE = " + maxFinalDate );
      system.setPersistentObject( objectName, maxFinalDate );
   }
}

/*
 *   This function is responsible for transforming String to Date.
 *   The input parameteres have the following meaning:
 *      1. date -> Informed String that will be transformed in date.
 *   The answer is date in the appropriated format.
 */
function convertStrToDateMaximo( date ) {

   var dateTransformed = null

   if( date != null ) {

      var tmpDate     = DateConverter.getInstance();
      dateTransformed = tmpDate.valueOf( date );
   }

   return dateTransformed;
}

/*
 *   This function is responsible for transforming Date to String.
 *   The input parameteres have the following meaning:
 *      1. date -> Informed Date that will be transformed in String.
 *   The answer is Strin in the appropriate format.
 */
function convertDateToStrMaximo( date ) {

   var dateTransformed = null

   if( date != null ) {

      var tmpDate     = DateConverter.getInstance();
      dateTransformed = tmpDate.toString( date );
   }

   return dateTransformed;
}


/*
 *   This function is responsible for transforming String to Date.
 *   The input parameteres have the following meaning:
 *      1. date -> Informed String that will be transformed in date.
 *      2. sourceDateFormat -> The date format specified for the origin date
 *      3. sourceTimeZone -> The time zone specified for the origin date
 *   The answer is date in the appropriated format.
 */
function convertStrToDateESD( date, sourceDateFormat, sourceTimeZone ) {

   var dateTransformed = null

   if( date != null ) {

      if( sourceDateFormat == null ) {

         task.logmsg( "CAN NOT CONVERT " + date + ". ITS FORMAT IS INVALID." );
      } else {

         var sourceFormatter = SimpleDateFormat( sourceDateFormat );
         if( sourceTimeZone != null ) {

            sourceFormatter.setTimeZone( TimeZone.getTimeZone( sourceTimeZone ) );
         }

         dateTransformed = sourceFormatter.parse( date );
      }
   }

   return dateTransformed;
}

/*
 *   This function is responsible for transforming Date to String.
 *   The input parameteres have the following meaning:
 *      1. date -> Informed Date that will be transformed in String.
 *      2. targetDateFormat -> The date format specified for the destiny date
 *      3. targetTimeZone -> The time zone specified for the destiny date
 *   The answer is Strin in the appropriate format.
 */
function convertDateToStrESD( date, targetDateFormat, targetTimeZone ) {

   var dateTransformed = null

   if( date != null ) {

      if( targetDateFormat == null ) {

         task.logmsg( "CAN NOT CONVERT " + date + ". ITS FORMAT IS INVALID." );
      } else {

         var targetFormatter = SimpleDateFormat( targetDateFormat );
         if( targetTimeZone != null ) {

            targetFormatter.setTimeZone( TimeZone.getTimeZone( targetTimeZone ) );
         }

         dateTransformed = targetFormatter.format( date );
      }
   }

   return dateTransformed;
}

/*
 * Replaces the tokens (change date and system id) inside the query criteria.
 */
function convertQueryCriteria(objectName, integrationDirection, systemId ) {

    var lastExecutionStr = readLastExecutionDate(objectName, integrationDirection);
    if (lastExecutionStr != null) {

        var entry = system.newEntry();
        if ("Maximo_ESD".equals(integrationDirection)) {
           entry.setAttribute(objectName, lastExecutionStr);
        } else {
           entry.setAttribute(objectName, "\'" + lastExecutionStr + "\'");
        }

        entry.setAttribute("SYSTEM_ID", systemId);

        var map = java.util.HashMap();
        map.put("work", entry);

        var query = thisConnector.connector.getParam("queryCriteria");
        var expr = system.getTDIExpression(query);
        var finalValue = expr.substitute(map);

        task.logmsg("DEBUG", "Submitting the following query " + finalValue);

        thisConnector.connector.setParam("queryCriteria", finalValue);
    }
}
]]></parameter>
</Script>





</Folder>
<JavaLibraries/>
<JavaProperties/>
<Folder name="Includes"/>
<Folder name="Config">
<LogConfig name="Logging"/>
<InstanceProperties name="AutoStart">
<AutoStart>
<ParameterList>
<parameter name="Name">AssemblyLines/FIRE_TSRM_to_EIF</parameter>
</ParameterList>
<ParameterList>
<parameter name="Name">AssemblyLines/EIF_to_TSRM</parameter>
</ParameterList>
</AutoStart>
</InstanceProperties>
<TombstonesConfig name="Tombstones"/>
<SolutionInterface name="SolutionInterface"/>
</Folder>
<Folder name="Functions"/>
<Folder name="AttributeMaps">


























</Folder>
<Properties name="Properties">
<DefaultStore>TSRM</DefaultStore>
<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>
<PropertyStore name="TSRM">
<Parser/>
<RawConnector>
<InheritFrom>system:/Connectors/ibmdi.Properties</InheritFrom>
<parameter name="collection">tsrm-netcool.properties</parameter>
<parameter name="collectionType">User-Defined</parameter>
<parameter name="debug">true</parameter>
</RawConnector>
<Key>key</Key>
<Value>value</Value>
<ReadOnly>false</ReadOnly>
<InitialLoad>true</InitialLoad>
<CacheTimeout>0</CacheTimeout>
</PropertyStore>
</Stores>
</Properties>
</MetamergeConfig>
