<?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>Invoking start process smart service and update constant smart service in Expression Rule</title><link>https://community.appian.com/discussions/f/general/11508/invoking-start-process-smart-service-and-update-constant-smart-service-in-expression-rule</link><description>Hi, 
 
 May I know how to invoke a start process smart service and update constant smart service in an expression rule. 
 
 Thanks, 
 Balaji.R</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Invoking start process smart service and update constant smart service in Expression Rule</title><link>https://community.appian.com/thread/50837?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 12:57:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:40b747b7-4af9-4973-98d3-a1ac49d96df1</guid><dc:creator>Josh</dc:creator><description>According to &lt;a href="https://docs.appian.com/suite/help/17.4/Expressions.html"&gt;docs.appian.com/.../Expressions.html&lt;/a&gt;, &amp;quot;Expressions do not modify any data inside or outside the Appian system.&amp;quot;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invoking start process smart service and update constant smart service in Expression Rule</title><link>https://community.appian.com/thread/50824?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 06:19:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d9ddca52-a8f9-4d24-9814-1493d81cdbd4</guid><dc:creator>rp_balaji</dc:creator><description>Hi Josh, &lt;br /&gt;
Sure am revisiting my approach to modify it as Alokh suggested. And out of curiosity am asking this, may I know is there any specific reason from product perspective that they are not allowing to use any smart service in the Expression rule.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Balaji.R&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invoking start process smart service and update constant smart service in Expression Rule</title><link>https://community.appian.com/thread/50729?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2017 11:02:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:912b885d-bedc-4fdb-942e-8fd0d57f0135</guid><dc:creator>Josh</dc:creator><description>Hi Balaji,&lt;br /&gt;
&lt;br /&gt;
That makes sense. I have followed the design pattern that  mentioned to achieve this in the past. &lt;br /&gt;
&lt;br /&gt;
Depending on your circumstances you could also redesign the application to either A) Always get the OAuth token when making a request instead of caching it or B) Set up a process model that retrieves the OAuth token value, stores it to the constant, then sets a new instance to run when the token expires (In my experience when you grab the OAuth token it includes a field telling you when it will expire.)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invoking start process smart service and update constant smart service in Expression Rule</title><link>https://community.appian.com/thread/50721?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2017 06:25:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:906f077a-af37-4a1d-8d5a-4997821c4363</guid><dc:creator>rp_balaji</dc:creator><description>Hi Josh, Let me explain you my requirement, &lt;br /&gt;
We are calling a third party service through Integration object, we need to get OAuth token from a constant and pass it in the header of the request. For which we are using a expression rule to be called in the request header parameter, the expression rule will check the token expiry and if the token is expired it will call a third party service, gets the new token and update the same in the constant and return that token to be passed in header. This is the logic we are doing inside an expression rule.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Balaji.R&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invoking start process smart service and update constant smart service in Expression Rule</title><link>https://community.appian.com/thread/50719?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2017 06:09:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:31ee5037-c3a9-4854-a133-81a8eb4f36f4</guid><dc:creator>rp_balaji</dc:creator><description>Hi Alok, &lt;br /&gt;
Thanks for your suggestion will try the approach suggested by you I believe it will help us.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invoking start process smart service and update constant smart service in Expression Rule</title><link>https://community.appian.com/thread/50709?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2017 19:40:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dd0a9651-57bf-4ab8-8b61-0cb0eb5573ca</guid><dc:creator>Josh</dc:creator><description>If you can expand on your specific use case, the community can provide suggestions that could help you out. Why are you trying to update a constant within an integration object? Are you trying to increment a counter to track how many times the integration object is called? Are you trying to retrieve data from an external system and update the constant&amp;#39;s value with the retrieved data?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invoking start process smart service and update constant smart service in Expression Rule</title><link>https://community.appian.com/thread/50708?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2017 19:38:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:31e8fda2-a5a9-45b2-bc90-2c3a1b061660</guid><dc:creator>aloks0189</dc:creator><description>Hi &lt;a href="/members/balajir0001"&gt;rp_balaji&lt;/a&gt;  I believe Web API is the best choice for you where you can invoke smart service function.&lt;br /&gt;
&lt;br /&gt;
And you can invoke this Web API using integration object and you can call this integration object, where ever you want to (if it&amp;#39;s a get call) using rule!&lt;br /&gt;
&lt;br /&gt;
And you can try performing update constant operation with in the same process which you are trying to invoke using Web API, this should do your job.&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: Invoking start process smart service and update constant smart service in Expression Rule</title><link>https://community.appian.com/thread/50706?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2017 16:03:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6c30f4bc-15de-4fd3-beff-4856b049b30d</guid><dc:creator>rp_balaji</dc:creator><description>Hi Josh, my requirement is to update a constant inside a expression rule and that expression rule to be called in the integration objects parameter. As i don&amp;#39;t see any option to use Update constant smart service inside expression rule, we are using it in a process model and that we are trying to call in an ER. Ideally if there is a provision to call Update constant service inside ER that would suffice.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invoking start process smart service and update constant smart service in Expression Rule</title><link>https://community.appian.com/thread/50702?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2017 15:04:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f3f5f160-114d-4af2-9185-5dacb7e9917a</guid><dc:creator>Josh</dc:creator><description>What are the higher level requirements? The documentation indicates it is not possible to call a smart service function outside of a!save() or a Web API so you will need to reconsider your approach.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invoking start process smart service and update constant smart service in Expression Rule</title><link>https://community.appian.com/thread/50700?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2017 14:59:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e57b157-a7f2-43de-89e6-f179f4ab22df</guid><dc:creator>rp_balaji</dc:creator><description>Hi Josh, my requirement is the expression rule has to be called in an parameter of an integration object and I cant use the SAIL interface here.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invoking start process smart service and update constant smart service in Expression Rule</title><link>https://community.appian.com/thread/50699?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2017 14:51:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:739f665b-7bf0-4b77-a837-49b4815566b3</guid><dc:creator>Josh</dc:creator><description>You can put the start process and update constant smart service function calls inside an expression rule, but that expression rule needs to be called within a!save() from a SAIL interface or from a Web API. &lt;a href="https://docs.appian.com/suite/help/17.1/Start_Process_Smart_Service.html"&gt;docs.appian.com/.../Start_Process_Smart_Service.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>