<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to externalize plugin properties outside</title><link>https://community.appian.com/discussions/f/plug-ins/11714/how-to-externalize-plugin-properties-outside</link><description>Hi All, 
 Good morning.. 
 We have developed a custom plugin which is constructing Json data while taking the details from server. 
 As of now there is lot&amp;#39;s of hard coding in plugin. we want to externalize all those hard coded properties outside of plugin</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to externalize plugin properties outside</title><link>https://community.appian.com/thread/51793?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 20:54:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e8262c3b-cd45-4614-8b8e-886f3b0b1a1b</guid><dc:creator>Justin Watts</dc:creator><description>What kinds of values are you hardcoding? Generally, I would suggest that you parameterize your plug-in services to take in appropriate environment specific values, and then use Appian&amp;#39;s environment-specific constants to deploy/manage the correct values per environment.&lt;br /&gt;
&lt;br /&gt;
If you really want to get custom.properties values or bundles, I would start by looking into this interface: &lt;a href="https://docs.appian.com/suite/help/17.4/api/com/appiancorp/suiteapi/cfg/Configuration.html"&gt;docs.appian.com/.../Configuration.html&lt;/a&gt; and this one&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/17.4/api/com/appiancorp/suiteapi/cfg/ConfigurationLoader.html"&gt;docs.appian.com/.../ConfigurationLoader.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to externalize plugin properties outside</title><link>https://community.appian.com/thread/51791?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 20:41:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d3973f09-cdec-4420-9c55-710fcb3eef90</guid><dc:creator>aloks0189</dc:creator><description>Hi @ruchi i agree with @jim you can instantiate ProcessDesignService class object using ServiceContext class as mention below&lt;br /&gt;
&lt;br /&gt;
ProcessDesignService pds = ServiceLocator.getProcessDesignService(context);&lt;br /&gt;
&lt;br /&gt;
This pds object will allow you to evaluate a constant which exists in your Appian environment.&lt;br /&gt;
&lt;br /&gt;
For more details you can explore about PricessDesignService class in Appian API&lt;br /&gt;
&lt;br /&gt;
Hope this will help you.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to externalize plugin properties outside</title><link>https://community.appian.com/thread/51790?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 19:29:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e08c5e3-4ee9-4165-b71d-20345fb123c2</guid><dc:creator>Jim Schweitzer</dc:creator><description>You might try using Appian Constants for this, and using the ContentService to retrieve constant values from within the Java code.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to externalize plugin properties outside</title><link>https://community.appian.com/thread/51774?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 09:41:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:318c6a3e-59bf-43e8-9d3d-4b3803beb6c3</guid><dc:creator>ruchiagarwala</dc:creator><description>&lt;p&gt;Hi Alok,&lt;/p&gt;
&lt;p&gt;In the directory &lt;em&gt;&lt;strong&gt;/appian/data/AppianHome/current/ear/suite.ear/conf&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I can see all below property files:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/19/pastedimage1516099227579v1.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/19/pastedimage1516099227579v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here above there is a property file &lt;strong&gt;&lt;em&gt;custom.properties&lt;/em&gt;&lt;/strong&gt;. If I export some of the properties to this .. then using which class I can get it in custom plugin code.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks-&lt;/p&gt;
&lt;p&gt;Ruchi Agarwal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to externalize plugin properties outside</title><link>https://community.appian.com/thread/51773?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 09:34:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8a1dbf1c-7e05-4237-b6b6-1a694a04f3c1</guid><dc:creator>aloks0189</dc:creator><description>&lt;p&gt;Hi @ruchi may I know, &amp;nbsp;you want to refer to which properties, by mean custom Appian property?&lt;/p&gt;
&lt;p&gt;Because you have several classes in its API which allows you to retrieve configuration informations of Appian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to externalize plugin properties outside</title><link>https://community.appian.com/thread/51762?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2018 05:09:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:83cca9f2-34fe-44fa-8d24-b7193f5d7da3</guid><dc:creator>ruchiagarwala</dc:creator><description>Hi Alok,&lt;br /&gt;
Thanks for the reply, but is there not any way to call custom appian property files in the plugin code. Using Configuration classes which are there in appian-sdk.jar or using some other such class.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to externalize plugin properties outside</title><link>https://community.appian.com/thread/51759?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2018 20:26:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f7e090bc-57c0-4d51-ae7b-4c0599ca71a5</guid><dc:creator>aloks0189</dc:creator><description>Hi &lt;a href="/members/ruchiagarwala"&gt;ruchiagarwala&lt;/a&gt;  as per my understanding, you cannot expose custom plugin properties file outside. If you have lot many hard coded values in your plugin code (which is not a good practice if these data vary in different different conditions), you should parameterize these fields so that you can pass the values from Appian accordingly.&lt;br /&gt;
&lt;br /&gt;
Hope this will help you.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>