public class IncidentServiceNowIntegration extends AbstractServiceNowIntegration
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<java.lang.String,java.lang.String> |
unLinkedDevices |
configProp, DEFAULT_XSL_PATH, externalObjList, integratedXML, logger, serviceNowHost, svcContext, xslPath
Default_ContentType, JSON_ContentType
Modifier | Constructor and Description |
---|---|
protected |
IncidentServiceNowIntegration(ServiceContext context) |
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.Document |
assembleIncidentTransformDoc(java.lang.String incidentXml,
java.lang.String xslPath) |
protected void |
execute()
ServiceNow has bug when insert/get multiple recorders, so that we do not support to insert multiple incidents at one time.
|
protected java.lang.String |
getConfigurationItemField() |
protected java.lang.String |
getIncidentFieldName() |
protected java.lang.String |
getIncidentInsertAction() |
protected java.lang.String |
getIncidentSOAPURI() |
protected java.lang.String |
getServiceNowCI(java.lang.String incidentXml,
java.lang.String xslPath) |
protected java.lang.String |
getSnIncidentSysId(java.lang.String incidentXml,
java.lang.String xslPath)
Get sys_id in incident from service now
Web service update called without a sys_id, ignored
|
protected ExternalObjectInfo |
insertIncident(java.lang.String incidentXml,
java.lang.String xslPath) |
protected java.util.Properties |
loadCustomProperties(java.lang.String xslPath) |
protected java.lang.String |
parseIncidentDeviceSysId(java.lang.String soapResult) |
protected java.lang.String |
parseInsertResponse(java.lang.String soapResult) |
protected ExternalObjectInfo |
processIncident(java.lang.String incidentXml,
java.lang.String xslPath) |
protected void |
updateSnIncident(java.lang.String sysId,
java.lang.String incidentXml,
java.lang.String xslPath) |
createSOAPClient, faultProcess, faultProcess, getElementValue, getIntegratedXML, getSoapClient, getXslPath, integrating, loadConfigPropties, parseSoapFault, parseSoapResultSysId
protected IncidentServiceNowIntegration(ServiceContext context)
protected void execute() throws java.lang.Exception
execute
in class AbstractServiceNowIntegration
java.lang.Exception
protected ExternalObjectInfo processIncident(java.lang.String incidentXml, java.lang.String xslPath) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, java.lang.Exception
incidentXml
- xslPath
- javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
java.lang.Exception
protected ExternalObjectInfo insertIncident(java.lang.String incidentXml, java.lang.String xslPath) throws java.lang.Exception
incidentXml
- xslPath
- java.lang.Exception
protected org.w3c.dom.Document assembleIncidentTransformDoc(java.lang.String incidentXml, java.lang.String xslPath) throws java.lang.Exception
java.lang.Exception
protected java.util.Properties loadCustomProperties(java.lang.String xslPath)
protected java.lang.String getIncidentInsertAction()
protected void updateSnIncident(java.lang.String sysId, java.lang.String incidentXml, java.lang.String xslPath) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, java.lang.Exception
sysId
- incidentXml
- xslPath
- javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
java.lang.Exception
protected java.lang.String parseInsertResponse(java.lang.String soapResult) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
soapResult
- javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
protected java.lang.String getSnIncidentSysId(java.lang.String incidentXml, java.lang.String xslPath) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, java.lang.Exception
incidentXml
- xslPath
- javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
java.lang.Exception
protected java.lang.String getServiceNowCI(java.lang.String incidentXml, java.lang.String xslPath) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, java.lang.Exception
incidentXml
- xslPath
- javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
java.lang.Exception
protected java.lang.String parseIncidentDeviceSysId(java.lang.String soapResult) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
soapResult
- org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
protected java.lang.String getIncidentSOAPURI()
protected java.lang.String getIncidentFieldName()
getIncidentFieldName
in class AbstractServiceNowIntegration
protected java.lang.String getConfigurationItemField()