<?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 save a value of local variable to rule input.</title><link>https://community.appian.com/discussions/f/data/25625/how-to-save-a-value-of-local-variable-to-rule-input</link><description>How to save a value of local variable to rule input.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100172?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 09:59:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3aea2a9c-ae8c-4528-aba8-7a74d6a0acc3</guid><dc:creator>shreeharshan0678</dc:creator><description>&lt;p&gt;Thank you, now I got the point.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100171?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 09:56:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1562c776-2a50-42d7-92aa-761602bbd7ba</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Yes. You cannot. You can do it in an interface but you cannot do it in an expression rule&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100170?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 09:54:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e239009a-1eb0-403f-bac2-1e08182330c5</guid><dc:creator>shreeharshan0678</dc:creator><description>&lt;p&gt;You mean i cant updated the value of local variable or rule input?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100169?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 09:53:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c7b0f3e-18b4-4788-8918-2ed6bf34391b</guid><dc:creator>shreeharshan0678</dc:creator><description>&lt;p&gt;&lt;span&gt;I&amp;#39;m getting this error while applying above logic.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Expression evaluation error at function a!localvariables: Local variables may only be defined within the &amp;quot;local&amp;quot; domain. The local variable &amp;#39;ri!sample&amp;#39; uses an invalid domain.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100168?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 09:53:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c8171112-52ef-4c4b-add2-11bb23c8e304</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;You cannot do that. Values of RI cannot be changed. As a matter of fact, values of local variables also cannot be changed once defined.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100167?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 09:52:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1c7b13bf-8bf3-440f-b1b9-e924f37d6f53</guid><dc:creator>shreeharshan0678</dc:creator><description>&lt;p&gt;I did. How to do the other way around.&lt;/p&gt;
&lt;p&gt;local!var1 : &amp;quot;sample data&amp;quot;,&lt;/p&gt;
&lt;p&gt;ri!data : local!var1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100166?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 09:47:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6f5f7b41-77a5-4bb9-a2b7-e1cb6e6fda19</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Did you see the screenshot?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100165?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 09:45:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cc4b8313-4342-47a8-b589-0a75f138b749</guid><dc:creator>shreeharshan0678</dc:creator><description>&lt;p&gt;I did get that point. My only point is how to work with both local variables and rule inputs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100164?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 09:42:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1815f3d1-f630-4766-b0b3-00e9ed7a228e</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;THERE ARE NO OUTPUT VARIABLES!!!!!&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1661420598506v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100163?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 09:39:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:654cd968-f09c-4046-b5eb-f80412ecd90a</guid><dc:creator>shreeharshan0678</dc:creator><description>&lt;p&gt;My input is a ID......in the expression rule first I will get the value and do some process with that value and then processed data will be my output.&lt;/p&gt;
&lt;p&gt;In this case I thought of using local variables for processing (like in traditional programming languages) and once its done I will assign back to output variable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100160?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 09:10:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:61d7b132-9243-42ae-847e-b868f7dddfdb</guid><dc:creator>deepakg271869</dc:creator><description>&lt;p&gt;What exactly yoou are trying to get from expression rule. What are your inputs?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100157?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 09:07:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9d20f986-0b38-4ad2-85ac-68fe26e0fcd0</guid><dc:creator>shreeharshan0678</dc:creator><description>&lt;p&gt;I&amp;#39;m not facing any problems regarding getting inputs and setting output, My problems is in implementing logic using rule inputs and local variables.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100145?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 07:22:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2f73a1ec-275b-4cbc-8ba3-470c70d41ee2</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Your understanding is absolutely right. And on that track, in a traditional programming lang, you use parameters only to bring in inputs. You use a dedicated return statement to push the output. Same is here. You just avoid return rather you just write that statement.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100144?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 07:20:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:63f3a159-dbb4-489f-8357-70d7b64ba9e5</guid><dc:creator>shreeharshan0678</dc:creator><description>&lt;p&gt;I thought that rule inputs are like parameters of the function and local variables are like function variables,.....I have to do some process with parameters and local variables.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100138?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 07:14:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:afb47fbc-c41b-4001-839e-194b4a182088</guid><dc:creator>deepakg271869</dc:creator><description>&lt;p&gt;Why you have to pass local variable to rule input? Just pass local variable as an output.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100137?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 07:13:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4ea516d0-a939-4303-a95b-9b603e16e45a</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;You cannot update the values of variables in an expression rule. Also, you should not be needing it.&amp;nbsp;&lt;br /&gt;Rule inputs are for bringing inputs from outside the rule. For returning a value, you can just write it in the expression rule, as the last statement and it should be returned.&amp;nbsp;&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1661411811548v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100135?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 07:12:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f593dce6-f35e-4a95-886e-d47fcac53904</guid><dc:creator>shreeharshan0678</dc:creator><description>&lt;p&gt;I&amp;#39;m not using this in interface, I&amp;#39;m doing this in rule expression.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save a value of local variable to rule input.</title><link>https://community.appian.com/thread/100134?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 07:10:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:97aa3140-3646-4b0f-b634-2f3faf0a27b9</guid><dc:creator>deepakg271869</dc:creator><description>&lt;p&gt;under saveinto Parameter use a!save(ri!{varName},local!{localVariablName}). For example a!save(ri!data,local!data).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>