<?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>show custom message when a!startprocess when called from an interface fails</title><link>https://community.appian.com/discussions/f/best-practices/35128/show-custom-message-when-a-startprocess-when-called-from-an-interface-fails</link><description>I am using a!startprocess function from an interface to save some data to db, now lets say the process model being called encounters a run time error in some node, i need to show the user some custom message like &amp;#39; some error occured&amp;#39; in the interface</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: show custom message when a!startprocess when called from an interface fails</title><link>https://community.appian.com/thread/136174?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 10:48:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:759bd4ff-87c2-4c4e-92ec-3d9d56c37a8b</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;This is an example that I like to refer to for handling errors with a startProcess in an API but the method would be very similar:&amp;nbsp;&amp;nbsp;&lt;a href="/discussions/f/process/20396/status-code-of-a-webapi-to-start-process-model"&gt;https://community.appian.com/discussions/f/process/20396/status-code-of-a-webapi-to-start-process-model&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: show custom message when a!startprocess when called from an interface fails</title><link>https://community.appian.com/thread/136173?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 10:45:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:756c17c9-8b2d-48b5-aec6-f370436b83c0</guid><dc:creator>mohammedfarazu075443</dc:creator><description>&lt;p&gt;i see what you mean , let me try it out&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: show custom message when a!startprocess when called from an interface fails</title><link>https://community.appian.com/thread/136172?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 10:44:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0d7041e6-cba1-4a2e-93bd-06e0401a19e6</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;Wait for a process response, as a variable.. and after that, with refresh variables, control the behavior of the interface, and depending on the value received from the process, show the message or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: show custom message when a!startprocess when called from an interface fails</title><link>https://community.appian.com/thread/136171?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 10:41:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7b29cfd4-a763-4e12-b86a-41ced23dd954</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Sure, but with some clever design of process variables and value setting, you should be able to return such a message to the user when evaluating onSuccess.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: show custom message when a!startprocess when called from an interface fails</title><link>https://community.appian.com/thread/136170?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 10:36:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ad862d00-ccd9-4992-89ea-2c83a38d56bd</guid><dc:creator>mohammedfarazu075443</dc:creator><description>&lt;p&gt;havent tried this , but my understanding was&amp;nbsp;&lt;span&gt;the behavior of how onError works, from the Docs: &amp;quot;&lt;/span&gt;&lt;span&gt;The onError parameter will only evaluate if the process fails to start. It will&amp;nbsp;&lt;/span&gt;&lt;em&gt;not&lt;/em&gt;&lt;span&gt;&amp;nbsp;evaluate if a node in the started process pauses by exception&amp;quot;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: show custom message when a!startprocess when called from an interface fails</title><link>https://community.appian.com/thread/136169?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 10:30:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9628828b-b3df-434e-9983-1c51464f1175</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Using activity chaining, you can control at which step in the process the a!startProcess function returns. Did you try this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>