<?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 Response</title><link>https://community.appian.com/discussions/f/general/9815/web-api-response</link><description>Hi, I have created REST Web API (POST method) in 16.2. It starts a Process Model in Appian and return response. I need to send status at the end of process model complete (so that my all validation performed and i have its status) but problem is, web</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Web API Response</title><link>https://community.appian.com/thread/70894?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 08:42:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed764c41-b6d6-4f0d-99d1-a2ec8bbbe426</guid><dc:creator>chetnag856</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a similar requirement where a process model is exposed as a webAPI. On completion of&amp;nbsp;process, value of pv!statusCode (based on some logic) is generated. I want this statusCode to be sent in response of webAPI whenever called by an external system. Can you please how to implement this?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Web API Response</title><link>https://community.appian.com/thread/45054?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2017 22:50:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:506b2ac1-697f-47fd-bfc5-9078de233e20</guid><dc:creator>rawich</dc:creator><description>&lt;p&gt;You can use Synchronous Process Model Web Service plug-in (a Shared Component)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://forum.appian.com/suite/tempo/records/item/lMBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUhuKjLnN5vWmMZe7gc4wlExtc2Lgi9qRl9A/view/summary"&gt;https://forum.appian.com/suite/tempo/records/item/lMBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUhuKjLnN5vWmMZe7gc4wlExtc2Lgi9qRl9A/view/summary&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Expose your process model as web service using this plug-in, so that the web service will be synchronous (the WS call will wait until the chain of activity is broken, before returning the PV values to the client).&lt;/p&gt;
&lt;p&gt;Although, the service will be available as SOAP WS, not REST-ful API.&lt;/p&gt;
&lt;p&gt;You can try to call the above SOAP WS with&amp;nbsp;webservicewrite() function from within your Web API implementation. &amp;nbsp;If Basic Authentication (which is required by the SOAP WS) is supported by webservicewrite() function, then you got a solution.&lt;/p&gt;
&lt;p&gt;-Rawich&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Web API Response</title><link>https://community.appian.com/thread/45047?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2017 18:37:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9ed08db6-5e2a-429b-a5d7-284363864c15</guid><dc:creator>Sikandar Dadan</dc:creator><description>Have activity chaining between the all the nodes in the PM including the Start and End.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Web API Response</title><link>https://community.appian.com/thread/43289?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2017 12:04:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:474992c4-6dcd-40cc-816d-d8f62734cc7c</guid><dc:creator>Stefan Helzle</dc:creator><description>From the documentation: &amp;quot;The new process is started asynchronously and the process flow of the current process continues immediately after the new process starts.&lt;br /&gt;&amp;quot;&lt;br /&gt;In the current implementation you cannot get PVs from the process.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Web API Response</title><link>https://community.appian.com/thread/43271?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2017 00:31:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cb176331-6bc6-4926-ad50-28807fc44190</guid><dc:creator>aloks0189</dc:creator><description>@simples try doing the same using using Expression rule as shown below:&lt;br /&gt;&lt;br /&gt;it might work for you&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/11/startProcessExpressionRule.PNG"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/11/startProcessExpressionRule.PNG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>