<?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>I need help setting a constant in a process</title><link>https://community.appian.com/discussions/f/process/11030/i-need-help-setting-a-constant-in-a-process</link><description>I have a process model that is running just fine. But I want to fetch the results from the PM for later use via a web API. I am new to Appian and I am having some problems: 
 1) I tried access the results of the process but could not query it out due</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: I need help setting a constant in a process</title><link>https://community.appian.com/thread/48393?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 20:12:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f6558d25-8300-495a-9e97-6d1ebe5c892e</guid><dc:creator>pedrol</dc:creator><description>Actually think I do not need them now.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help setting a constant in a process</title><link>https://community.appian.com/thread/48392?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 19:50:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:20c6434e-8230-464b-86be-5d2a2f09537b</guid><dc:creator>Mike Cichy</dc:creator><description>I think you need to present your larger use case. What problem are you trying to solve? What is the value you are trying to persist? Why do you call webAPI later on? From your description I would like to know why you need the information from the PM, maybe we could suggest a different design altogether.&lt;br /&gt;
Updating a constant to temporarily store some information is not a good idea, since it does not handle transactionality and as sureshg57 noted, creates multiple versions which in high use situation could cause performance and resource utilization issues.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help setting a constant in a process</title><link>https://community.appian.com/thread/48323?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2017 19:05:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ae0330d-8970-4e59-9ea6-e842711baad7</guid><dc:creator>pedrol</dc:creator><description>Thank you that was what I needed. I think buggy documentation needs to be brought to Appian&amp;#39;s attention.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help setting a constant in a process</title><link>https://community.appian.com/thread/48286?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2017 07:22:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8c3fd52a-6145-45b2-b808-eacc47b2d876</guid><dc:creator>sureshg57</dc:creator><description>It is not necessary the constant to be a number though it is mentioned in documentation.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help setting a constant in a process</title><link>https://community.appian.com/thread/48282?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2017 21:33:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:43a119ae-e070-4595-877d-753cd434082c</guid><dc:creator>pedrol</dc:creator><description>I need to make this value public via an API, not a UI. I have no access to the DB due to security restrictions. And writing the ephemeral result of a transient process to the DB seems like a heavyweight and rather odd situation.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help setting a constant in a process</title><link>https://community.appian.com/thread/48281?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2017 21:30:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e9c983ae-9d51-4506-9d47-579d9301364b</guid><dc:creator>pedrol</dc:creator><description>My constant is not of type number so those instructions do not seem to be relevant.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help setting a constant in a process</title><link>https://community.appian.com/thread/48280?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2017 21:16:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ce523cc-94ec-4428-8f5d-003668d452df</guid><dc:creator>sureshg57</dc:creator><description>It is little bit unclear what is your exact requirement, but form what i get you are trying to access/retrieve some values which is a result of a process that completed already.  if this is the case I think best way is to persist the required data in database table and use webAPI to retrieve those data when ever webAPI is called.  &lt;br /&gt;
&lt;br /&gt;
To answer how to update a constant it is pretty clearly given in the below documentation.&lt;br /&gt;
When selecting constant in the smart service user Directory icon to select constant rather than opening up expression editor.&lt;br /&gt;
(this approach is not good for this requirement as this may result in creating many version of the constant)&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/17.3/Update_Constant_Smart_Service.html"&gt;docs.appian.com/.../Update_Constant_Smart_Service.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help setting a constant in a process</title><link>https://community.appian.com/thread/48279?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2017 21:11:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bae7fd8e-fb9f-474f-bda6-2d8a143a0c9e</guid><dc:creator>gianninol</dc:creator><description>Pedro,&lt;br /&gt;
&lt;br /&gt;
In response to your first question, you can create process reports that report on terminated processes; all you have to do is edit the process report, navigate to the &amp;quot;filters&amp;quot; tab of the dialog box, and uncheck the &amp;quot;active&amp;quot; box. You will only be able to see data from unarchived processes, however, so check when the processes are archived by opening the process model properties and navigating to the &amp;quot;Data Management&amp;quot; tab. You can change the archival period there. &lt;br /&gt;
&lt;br /&gt;
In general, though, you will want to avoid waiting too long to archive most processes, as it will eat memory. So, if you will need to access the results of that process much later, you will want to write the results to the database as Colton mentions above. Realistically if it is meant to be accessed across multiple applications it&amp;#39;s probably best to write it to the database anyway, but you can do it through process reporting if necessary.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Nino&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I need help setting a constant in a process</title><link>https://community.appian.com/thread/48274?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2017 20:07:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1681ca07-f35a-435b-9057-19b27ae6bcf8</guid><dc:creator>Colton Beck</dc:creator><description>Could you write these values to the database? Doing so would simplify accessing these data.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>