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, xslPathDefault_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, parseSoapResultSysIdprotected IncidentServiceNowIntegration(ServiceContext context)
protected void execute()
throws java.lang.Exception
execute in class AbstractServiceNowIntegrationjava.lang.Exceptionprotected 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.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionjava.lang.Exceptionprotected ExternalObjectInfo insertIncident(java.lang.String incidentXml,
java.lang.String xslPath)
throws java.lang.Exception
incidentXml - xslPath - java.lang.Exceptionprotected org.w3c.dom.Document assembleIncidentTransformDoc(java.lang.String incidentXml,
java.lang.String xslPath)
throws java.lang.Exception
java.lang.Exceptionprotected 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.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionjava.lang.Exceptionprotected java.lang.String parseInsertResponse(java.lang.String soapResult)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
soapResult - javax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionprotected 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.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionjava.lang.Exceptionprotected 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.ParserConfigurationExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionjava.lang.Exceptionprotected java.lang.String parseIncidentDeviceSysId(java.lang.String soapResult)
throws org.xml.sax.SAXException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException
soapResult - org.xml.sax.SAXExceptionjava.io.IOExceptionjavax.xml.parsers.ParserConfigurationExceptionprotected java.lang.String getIncidentSOAPURI()
protected java.lang.String getIncidentFieldName()
getIncidentFieldName in class AbstractServiceNowIntegrationprotected java.lang.String getConfigurationItemField()