ServiceGrid Article - Cisco ServiceGrid Release Notes V5.7b

From DocWiki

Jump to: navigation, search

Contents

Overview

How can it be used for outbound communication?

For calling the getCall method in the custom callservice, one must only provide a username and a corresponding password. However, to create messages the configuraton needed in the platform can be fetched through this service.

  • To create an outbound communication, Converter and CommunicationType should be equal to inbound communication.
  • To create a message trigger and assign it to the communication, TriggerType can be chosen as desired (should not be "Wait for Inbound").
  • To create an outbound template that transforms the call from SD Standard namespace into the target namespace and assigns it to the communication.

    An example is depicted below:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="/">
        <SD.call-XML>
            <xsl:for-each select="SD.call">
              <xsl:call-template name="CALL" />
            </xsl:for-each>
        </SD.call-XML>
    </xsl:template>
    <xsl:template name="CALL">
      <CALL>
        <callid><xsl:value-of select="Data/base64" /></callid>
        <callsystem><xsl:value-of select="FileName" /></callsystem>
      </CALL>
    </xsl:template>
</xsl:stylesheet>
  • To create a new receiver with the email address of the user that is used for calling the service as Address value.

Flexible attachment handling in XML messages

As described in the custom callservice section, custom callservice can provide user-defined tags. This is true for both inbound as well as outbound attachments. This functionality is also reflected by the corresponding SD fields as displayed in the figure below:

CoreServiceAttachments1-15090959.png

Inbound requests require another mapping than outbound as displayed by the two following examples:

Inbound

CoreAttachmentHandlingInbound.png

In the previous figure, the tags for inbound communication are Attachments and as children FileName and DataBase64. The following listing shows a very simple possibility of how a template can look like to extract an attachment from a custom request and transform it into SD namespace:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns2="urn:ws.solvedirect.com/broker" version="1.0">
<xsl:template match="/">
<CALL>
  <Calls.CustCallID><xsl:value-of select=".//rootTag/customerCallid" /></Calls.CustCallID>
  <Contracts.ShortName>C100-INC</Contracts.ShortName>
  <Attachments>
      <FileName><xsl:value-of select=".//rootTag/attachmentFilename" /></FileName>
      <DataBase64><xsl:value-of select=".//rootTag/attachmentTag" /></DataBase64>
  </Attachments>
</CALL>
</xsl:template>
</xsl:stylesheet>

Outbound

The difficulty while sending attachments with mails and which are not handled properly. One should fill out the values in the communication master data for the following fields:

  • None
  • Current
  • Unsent
  • All

ScreenshotComm.png

As in Inbound, the field names can be found in Cisco ServiceGrid dictionary.

CoreAttachmentHandlingOutbound.png

The following listing shows a sample template which transforms a call from SD namespace into a custom target namespace.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="/">
        <SD.call-XML>
            <xsl:for-each select="SD.call">
              <xsl:call-template name="CALL" />
            </xsl:for-each>
        </SD.call-XML>
    </xsl:template>
    <xsl:template name="CALL">
      <CALL>
        <xsl:for-each select="Attachments">
          <attfilename><xsl:value-of select="FileName" /></attfilename>
          <attdata><xsl:value-of select="DataBase64" /></attdata>
        </xsl:for-each>
      </CALL>
    </xsl:template>
</xsl:stylesheet>

</xsl:stylesheet>

New Cisco ServiceGrid Loginpage

With this version, a new login page will be provided.

ServiceGridLoginPage.png


For a complete list of Cisco ServiceGrid Articles, go to the List of Articles page.

Related Articles

Release Notes V5.7

Release Notes



Rating: 0.0/5 (0 votes cast)

Personal tools