<?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>Rule Input</title><link>https://community.appian.com/discussions/f/general/13739/rule-input</link><description>Hi, 
 Anyone can explain why do we need to give rule input and when do we we need it with example?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Rule Input</title><link>https://community.appian.com/thread/62398?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 00:42:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84fe0832-d7bb-4a0c-83a1-aadeb4dc21db</guid><dc:creator>Ruby Raj</dc:creator><description>The main advantage of rule input is that you can easily pass data to the process model.Once you create rule inputs in the interface, the rule inputs can be mapped to the process variables in the process model.This makes the process simpler.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule Input</title><link>https://community.appian.com/thread/62353?ContentTypeID=1</link><pubDate>Tue, 06 Nov 2018 16:35:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7f6a338f-e4e0-4a53-ab51-5008810d5e67</guid><dc:creator>legodfw</dc:creator><description>Rule inputs also simplify the logic. Reduced the number of lines of code for an object. And able to reuse the same code over and over again.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rule Input</title><link>https://community.appian.com/thread/62348?ContentTypeID=1</link><pubDate>Tue, 06 Nov 2018 13:48:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e48a4c8-f252-448a-be02-b2af2aa8ad05</guid><dc:creator>Joubin Izadi</dc:creator><description>&lt;p&gt;Rule inputs are&amp;nbsp;used to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;pass data down and up interfaces&lt;/li&gt;
&lt;li&gt;pass data into and out of a process model&lt;/li&gt;
&lt;li&gt;pass inputs to expression rules&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Without rule inputs, you will not be able to save data from your interface into process variables. When creating the user input task, you will assign a rule input to an action class parameter. We can pass values into this ACP and save the ACP to a process variable.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Without rule inputs, you will not be able to have multiple nested interfaces using the same data. Nor can you pass parameters to your expression rules.&lt;/p&gt;
&lt;p&gt;For example...&lt;/p&gt;
&lt;p&gt;this parent rule:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
  local!parentVar1: 5,
  local!parentVar2: 10,
  { 
    rule!JXI_childRule(
      inputVar1: local!parentVar1,
      inputVar2: local!parentVar2
    ),
    a!textField(
      label: &amp;quot;Directly accessing parentVar2 on the parent form: &amp;quot;,
      value: local!parentVar2,
      readOnly: true
    ),
    a!textField(
      label: &amp;quot;Calling an expression rule with a rule input: &amp;quot;,
      value: rule!JXI_expressionRuleRI(
        expressionRuleInput: local!parentVar2
      ),
      readOnly: true
    )
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;calls this child rule,&amp;nbsp;JXI_childRule:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  a!textField(
    readOnly: true,
    label: &amp;quot;Input Variable One: &amp;quot;,
    value: ri!inputVar1
  ),
  a!textField(
    readOnly: true,
    label: &amp;quot;Input Variable Two: &amp;quot;,
    value: ri!inputVar2
  ),
  a!buttonArrayLayout(
    align: &amp;quot;START&amp;quot;,
    buttons: a!buttonWidget(
      label: &amp;quot;DOUBLE VAR 2&amp;quot;,
      saveInto: a!save(ri!inputVar2, 2*ri!inputVar2)
    )
  )
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and this expression rule, JXI_expressionRuleRI:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;factdouble(ri!expressionRuleInput)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let me know if you have questions on any of this. Hope it helps.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Some doc links:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/17.1/Interface_Designer.html#-manage-interface-inputs"&gt;https://docs.appian.com/suite/help/17.1/Interface_Designer.html#-manage-interface-inputs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/Expression_Rules.html#overview"&gt;https://docs.appian.com/suite/help/18.3/Expression_Rules.html#overview&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/Process_Modeling_Tutorial.html#add-an-approval-step-with-a-user-input-node"&gt;https://docs.appian.com/suite/help/18.3/Process_Modeling_Tutorial.html#add-an-approval-step-with-a-user-input-node&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>