<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Access to data set in Application_modifier element. in Contact Center</title>
    <link>https://community.cisco.com/t5/contact-center/access-to-data-set-in-application-modifier-element/m-p/3513325#M4582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I have to change the application modifier element based on the language user has selected. For example there are several texts for TTS for different language. Based on the language selected by the user ,I want to change the xml:lang parameter. Now I am using multiple Application Modifier element but want to know how can I do that using an Action element ?. How to get the current lang set in the application and change it dynamically ?( I mean programmatically).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help / hint on this much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Feb 2017 16:39:41 GMT</pubDate>
    <dc:creator>r.boloor.rao</dc:creator>
    <dc:date>2017-02-28T16:39:41Z</dc:date>
    <item>
      <title>Access to data set in Application_modifier element.</title>
      <link>https://community.cisco.com/t5/contact-center/access-to-data-set-in-application-modifier-element/m-p/3513325#M4582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I have to change the application modifier element based on the language user has selected. For example there are several texts for TTS for different language. Based on the language selected by the user ,I want to change the xml:lang parameter. Now I am using multiple Application Modifier element but want to know how can I do that using an Action element ?. How to get the current lang set in the application and change it dynamically ?( I mean programmatically).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help / hint on this much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 16:39:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/contact-center/access-to-data-set-in-application-modifier-element/m-p/3513325#M4582</guid>
      <dc:creator>r.boloor.rao</dc:creator>
      <dc:date>2017-02-28T16:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Access to data set in Application_modifier element.</title>
      <link>https://community.cisco.com/t5/contact-center/access-to-data-set-in-application-modifier-element/m-p/3513326#M4583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set it via action element specifying a java class like so:&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14883016234498477" jivemacro_uid="_14883016234498477"&gt;
&lt;P&gt;public class SetDocumentLanguage extends ActionElementBase&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; @Override&lt;/P&gt;
&lt;P&gt;&amp;nbsp; public void doAction(String name, ActionElementData data)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throws AudiumException&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String currentDocLang = data.getDocumentLanguage();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data.setDocumentLanguage("en-US");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;You can also set your document language in an OnCallStart class so it applies to the entire application flow transparently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 17:05:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/contact-center/access-to-data-set-in-application-modifier-element/m-p/3513326#M4583</guid>
      <dc:creator>Ryan Hilfers</dc:creator>
      <dc:date>2017-02-28T17:05:34Z</dc:date>
    </item>
  </channel>
</rss>

