<?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>Web API requirement.</title><link>https://community.appian.com/discussions/f/integrations/19245/web-api-requirement</link><description>Hi Folks, 
 
 I&amp;#39;m trying to achieve the following. 
 Use case: 
 In our application, Appian is implementing as a headless application. Business wants to complete tasks from the external web application, but the process flow should be built in Appian.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Web API requirement.</title><link>https://community.appian.com/thread/75654?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 02:26:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c5c8c32e-7101-402b-96a2-487e1f9204d3</guid><dc:creator>legotx</dc:creator><description>&lt;p&gt;Why don&amp;#39;&amp;#39;t you create two WebAPI endpoints? I think it would be easier and will it it more reusable assuming that you divide the operations properly?&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Create a Process Model with these Elements&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;User Input Task-&amp;gt;
&lt;ol&gt;
&lt;li&gt;Form 1 (Enter User Information)&lt;/li&gt;
&lt;li&gt;User enters information&lt;/li&gt;
&lt;li&gt;User submits&lt;/li&gt;
&lt;li&gt;Send data to Web API #1&lt;/li&gt;
&lt;li&gt;User gets response.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;User gets response -&amp;gt; If continue = YES (XOR Gateway)
&lt;ol&gt;
&lt;li&gt;YES:
&lt;ol&gt;
&lt;li&gt;User Input Task&lt;/li&gt;
&lt;li&gt;Pass data from Form 1 to Form 2 (Enter other details) in Process Variables&lt;/li&gt;
&lt;li&gt;User enters information&lt;/li&gt;
&lt;li&gt;User submits&lt;/li&gt;
&lt;li&gt;Send data to Web API #2&lt;/li&gt;
&lt;li&gt;User gets response&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;NO, display reason not to continue&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;User Input Task -&amp;gt; Form 3 -&amp;gt; Display Confirmation&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Web API requirement.</title><link>https://community.appian.com/thread/75344?ContentTypeID=1</link><pubDate>Sun, 12 Jul 2020 08:02:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:02b38acd-d7dd-4567-b552-374778066e32</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;For which variant?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Web API requirement.</title><link>https://community.appian.com/thread/75342?ContentTypeID=1</link><pubDate>Sat, 11 Jul 2020 21:34:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0e161723-1820-487a-9c50-02d704b6c1c2</guid><dc:creator>sharathp0002</dc:creator><description>&lt;p&gt;Thanks for your reply,&amp;nbsp;&lt;br /&gt;Could you please elaborate on what steps you have performed in the process model?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sharath&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Web API requirement.</title><link>https://community.appian.com/thread/75341?ContentTypeID=1</link><pubDate>Sat, 11 Jul 2020 13:47:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b0e499e3-dab6-4288-a338-58c874958dd2</guid><dc:creator>ManuelHTG</dc:creator><description>&lt;p&gt;Why not separate it in two processes instead?&lt;/p&gt;
&lt;p&gt;The second process should receive an identifier or something to match it with the first process.&lt;/p&gt;
&lt;p&gt;You could then call the second process to start from the API directly and you would probably need to handle exceptions on the second process.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Web API requirement.</title><link>https://community.appian.com/thread/75337?ContentTypeID=1</link><pubDate>Sat, 11 Jul 2020 09:39:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:782ce601-a750-4b45-b04d-e497ab118adf</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I recently implemented something similar. In the process I had a &amp;quot;Receive Message&amp;quot; event waiting. I had a Web API receiving the data which started a process. This process sends the data via a message to the waiting one. Works, but I think this is not the best solution. Next time I will try to just have short snippets of process, persisting state and data in DB, and each incoming call just figures out by status which process to start next. This way there are no active waiting process instances. Keep an eye on proper validation of incoming data and also if a specific call is allowed in the status the process is in.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>