<?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>Start Process Using WEB API and get the Response with the Updated Variables</title><link>https://community.appian.com/discussions/f/integrations/12421/start-process-using-web-api-and-get-the-response-with-the-updated-variables</link><description>Hi All, 
 I am creating a WEB API which will in turn trigger a process model. 
 Now this is been executed, it contains 2 data store entities which gets updated. 
 now In order to send the response back to the External system My main intention is to send</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Start Process Using WEB API and get the Response with the Updated Variables</title><link>https://community.appian.com/thread/121965?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 08:40:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cc08ff14-0b11-4338-9475-4bbc6cbc1445</guid><dc:creator>siddharthb0005</dc:creator><description>&lt;p&gt;Using activity chaining in process and on success field of start process function,&amp;nbsp; you can do this there will be no problem in future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start Process Using WEB API and get the Response with the Updated Variables</title><link>https://community.appian.com/thread/121906?ContentTypeID=1</link><pubDate>Sun, 19 Nov 2023 10:51:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ea12212a-302e-47fe-9864-3e1185071e55</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Not.&lt;/p&gt;
&lt;p&gt;You need chaining&amp;nbsp;to delay the response up to the point where you gathered the necessary data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start Process Using WEB API and get the Response with the Updated Variables</title><link>https://community.appian.com/thread/121889?ContentTypeID=1</link><pubDate>Sun, 19 Nov 2023 05:12:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:87952fb7-3b09-4c59-a926-f7ba0bf3fc66</guid><dc:creator>tarunt0003</dc:creator><description>&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just curious, how can we return the response of process instance without activity chaining the model.&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start Process Using WEB API and get the Response with the Updated Variables</title><link>https://community.appian.com/thread/70106?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 13:45:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0d05942e-8d12-46d9-8789-d61f29a7648a</guid><dc:creator>rajeshr501</dc:creator><description>&lt;p&gt;Hi Alok, So if we want to respond the caller with a synchronous response of inserted PK&amp;#39;s and additional response from various other inserts , what can be the best approach ? Suggestion on how you overcome the issue is highly appreciated.&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Raj&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start Process Using WEB API and get the Response with the Updated Variables</title><link>https://community.appian.com/thread/55268?ContentTypeID=1</link><pubDate>Thu, 17 May 2018 08:28:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:070bb852-4c06-414c-93d3-5ef412551b82</guid><dc:creator>harshav420</dc:creator><description>Sure Alok,&lt;br /&gt;
We will work accordingly.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start Process Using WEB API and get the Response with the Updated Variables</title><link>https://community.appian.com/thread/55248?ContentTypeID=1</link><pubDate>Thu, 17 May 2018 01:39:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7606e56d-5fc8-4345-83df-cb833096970b</guid><dc:creator>aloks0189</dc:creator><description>Hi &lt;a href="/members/harshav420"&gt;harshav420&lt;/a&gt; sometime even when you are not performing any complex logic, this might fail due to load on server. Because when we make asynchronous call means we are asking Appian to trigger this process, whenever applicable (based on the resource availability). &lt;br /&gt;
&lt;br /&gt;
So i suggest, do not rely on this, else you will end up with unexpected result/behavior/bugs at any point of time, and you can&amp;#39;t even raise a support ticket, because as per the documentation it&amp;#39;s the expected behavior, and i have seen several cases where this approach failed even when we perform very light operation.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start Process Using WEB API and get the Response with the Updated Variables</title><link>https://community.appian.com/thread/55199?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 08:36:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6dd34c45-b0e3-4e34-9fcc-2dfc741a4e25</guid><dc:creator>harshav420</dc:creator><description>Thanks Alok,&lt;br /&gt;
&lt;br /&gt;
but what we are actually trying to do is .... we are having 2 script tasks and 2 WDSEs where based on some data validations we get the result pv get updated, and based on pv value we are showing the error message. We are not having a very big process in that....does it still fail or do we need to think of any other approach.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start Process Using WEB API and get the Response with the Updated Variables</title><link>https://community.appian.com/thread/55196?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 08:26:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca1997c0-33fe-49a2-ae05-b277081af88f</guid><dc:creator>aloks0189</dc:creator><description>Hi &lt;a href="/members/harshav420"&gt;harshav420&lt;/a&gt;  you shouldn&amp;#39;t depend upon the activity chaining to get the updated variables values in web API.&lt;br /&gt;
&lt;br /&gt;
Because, a!startProcess() invokes a process asynchronously which means process might start immediately or with some delay based on scheduling algorithm/ based on load on server by considering load balancing.&lt;br /&gt;
&lt;br /&gt;
I know, when you chain the nodes, Appian tries to complete the execution of the chained node as quickly as possible but you cannot rely on that. As per appian documentation, they have clearly mentioned about startProcess function asynchronous behaviour.&lt;br /&gt;
&lt;br /&gt;
Hence, you cannot be sure about these process to start immediately, it&amp;#39;s all your assumptions that it will start immediately, and this will drag your application into issues while it&amp;#39;s in production. &lt;br /&gt;
&lt;br /&gt;
Also you can capture few details, whether process started successfully or failed using the following attributes of this function: onSuccess, onError&lt;br /&gt;
&lt;br /&gt;
 I recommend you, not to rely on this approach, because this will be a temporary solution which won&amp;#39;t work always. You need to think about some alternate options to achieve your requirement.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start Process Using WEB API and get the Response with the Updated Variables</title><link>https://community.appian.com/thread/55192?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 06:58:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6427e554-c838-41ab-b60c-c7173d7d74a3</guid><dc:creator>rohitr303</dc:creator><description>:)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start Process Using WEB API and get the Response with the Updated Variables</title><link>https://community.appian.com/thread/55175?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 16:03:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5dc016c-bf01-4a38-8b4c-63c47412a6f2</guid><dc:creator>harshav420</dc:creator><description>Hi Rohit,&lt;br /&gt;
&lt;br /&gt;
This is working and thanks for the inputs....&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start Process Using WEB API and get the Response with the Updated Variables</title><link>https://community.appian.com/thread/55156?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 08:29:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3e599e63-c32a-41d7-b16a-a066eadd7d01</guid><dc:creator>harshav420</dc:creator><description>Thanks rob,&lt;br /&gt;
let me give a try&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start Process Using WEB API and get the Response with the Updated Variables</title><link>https://community.appian.com/thread/55155?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 08:29:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cd838cd2-abff-4cb2-9ce8-f35e9bab6ceb</guid><dc:creator>harshav420</dc:creator><description>Thanks rohit, let me try that and get back to you.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start Process Using WEB API and get the Response with the Updated Variables</title><link>https://community.appian.com/thread/55150?ContentTypeID=1</link><pubDate>Tue, 15 May 2018 07:54:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ecf6275a-0706-43f2-a12a-e8dba96ea873</guid><dc:creator>rohitr303</dc:creator><description>Hello Harsha ,&lt;br /&gt;
&lt;br /&gt;
Sending the updated process variables as the web api response is possible , You just need to activity chain all the nodes in the process model. And in the web api response body return fv!processInfo.pv.variableName.&lt;br /&gt;
&lt;br /&gt;
Hope this helps.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Rohit Ouhal&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start Process Using WEB API and get the Response with the Updated Variables</title><link>https://community.appian.com/thread/55136?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 21:50:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e70712c1-5603-4ac1-aa95-af00f5a75887</guid><dc:creator>Robert Shankin</dc:creator><description>[deleted]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>