<?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 a process as an action from external URL</title><link>https://community.appian.com/discussions/f/process/21935/start-a-process-as-an-action-from-external-url</link><description>Hi, 
 is there any way we could start the process model with start form and pass some input parameters from external URL. We have a request where we will have to search some customers in external system, and pass the related customerId to appian process</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/112455?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 14:37:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:060c2383-383c-422c-8d2f-77c486fcbb94</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Feel free to post a product enhancement request to Appian.&lt;/p&gt;
&lt;p&gt;There is a way to do it, but I agree, it is not the most straight forward one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/112453?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 14:19:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2324fd19-5a12-4986-976e-099ce9d99c02</guid><dc:creator>lorenzot0001</dc:creator><description>&lt;p&gt;The process would be started, however, and so I should find a way to know that this happened and stop it somehow... It sounds very tricky. It feels strange to me that there is no way to achieve this. It sounds as a reasonable request that Appian should satisfy in a simpler way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/112450?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 14:15:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d68cfee2-96ce-45c7-82a8-26380a3fe6ed</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Nothing, but in case the task is still not there, you can return a status code to tell that system to try it again later.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/112448?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 14:13:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:599ea052-cd95-4fda-80b8-1fb40b4f64da</guid><dc:creator>lorenzot0001</dc:creator><description>&lt;p&gt;You mean that the external system should make a call to start the process and then a second one to retrieve the task? I don&amp;#39;t think that this would be totally safe too. What should ensure the task would be created in the moment of the second call, if the start process api can respond before the task is created?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/112446?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 13:56:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7e8c2927-50e0-424e-be83-171ae6ee5288</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Would it be possible to implement that in an asynchronous way? One call to start the process, and a second to get the task id?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/112442?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 13:05:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7a094f56-fdf6-4c85-8c4d-6f3a11651ce0</guid><dc:creator>lorenzot0001</dc:creator><description>&lt;p&gt;I would need to pass input parameters from the external system in that form. I don&amp;#39;t think I would be able to do that with a start form process. Is there a way?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/112441?ContentTypeID=1</link><pubDate>Tue, 09 May 2023 12:59:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4ec0795d-2e71-4d93-bf7d-dfd7144dda69</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I don&amp;#39;t think there&amp;#39;s really a way to prevent race conditions - even with the plug-in I would guess that you could end up with scenarios where the task was not created yet by the time you run the process.&lt;/p&gt;
&lt;p&gt;Can you just link to a start form or is it actually necessary to start a process for this scenario?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/112394?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 19:07:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84864ca4-cb12-4786-96c2-33bd5b33cbb3</guid><dc:creator>lorenzot0001</dc:creator><description>&lt;p&gt;I think my issue is solved in the other post I opened to highlight it&amp;nbsp;&lt;a href="/discussions/f/integrations/28612/start-process-via-api-and-put-task-url-in-the-response/112392"&gt;https://community.appian.com/discussions/f/integrations/28612/start-process-via-api-and-put-task-url-in-the-response/112392&lt;/a&gt;&amp;nbsp;.&lt;/p&gt;
&lt;p&gt;The issue seems to be that the process report has a little delay in fetching updated data. Using the function&amp;nbsp;&lt;span&gt;getactivetaskidsforprocess() instead of the process report seems to have solved the issue (I will test it extensively).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you very much for your support, anyway. You are a great community.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/112390?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 18:29:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9c285fce-345d-4aa6-9cac-a98dc7611046</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;a href="/members/peter.lewis"&gt;Peter Lewis&lt;/a&gt;, do you have any ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/112389?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 18:09:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:07a91d5f-4a26-4bc2-a0d1-2297829a2108</guid><dc:creator>lorenzot0001</dc:creator><description>&lt;p&gt;We tried, but unfortunately it didn&amp;#39;t work. Still same error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/112388?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 18:04:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:934fe318-17fc-4147-931b-bd69c57ae2a7</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK. Thanks. I think this is an edge case of how a process model reacts on the end of the chain and ehan that task becomes active.&lt;/p&gt;
&lt;p&gt;Can you try to extent the chain after the task.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/112387?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 17:36:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48c63a32-5b9b-45ca-8ab9-bcd865129bfe</guid><dc:creator>lorenzot0001</dc:creator><description>&lt;p&gt;We tried but the we still have the same error, occurring randomly. Here is the new code.&lt;/p&gt;
&lt;p&gt;a!httpResponse(&lt;br /&gt; statusCode: 200,&lt;br /&gt; headers: {&lt;br /&gt; a!httpHeader(name: &amp;quot;Content-Type&amp;quot;, value: &amp;quot;application/json&amp;quot;)&lt;br /&gt; },&lt;br /&gt; body: a!toJson({&lt;br /&gt; taskUrl: a!urlfortask(&lt;br /&gt; taskIds: index(index(index(a!queryProcessAnalytics(&lt;br /&gt; report: cons!LM_TR_BY_PID,&lt;br /&gt; contextProcessIds: {&lt;br /&gt; index(index(fv!processInfo, &amp;quot;pp&amp;quot;, null), &amp;quot;id&amp;quot;, null)&lt;br /&gt; },&lt;br /&gt; query: a!query(pagingInfo: a!pagingInfo(1,1))&lt;br /&gt; ), &amp;quot;data&amp;quot;, null), &amp;quot;c4&amp;quot;, null), 1, null)&lt;br /&gt; )&lt;br /&gt; })&lt;br /&gt; )&lt;/p&gt;
&lt;p&gt;The report that we are using is a task report of type &amp;quot;&lt;span&gt;Tasks by process&amp;quot;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/112385?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 17:26:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d996ce02-8054-4015-9f3d-79fbcfd15cfb</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Hm ...&amp;nbsp;Can you try to use a process report and queryProcessAnalytics instead of that plugin function?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/112384?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 16:32:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80e6a470-923d-4764-afad-08149e071108</guid><dc:creator>lorenzot0001</dc:creator><description>&lt;p&gt;We start the process with&amp;nbsp;a!startProcess&amp;nbsp;and we value the onSuccess parameter of that rule like this:&lt;/p&gt;
&lt;p&gt;a!httpResponse(&lt;br /&gt;statusCode: 200,&lt;br /&gt;headers: {&lt;br /&gt;a!httpHeader(name: &amp;quot;Content-Type&amp;quot;, value: &amp;quot;application/json&amp;quot;)&lt;br /&gt;},&lt;br /&gt;body: a!toJson({&lt;br /&gt;taskUrl: a!urlfortask(&lt;br /&gt;index(rule!LM_getTaskDetailsByPid(&lt;br /&gt;pid: index(index(fv!processInfo, &amp;quot;pp&amp;quot;, null), &amp;quot;id&amp;quot;, null)&lt;br /&gt;), &amp;quot;taskId&amp;quot;, null)&lt;br /&gt;)&lt;br /&gt;})&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;where&amp;nbsp;&lt;span&gt;rule!LM_getTaskDetailsByPid is a rule that, given a process id, retrieves the id of the active task of the process in the taskId component using a task report and query analytics.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It seems that sometimes the system tries to evaluate&amp;nbsp;LM_getTaskDetailsByPid before the process reached the user input task.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you very much for your help, really appreciated!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/112382?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 16:26:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5a18b0b-8cad-4e3c-9dd7-8f210d1c0c42</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Hm, we&amp;nbsp;did not see this issue years ago. How do you obtain the task id?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/112380?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 16:17:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6b1a8a84-d76c-457a-84b9-9544f7cad57d</guid><dc:creator>lorenzot0001</dc:creator><description>&lt;p&gt;Hi Stefan, how did you achieve this? We built an API which start the process, we&amp;nbsp;chained&amp;nbsp;the start node to the first user input task and we retrieve the task url in the api upon building the response.&lt;/p&gt;
&lt;p&gt;This appears not to be working always. It appears to work fine 80% or the times, but sometimes it seems that the api builds the response before the process assignes the task!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/112378?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 16:02:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:014f32b7-123c-41ad-8069-62c944b0307e</guid><dc:creator>lorenzot0001</dc:creator><description>&lt;p&gt;Hi Stefan, how did you achieve this? We built an API which start the process, we&amp;nbsp;chained&amp;nbsp;the start node to the first user input task and we retrieve the task url in the api upon building the response.&lt;/p&gt;
&lt;p&gt;This appears not to be working always. It appears to work fine 80% or the times, but sometimes it seems that the api builds the response before the process assignes the task!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/85944?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 07:18:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ec9890c-9623-4c30-81d0-662a8486bf21</guid><dc:creator>mislavu0001</dc:creator><description>&lt;p&gt;Ok, clear, thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/85943?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 07:14:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9eb8a518-363d-4ce0-bcb9-cf1e0f029f4f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Not directly. One option might be to use an embedded interface. Not sure about the restrictions in that specific case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/85942?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 06:26:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d7ed3ac2-e38c-4e42-ab68-6a35854ca39a</guid><dc:creator>mislavu0001</dc:creator><description>&lt;p&gt;Hi Stefan, thank you for your feedback. I was thinking about this possibility, but can we open a start form this way. Our intention is not to start the process instance but only open a start form from a link. Maybe I am not aware, but is there a function which can return a &amp;#39;start form&amp;#39; task id if process instance is not started? End user can click the link in external system several times and we don&amp;#39;t want to start the process instance each time, actually we want to start it if this first &amp;#39;start form&amp;#39; is submitted.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Start a process as an action from external URL</title><link>https://community.appian.com/thread/85912?ContentTypeID=1</link><pubDate>Mon, 20 Sep 2021 14:13:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8e9782a1-039d-4b7f-bedf-21e7238ced99</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;We implemented the following pattern for this. An API call passes the necessary data&amp;nbsp;to Appian and starts a process. The API call returns the URL to the task. The other system forwards the user to this task.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>