<?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>Obtain the response of a process when it had finished by a web api and start it with api else.</title><link>https://community.appian.com/discussions/f/data/15049/obtain-the-response-of-a-process-when-it-had-finished-by-a-web-api-and-start-it-with-api-else</link><description>Good morning, I need a web api to start a process and in the answer of the api , I only get the values of the variables of the process when the process had finished. Some people told me that you can make calls to the process and when an auxiliary variable</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Obtain the response of a process when it had finished by a web api and start it with api else.</title><link>https://community.appian.com/thread/67402?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2019 09:54:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:137516ae-8a58-4396-9bb1-29add1d3d017</guid><dc:creator>Gavin Hume</dc:creator><description>&lt;p&gt;So after some testing it looks like you can start a process within a WebAPI using a!startProcess and return the value of a process variable at the point that chaining is broken or the process end. Chaining could break due to an un-chained connection, a timer event, exceeding the maximum node limit, etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Obtain the response of a process when it had finished by a web api and start it with api else.</title><link>https://community.appian.com/thread/67401?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2019 09:47:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bed9fd33-ba3c-44c9-be3a-d549ade3281f</guid><dc:creator>rebecar369</dc:creator><description>&lt;p&gt;We have designed the web api like this ,&amp;nbsp;&amp;nbsp;and we realized recently, the web api returns information without the process had finished when it has so much subprocesses, We have a problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Obtain the response of a process when it had finished by a web api and start it with api else.</title><link>https://community.appian.com/thread/67359?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 13:50:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8e69af78-dc68-44a1-a447-a9d288ad8964</guid><dc:creator>Gavin Hume</dc:creator><description>&lt;p&gt;Actually the context sensitive help for the a!startprocess function states &amp;#39;&lt;span&gt;Asynchronously starts a process using the provided parameters&amp;#39;, which suggests that it&amp;nbsp;&lt;strong&gt;does only&lt;/strong&gt; start a process model asynchronously (but a simple test process model and Web API expression suggests that is not the case)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Obtain the response of a process when it had finished by a web api and start it with api else.</title><link>https://community.appian.com/thread/67358?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 13:42:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:87f566e4-e19b-4f9c-bce1-eaffc3ad7fa7</guid><dc:creator>Gavin Hume</dc:creator><description>&lt;p&gt;Sorry the question was&amp;nbsp;&lt;strong&gt;how&lt;/strong&gt; are you starting the process model asynchronously as the function a!startProcess does not appear to have a parameter that allows you to specify that you want the process model started asynchronously?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Obtain the response of a process when it had finished by a web api and start it with api else.</title><link>https://community.appian.com/thread/67356?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 11:57:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e73f714-72ce-4d9e-9719-74831cf1ac42</guid><dc:creator>rebecar369</dc:creator><description>&lt;p&gt;The first point is that you had said and the second , we have editor privilegies.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Obtain the response of a process when it had finished by a web api and start it with api else.</title><link>https://community.appian.com/thread/67355?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 11:52:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:33dd4393-410a-4b1f-b644-41eb1bccc98a</guid><dc:creator>Gavin Hume</dc:creator><description>&lt;p&gt;So how are you starting the process model asynchronously via a!startProcess as there does not appear to be a parameter for that?&lt;/p&gt;
&lt;p&gt;Also, have you ensured that the initiator of the Web API has Viewer access to the process model? If they only have Initiator access they will not be able to see the process instance properties, process variables, etc.?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Obtain the response of a process when it had finished by a web api and start it with api else.</title><link>https://community.appian.com/thread/67354?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 11:41:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a2fe04ef-3908-4c4c-bc58-e719678f30d8</guid><dc:creator>rebecar369</dc:creator><description>&lt;p&gt;Yes, but the process starts asynchronously and therefore the web api returns data without having finished the process, we need to return the process variables once the process is finished.&lt;/p&gt;
&lt;p&gt;We are testing the web api with which&amp;nbsp;starts the process&amp;nbsp; from Postman and returns empty data when the process is very long even put the Activity Chaining.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Obtain the response of a process when it had finished by a web api and start it with api else.</title><link>https://community.appian.com/thread/67351?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 11:26:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d852c5fe-c8dd-4fe2-b1e7-ec0fe0f07349</guid><dc:creator>Gavin Hume</dc:creator><description>&lt;p&gt;a!startProcess is provided by the Start Process Smart Service (&lt;a href="https://docs.appian.com/suite/help/18.4/Start_Process_Smart_Service.html"&gt;https://docs.appian.com/suite/help/18.4/Start_Process_Smart_Service.html&lt;/a&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Obtain the response of a process when it had finished by a web api and start it with api else.</title><link>https://community.appian.com/thread/67349?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 11:22:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fa52602a-55c9-42bb-b272-37ded3167dee</guid><dc:creator>rebecar369</dc:creator><description>&lt;p&gt;We dont use the startprocess smart service, we use a web api&amp;nbsp; and&amp;nbsp;in that web api we use a!startprocess and we pass to the process the input parameters of that webapi since this webapi is called from angular (front) and runs the engines internally,&amp;nbsp;the processes have all the activity chaining, The objective is when this process had finished , return in the hhtpresponse of the webapi the process variables because Angular needs the values of the completed process to work with them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Obtain the response of a process when it had finished by a web api and start it with api else.</title><link>https://community.appian.com/thread/67348?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 11:08:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bba5f5b5-65c4-4510-a09a-8af83113edd1</guid><dc:creator>Gavin Hume</dc:creator><description>&lt;p&gt;The documentation for the Start Process Smart Service suggests that the function&amp;nbsp;&lt;strong&gt;does&lt;/strong&gt; take account of activity chaining.&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span&gt;This smart service follows&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Process_Model_Recipes.html#using-activity-chaining-to-display-multiple-forms-in-succession"&gt;activity-chaining&lt;/a&gt;&lt;span&gt;, completing only when the activity chain is complete or&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Process_Model_Recipes.html#breaking-a-chain"&gt;broken&lt;/a&gt;&lt;span&gt;. The smart service then returns the process variables as of the completion of activity chaining through the&amp;nbsp;&lt;/span&gt;&lt;code class="highlighter-rouge"&gt;processInfo.pv&lt;/code&gt;&lt;span&gt;&amp;nbsp;output&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Obtain the response of a process when it had finished by a web api and start it with api else.</title><link>https://community.appian.com/thread/67347?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 11:01:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8e44f5ca-eb24-4771-8197-4fe9cf0ca309</guid><dc:creator>rebecar369</dc:creator><description>&lt;p&gt;Yes, all the process has the activity chaining until the End Event node, the problem is the function a!starprocess used in the web Api , this function start the process asynchornously and we need to collect the values of the process variables when it had finished and it doesnt do that, the web api return the values when the process is not finished yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Obtain the response of a process when it had finished by a web api and start it with api else.</title><link>https://community.appian.com/thread/67345?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 10:55:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf6d9ac3-42e0-4b23-90c4-c5a84d730720</guid><dc:creator>Gavin Hume</dc:creator><description>&lt;p&gt;Is your process model chained? I thought the web API would return the values of the variables at the point that chaining stops.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>