<?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>Howdy.   Is it possible to call/use the Update/Increment Constant smart service</title><link>https://community.appian.com/discussions/f/plug-ins/4254/howdy-is-it-possible-to-call-use-the-update-increment-constant-smart-service</link><description>Howdy. Is it possible to call/use the Update/Increment Constant smart service from within a SAIL component? So instead of calling it in a process node one would call it from sail code. OriginalPostID-138018 OriginalPostID-138018</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Howdy.   Is it possible to call/use the Update/Increment Constant smart service</title><link>https://community.appian.com/thread/15268?ContentTypeID=1</link><pubDate>Fri, 13 Feb 2015 05:34:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eece1e30-cc97-42e5-bd07-c6a86591247e</guid><dc:creator>Andrew P Gramann</dc:creator><description>If some of the process based approaches above really won&amp;#39;t work for your use case, you could probably create a plugin to do this.  The ContentService interface and Constant class in the APIs (&lt;a href="https://forum.appian.com/suite/help/7.8/api/)"&gt;forum.appian.com/.../)&lt;/a&gt; might be a good place to start your investigation if you choose to go this route.&lt;br /&gt;&lt;br /&gt;It&amp;#39;s worth noting that introducing custom plugins should be avoided when possible since it adds additional levels of complexity to your application.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Howdy.   Is it possible to call/use the Update/Increment Constant smart service</title><link>https://community.appian.com/thread/15235?ContentTypeID=1</link><pubDate>Thu, 12 Feb 2015 03:09:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bcf872d6-556a-453d-a159-e91841108ccc</guid><dc:creator>hajii</dc:creator><description>Would it also be possible for the plugin to expose some java/functions that can do the update?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Howdy.   Is it possible to call/use the Update/Increment Constant smart service</title><link>https://community.appian.com/thread/15207?ContentTypeID=1</link><pubDate>Wed, 11 Feb 2015 09:48:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4445a1af-4e3f-4650-a396-245878267c1d</guid><dc:creator>siddharthg521</dc:creator><description>And another way which I can think of if you want to call a process model directly from your sail code (and not make use of any table ) can be by exposing your particular process model (that has update constant smart service) as a web service and then call the webservice directly from the expression rule using the new webservice query function.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Howdy.   Is it possible to call/use the Update/Increment Constant smart service</title><link>https://community.appian.com/thread/15206?ContentTypeID=1</link><pubDate>Wed, 11 Feb 2015 09:45:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f4ddab9c-7842-480d-9e76-f7d9a1e4091b</guid><dc:creator>siddharthg521</dc:creator><description>Hi Haji, you can make use of a table in the database instead of the constant. And then you can update/fetch the respective value from that table (instead of a constant) directly from your sail code using a custom function named - executequery() with which you can perform any SQL related operations.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Howdy.   Is it possible to call/use the Update/Increment Constant smart service</title><link>https://community.appian.com/thread/15196?ContentTypeID=1</link><pubDate>Wed, 11 Feb 2015 02:33:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3e12facd-40a6-4341-bb6b-cb72d9afe1b1</guid><dc:creator>sikhivahans</dc:creator><description>But to the best of my knowledge, this is the only way to interact with a process model  from the sail code.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Howdy.   Is it possible to call/use the Update/Increment Constant smart service</title><link>https://community.appian.com/thread/15192?ContentTypeID=1</link><pubDate>Wed, 11 Feb 2015 02:05:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d3ef6a08-d2ae-49d1-8eca-ce870c34ff9d</guid><dc:creator>hajii</dc:creator><description>Thanks but that&amp;#39;d be a bind to a process.  Can&amp;#39;t be done a server side function which has input and output?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Howdy.   Is it possible to call/use the Update/Increment Constant smart service</title><link>https://community.appian.com/thread/15188?ContentTypeID=1</link><pubDate>Wed, 11 Feb 2015 01:47:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5a7f0d6a-af47-435c-a24c-45b4aa5c99bb</guid><dc:creator>sikhivahans</dc:creator><description>Hi hajji, Consider using the startprocesswriter function.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Howdy.   Is it possible to call/use the Update/Increment Constant smart service</title><link>https://community.appian.com/thread/15187?ContentTypeID=1</link><pubDate>Wed, 11 Feb 2015 01:45:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:788d50a5-5f1b-4d7c-8e10-d65490206b64</guid><dc:creator>hajii</dc:creator><description>What would be involved in exposing its api in sail?   Yes it&amp;#39;s all possible in a sail+node setup, however it would be better/cleaner (at least in my case) to take care of the constant usage where it&amp;#39;s needed (eg on a button).&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Howdy.   Is it possible to call/use the Update/Increment Constant smart service</title><link>https://community.appian.com/thread/15185?ContentTypeID=1</link><pubDate>Wed, 11 Feb 2015 01:39:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb4af33b-3c3d-4db7-aa18-171189b0c0ae</guid><dc:creator>Jamie Loizou</dc:creator><description>Not to my knowledge, but is it suitable for you to simply loop the user into the process, update the constant, then go back into the SAIL form (all chained)?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>