<?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>Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/discussions/f/process/13041/starting-a-process-from-a-sail-interface-and-chaining</link><description>Hello There, 
 I have a SAIL form with a button that starts a small process model via a!startProcess(). This model is set to chain from start to finish however the button is returning the &amp;quot;onSuccess&amp;quot; condition before the process instance completes. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/136444?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 13:07:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f7384c82-ce44-4345-9b55-76354d25f08e</guid><dc:creator>Jin Pheh</dc:creator><description>&lt;p&gt;I find it amusing that 6 years after the fact we&amp;#39;re still seeing this behavior.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/136443?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 12:52:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8ebd004d-4c97-41f4-93cf-0d5eb50e74d3</guid><dc:creator>javicamara</dc:creator><description>&lt;p&gt;It is difficult to tell, but the truth is that usually the expected value is returned - except sometimes,&amp;nbsp;coinciding with the first time you made the call after a long time. I.e.:&lt;/p&gt;
&lt;p&gt;- Today around 9:30 I&amp;nbsp;called the WebAPI, and it did not return the value&lt;/p&gt;
&lt;p&gt;- Immediately&amp;nbsp;after that I made the call again with the same parameters, and it returned the value&lt;/p&gt;
&lt;p&gt;- Same after several other trials&lt;/p&gt;
&lt;p&gt;In call call the same parameters and functionally were used, and in the Process Activity everything looked just the same in all cases.&amp;nbsp;To me it sounds like there is a &amp;quot;warm up&amp;quot; due to the first time you use the stuff, that causes a delay that&amp;nbsp;can surpass some internal timeout.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/136437?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 11:30:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0e8f1ce2-51cf-47de-b6ff-81c9ca1d2da0</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Are you sure that you are not breaking the chain inadvertently somewhere?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/14/IMG_5F00_2672.jpeg" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/136422?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 09:28:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8e673d8c-078a-4c66-a5f3-a9140f0601a6</guid><dc:creator>javicamara</dc:creator><description>&lt;p&gt;We have encountered the same now, in 2024 and in Appian 24.1 . It seems that, if the process takes more than some timeout that we can&amp;#39;t define, startProcess returns even though the activity chaining is properly configured and it has not finished.&lt;/p&gt;
&lt;p&gt;However, in our trials we have seen that apparently, when startProcess returns, it brings the process variable values that the process has in that moment, even not finished. Thanks to that, in our case a workaround to this behavior has been to obtain these values early in the process, so that the WebAPI that starts it has them even if the process has not completed (which is somewhat overoptimistic, but well, it is better than having no value at all).&lt;/p&gt;
&lt;p&gt;Since the documentation for startProcess&amp;nbsp;does not match the behavior of the smart service, I think that either the documentation should be changed to reflect all this (and prevent incidents from happening to application users, and developers from&amp;nbsp;spending time in investigating solutions), or the smart service should be changed to honor the documentation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/71940?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 16:26:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0deed535-5184-45a3-b708-1cb1d5fa7546</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;&lt;a href="/members/jpheh"&gt;Jin Pheh&lt;/a&gt; I seem to be encountering a similar issue. Did you ever find out what it was?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/58757?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 05:57:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5ac09d07-039e-4d55-95f3-eabf83a14a9f</guid><dc:creator>josep</dc:creator><description>Hello Jpheh,&lt;br /&gt;
&lt;br /&gt;
I have done that chaining using starProcessLink and it works as expected all the time. The start process definitely will no respect the activity chaining. &lt;br /&gt;
&lt;br /&gt;
I would recommend you to make the following tests. It might not be your use case but it definitely should display the screens. Add a form with a button (nothing else) at two points of your process.assigned to the process initiators.&lt;br /&gt;
&lt;br /&gt;
Using the startProcessLink&lt;br /&gt;
 1) at the beginning (start processing) &lt;br /&gt;
2) at the end for the process (before the process return &lt;br /&gt;
&lt;br /&gt;
I have some questions, are you from tempo? Or a site? Does all the process run without errors? How much time takes your process to execute ?  Are all the tasks assigned to the same user there are some factors that can break the chain. &lt;br /&gt;
&lt;br /&gt;
José&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/58747?ContentTypeID=1</link><pubDate>Sat, 04 Aug 2018 15:18:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80da6f7e-4df6-4397-99d4-37cb2cbb8f9d</guid><dc:creator>chandu</dc:creator><description>Yeah thats what I&amp;#39;m wondering I have generated a word document through SAIL Interface.  &lt;br /&gt;
@Jpheh will it be possible to share the screen shot of your PM&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/58745?ContentTypeID=1</link><pubDate>Sat, 04 Aug 2018 14:07:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2dfa114-63a4-4229-af51-fb1a88d8f72f</guid><dc:creator>Arpit Bhargava</dc:creator><description>Hi,&lt;br /&gt;
&lt;br /&gt;
There is the difference in the a!startProcess() and a!startProcessLink().&lt;br /&gt;
a!startProcess() works as asynchronously where as a!startProcessLink() work as synchronously&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/58739?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 19:49:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e1fb35d-6932-46d6-a574-315840135a93</guid><dc:creator>Mike Schmitt</dc:creator><description>I&amp;#39;ve done this before (to generate an exported Excel report from a Record summary), but as far as I observed, chaining was honored.  What leads you to believe that it&amp;#39;s not in your case?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/58737?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 18:09:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ab0aa94-7170-4de8-9b6d-c2f547d0626a</guid><dc:creator>Jin Pheh</dc:creator><description>It doesn&amp;#39;t return anything of value and to be honest I don&amp;#39;t care about it - I am just looking for the chained nodes in the process to complete before the SAIL form considers the saveInto action completes.&lt;br /&gt;
&lt;br /&gt;
Right now the saveInto (ie the a!startProcess call) is returning before all nodes in the process are done.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/58736?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 18:03:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9f0689c3-54db-4086-b125-a6869e1afc72</guid><dc:creator>chandu</dc:creator><description>how could you say that the processinfo is returning before the chain completes?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/58735?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 17:53:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8f5effa8-5eef-4e3e-bf59-acaa211d3232</guid><dc:creator>Jin Pheh</dc:creator><description>&amp;gt; If a chained flow encounters an attended activity, the activity will be assigned to the user that the Start Process smart service was run as, but it will not open the associated form.&lt;br /&gt;
&lt;br /&gt;
While accurate this doesn&amp;#39;t apply in my situation - I&amp;#39;m running a headless (unattended) process so this doesn&amp;#39;t matter.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/58734?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 17:52:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1087d0d2-8fdc-4aa4-8173-464cfc2fa119</guid><dc:creator>Jin Pheh</dc:creator><description>&amp;gt; From the start node the smart service will follow the activity chaining. Once the activity chain breaks or the flow completes, then only the processInfo will get the value, that is what we get in fv!processInfo.&lt;br /&gt;
&lt;br /&gt;
Yes, this is my understanding as well however this is not what I&amp;#39;m seeing happen.  processInfo is returning before the chain completes.  I have validated that the chain is unbroken and that no error occurred.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/58733?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 17:50:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:870a36b9-defd-4687-aa15-e91e5e18fb1d</guid><dc:creator>chandu</dc:creator><description>&lt;p&gt;In the documentation they clearly mentioned the point like,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="font-family:georgia, palatino;"&gt;If a chained flow encounters an attended activity, the activity will be assigned to the user that the Start Process smart service was run as, but it will not open the associated form.&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:georgia, palatino;"&gt;&lt;em&gt;The start process link is introduced in latest version of Appian, I could not remember which version of Appian they have introduced. But I believe the a!startProcess is available before a!startProcessLink. They come up with the functionality where the user can trigger a process from SAIL with chained forms.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/58732?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 17:43:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6f155a67-314a-40e4-a33f-fec1898f9539</guid><dc:creator>chandu</dc:creator><description>Please correct me if my understanding is wrong. From the documentation What I understand is a!startProcess() &amp;quot;This smart service follows activity-chaining, completing only when the activity chain is complete or broken. The smart service then returns the process variables as of the completion of activity chaining through the processInfo.pv output.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
From the start node the smart service will follow the activity chaining. Once the activity chain breaks or the flow completes, then only the processInfo will get the value, that is what we get in fv!processInfo.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/58731?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 17:38:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1262290d-1f03-4966-9b99-ba388bf0cceb</guid><dc:creator>Jin Pheh</dc:creator><description>&amp;gt; Could you please let us know your detailed requirement? we will try to suggest the possible approaches.&lt;br /&gt;
&lt;br /&gt;
There is a Record view that displays data and I&amp;#39;m  trying to offer an inline method of updating the data.  The update in question requires more than I can achieve using just saveInto so I externalized the update into a process model.&lt;br /&gt;
&lt;br /&gt;
I realize I can achieve the same thing using a related action but the UX of doing this feels extremely clunky and is something I am aiming to avoid.  &lt;br /&gt;
&lt;br /&gt;
As I mentioned in my original post, using a link (ie: a!startProcessLink) works as expected - I&amp;#39;m just trying to figure out why startProcessLink and startProcess work differently.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/58730?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 17:30:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e28c66b-2323-4bf4-bcf1-81751915aa2c</guid><dc:creator>Jin Pheh</dc:creator><description>Hey Chandu,&lt;br /&gt;
&lt;br /&gt;
I agree that the doc you listed says it only works asynchronously however the documentation for a!startProcess() explicitly says that it respects activity chaining when starting a process from an interface&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/18.2/Start_Process_Smart_Service.html#leveraging-activity-chaining"&gt;docs.appian.com/.../Start_Process_Smart_Service.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Is this a problem with the docs and I happened to pick the bad one?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting a Process from a SAIL interface and chaining</title><link>https://community.appian.com/thread/58729?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 17:26:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a7a3b91c-e628-4676-b1e3-e80849c9d49f</guid><dc:creator>chandu</dc:creator><description>&lt;p&gt;Hi Jpheh,&lt;br /&gt; As per the documentation below,That is an expected behaviour. &lt;br /&gt; &lt;a href="https://docs.appian.com/suite/help/18.2/Ways_to_Start_a_Process_From_a_Process.html#starting-a-process-from-an-interface"&gt;docs.appian.com/.../Ways_to_Start_a_Process_From_a_Process.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In the a!startProcess()&lt;/p&gt;
&lt;p&gt;onSuccess: you can get the pv values from the function variable&amp;nbsp;&lt;em&gt;fv!processInfo&lt;/em&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;for more info please refer documentation&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/18.2/Start_Process_Smart_Service.html#a!startprocess()"&gt;docs.appian.com/.../Start_Process_Smart_Service.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could you please let us know your detailed requirement? we will try to suggest the possible approaches.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>