<?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 Re: RTDM: How do I access application properties in groovy activity? in SAS Customer Intelligence</title>
    <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/RTDM-How-do-I-access-application-properties-in-groovy-activity/m-p/420294#M706</link>
    <description>&lt;P&gt;Since the use of Groovy for custom processes isn't an officially supported option, I don't have any specific examples for you. But I did check with someone internally and their response was that, since everything from the classpath is available to the Groovy activities, you should have access to all system options, classes and property files. It may require some knowledge to know how to fetch the something within the spring context of your parent classloader, but there are no restrictions against doing this.&amp;nbsp;(For reference, the groovy classloader is a child of the main engine classloader.)&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2017 22:06:56 GMT</pubDate>
    <dc:creator>shill</dc:creator>
    <dc:date>2017-12-11T22:06:56Z</dc:date>
    <item>
      <title>RTDM: How do I access application properties in groovy activity?</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/RTDM-How-do-I-access-application-properties-in-groovy-activity/m-p/418460#M695</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I'm trying to figure out&amp;nbsp;the best way to store configuration properties for my groovy activity in SAS RTDM 6.5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is possible to&amp;nbsp;set&amp;nbsp;properties&amp;nbsp;for RTDM Engine Server in Confuguration Manager plugin in Management Console.&amp;nbsp;These&amp;nbsp;&lt;SPAN&gt;properties&lt;/SPAN&gt;&amp;nbsp;are retrieved in spring xml with expressions like&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;#{dsConfig.resolveStringValue('&lt;STRONG&gt;sasds.engine.default.timezoneid&lt;/STRONG&gt;')}&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Is it possible to access&amp;nbsp;such&amp;nbsp;properties&lt;SPAN&gt;&amp;nbsp;from groovy activity?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It is&amp;nbsp;also possible to set system wide properties in JAVA_OPTS variable in SASServer7_1/bin/setenv.sh script or put them in &lt;/SPAN&gt;&lt;SPAN&gt;file somewhere on file system and load it in runtime. However to change them you need access to filesystem.&amp;nbsp;&lt;/SPAN&gt;What is the best practice for storing and accessing properties in&amp;nbsp;custom groovy activities?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 12:42:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/RTDM-How-do-I-access-application-properties-in-groovy-activity/m-p/418460#M695</guid>
      <dc:creator>AntonLykov</dc:creator>
      <dc:date>2017-12-05T12:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: RTDM: How do I access application properties in groovy activity?</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/RTDM-How-do-I-access-application-properties-in-groovy-activity/m-p/420294#M706</link>
      <description>&lt;P&gt;Since the use of Groovy for custom processes isn't an officially supported option, I don't have any specific examples for you. But I did check with someone internally and their response was that, since everything from the classpath is available to the Groovy activities, you should have access to all system options, classes and property files. It may require some knowledge to know how to fetch the something within the spring context of your parent classloader, but there are no restrictions against doing this.&amp;nbsp;(For reference, the groovy classloader is a child of the main engine classloader.)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 22:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/RTDM-How-do-I-access-application-properties-in-groovy-activity/m-p/420294#M706</guid>
      <dc:creator>shill</dc:creator>
      <dc:date>2017-12-11T22:06:56Z</dc:date>
    </item>
  </channel>
</rss>

