<?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>How to process an event only when value changed (to a target value) within an interface?</title><link>https://community.appian.com/discussions/f/process/26393/how-to-process-an-event-only-when-value-changed-to-a-target-value-within-an-interface</link><description>Hello, 
 I want an event to happen (send email) after submitting a user interface (form) only if a certain attribute has been changed. I figured that I would need the old and the new value of this attribute in the process. 
 What would be a good way to</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to process an event only when value changed (to a target value) within an interface?</title><link>https://community.appian.com/thread/103607?ContentTypeID=1</link><pubDate>Sat, 29 Oct 2022 12:22:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:35bd39d7-bf70-4878-ac5d-d5e362290202</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Great to hear that you get this working. A small hint:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;if(local!oldValue&amp;lt;&amp;gt;ri![MY_VALUE], TRUE, FALSE))&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;can be replaced by&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;local!oldValue&amp;lt;&amp;gt;ri![MY_VALUE]&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;as a comparison always evaluates to a boolean result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to process an event only when value changed (to a target value) within an interface?</title><link>https://community.appian.com/thread/103606?ContentTypeID=1</link><pubDate>Sat, 29 Oct 2022 12:07:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fe307302-d6f9-4ce1-832e-5b6e699684a8</guid><dc:creator>BE.Thomas </dc:creator><description>&lt;p&gt;Hello , Hello ,&lt;/p&gt;
&lt;p&gt;thank you for your suggestions.&lt;/p&gt;
&lt;p&gt;I was able to achieve my goal doing the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Interface&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;new rule input valueChanged as Boolean&lt;/li&gt;
&lt;li&gt;local variable oldValue set to the value I want to monitor by using a!refreshVariable(value: ri![MY_VALUE], refreshOnReferencedVarChange: false)&lt;/li&gt;
&lt;li&gt;Submit-Button saveInto:&amp;nbsp;a!save(ri!&lt;span&gt;valueChanged&lt;/span&gt;, if(local!oldValue&amp;lt;&amp;gt;ri![MY_VALUE], TRUE, FALSE))&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Process
&lt;ul&gt;
&lt;li&gt;add process variable (and assign it to the rule input)&lt;/li&gt;
&lt;li&gt;add process logic accordingly&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;KR&lt;br /&gt;Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to process an event only when value changed (to a target value) within an interface?</title><link>https://community.appian.com/thread/103603?ContentTypeID=1</link><pubDate>Sat, 29 Oct 2022 09:56:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bc4d2528-1307-4134-93d3-49e4ad1805a8</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The trick here is that you will need to save the old value in a local variable set to never refresh. Then you can compare that to the new value. I suggest to put that logic into the saveInto of the submit button. Store that result into a boolean which then controls the process.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to process an event only when value changed (to a target value) within an interface?</title><link>https://community.appian.com/thread/103601?ContentTypeID=1</link><pubDate>Sat, 29 Oct 2022 08:54:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cb558e6b-130e-4e22-b998-252370525f96</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;hi thomas, you can have a boolean variable which will have true or false when a attribute gets changed , based on this variable you can design your process flow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>