<?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>Starting process from UI - local variables vs rule inputs</title><link>https://community.appian.com/discussions/f/user-interface/21062/starting-process-from-ui---local-variables-vs-rule-inputs</link><description>Hi, 
 I have the following situation: 
 - one interface that is embedded inside the other larger interface 
 - first interface has non submit button that starts process upon click 
 - first interface has 4 rule inputs that are used as parameters for starting</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Starting process from UI - local variables vs rule inputs</title><link>https://community.appian.com/thread/82287?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 12:02:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d05f47ff-6ece-41ca-900d-6aff14c30afa</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK. Quick clarification. In Appian there is no &amp;quot;sending&amp;quot; and &amp;quot;returning&amp;quot; of variables in UI. It is more like sharing a reference.&lt;/p&gt;
&lt;p&gt;So you have a parent interface with a rule input, you assign this to a child interface with a similar rule input. Now &amp;nbsp;changing the value in the child does not work.&lt;/p&gt;
&lt;p&gt;Please add a textfield inside the child to see the actual value of the variables inside.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting process from UI - local variables vs rule inputs</title><link>https://community.appian.com/thread/82286?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 11:52:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b909ced3-5a21-4b78-83c3-caa9e5f442fe</guid><dc:creator>ivanm0004</dc:creator><description>&lt;p&gt;I can&amp;#39;t see locals that exist only in child interface from the parent interface designer view. Or I just don&amp;#39;t know how?&lt;/p&gt;
&lt;p&gt;Rule inputs that should be populated inside the child interface and returned to the parent interface remain empty in the parent interface designer view after button click.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting process from UI - local variables vs rule inputs</title><link>https://community.appian.com/thread/82285?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 11:28:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:037fa438-9527-4297-970a-bb2ba42fa5b2</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK. There is so many things going on ... When I have a bug I try to simplify things and narrow down.&lt;/p&gt;
&lt;p&gt;So, when you open the parent interface in designer and click the button, do you see the rule inputs and locals being updated?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting process from UI - local variables vs rule inputs</title><link>https://community.appian.com/thread/82284?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 11:23:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f14c4174-4932-4e08-abef-69d241235579</guid><dc:creator>ivanm0004</dc:creator><description>&lt;p&gt;Yes, everything works fine if I set some test data in child interface designer view and click button. I believe that means everything is correctly coded and configured.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, if I put this interface inside parent interface it stops working.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also tried to call this child interface from parent interface without referencing these rule inputs since they are first calculated and used only in child interface but that didn&amp;#39;t work to:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!boxLayout(
                    style: &amp;quot;ACCENT&amp;quot;,
                    label: &amp;quot;Child interface&amp;quot;,
                    isCollapsible: true,
                    isInitiallyCollapsed: true,
                    contents: rule!childInterface(
                      input_one_cdt: ri!input_one_cdt,
                      input_two_cdt: ri!input_two_cdt,
                      input_three_cdt: ri!input_three_cdt
                    )
                  )&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Inputs are some data that need to be forwarded from parent interface and used in child interface and those other 4 rule inputs (removed from the last code snippet) were empty placeholders&amp;nbsp;for data that will be calculated inside the child interface just before starting the process.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, process should be independent from the parent interface and rule inputs used for the process should be returned to parent interface so they can be used further for logging purposes or anything else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting process from UI - local variables vs rule inputs</title><link>https://community.appian.com/thread/82283?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 11:10:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cabdaab3-0c85-4a6f-a9ff-53f0ca536b07</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Are the local displayed in UI designer with proper values? Are the PVs in process configured as parameters?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting process from UI - local variables vs rule inputs</title><link>https://community.appian.com/thread/82282?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 10:47:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:27f246ec-ddc1-4c08-9d5c-b9fc5db31b41</guid><dc:creator>ivanm0004</dc:creator><description>&lt;p&gt;This is the way I tried to make it work and it failed:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1) Child interface code (copied from first post):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
...
    a!buttonLayout(
        primaryButtons: {
            a!buttonWidget(
                label: &amp;quot;Start process&amp;quot;,
                saveInto: {
                  a!save(
                    ri!firstProc_cdt,
                    rule!DLS_mapFirstProcParam(
                      input: local!valuesOne
                    )
                  ),
                  a!save(
                    ri!secondProc_cdt,
                    rule!DLS_mapSecondProcParam(
                      input: local!valuesTwo
                    )
                  ),
                  a!save(
                    ri!thirdProc_cdt,
                    rule!DLS_mapThirdProcParam(
                      input: local!valuesThree
                    )
                  ),
                  a!save(
                    ri!fourthProc_cdt,
                    rule!DLS_mapFourthProcParam(
                      input: local!valuesFour
                    )
                  ),
                  a!startProcess(
                    processModel: cons!PROCESS,
                    processParameters: {
                      paramOne: ri!firstProc_cdt,
                      paramTwo: ri!secondProc_cdt,
                      paramThree: ri!thirdProc_cdt,
                      paramFour: ri!fourthProc_cdt
                    }
                  )
                }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2) Parent interface code part with child interface reference:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!boxLayout(
                    style: &amp;quot;ACCENT&amp;quot;,
                    label: &amp;quot;Child interface&amp;quot;,
                    isCollapsible: true,
                    isInitiallyCollapsed: true,
                    contents: rule!childInterface(
                      input_one_cdt: ri!input_one_cdt,
                      input_two_cdt: ri!input_two_cdt,
                      input_three_cdt: ri!input_three_cdt,
                      firstProc_cdt: ri!firstProc_cdt,
                      secondProc_cdt: ri!secondProc_cdt,
                      thirdProc_cdt: ri!thridProc_cdt,
                      fourthProc_cdt: ri!fourthProc_cdt
                    )
                  )&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Nevertheless, these rule inputs have nothing to do with parent interface. They are first calculated and used inside the child interface. There they are sent to process as empty.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think it could be useful for them to be saved and returned to parent interface for future use. However, even without it they are not properly forwarded into process model started from within the child interface. That&amp;#39;s the thing that puzzles me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting process from UI - local variables vs rule inputs</title><link>https://community.appian.com/thread/82281?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 10:17:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3476ab49-dab0-4135-9d46-e728f2bda909</guid><dc:creator>Deepanshu Agrawal</dc:creator><description>&lt;p&gt;I think the issue can&amp;nbsp;probably be at parent interface where you are mapping rule inputs to sub-interface, please make sure those mappings are present.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting process from UI - local variables vs rule inputs</title><link>https://community.appian.com/thread/82086?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 20:48:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bc64dbb2-dafc-4a04-be27-c1bebce38a17</guid><dc:creator>ivanm0004</dc:creator><description>&lt;p&gt;I think we have&amp;nbsp;a little misunderstanding here &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Parent interface doesn&amp;#39;t send any values into those rule inputs (it does to other 2 rule inputs but it seems that everything works fine with that part and they are not important for this case). They are just &amp;quot;defined&amp;quot; in parent interface.&lt;/p&gt;
&lt;p&gt;I just had idea to return calculated&amp;nbsp;&lt;span&gt;values&amp;nbsp;&lt;/span&gt; from child interface back to the parent interface through these rule inputs since they&amp;nbsp;may&amp;nbsp;be necessary for further usage (my child interface should be reusable in many interfaces).&lt;/p&gt;
&lt;p&gt;These rule inputs are calculated and used only in child interface.&lt;/p&gt;
&lt;p&gt;So, basically they are sent into child interface as nulls (but not explicitly), but for some reason not refreshed after calculations and button clicking in that same child interface.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting process from UI - local variables vs rule inputs</title><link>https://community.appian.com/thread/82082?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 17:54:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e3822fc9-1ea5-4fe6-bd86-bbdbd40b19ad</guid><dc:creator>vamsi krishna</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I could recreate your issue, only when, in the parent interface when we send the rule input to explicitly defined as NULL keyword.&lt;/p&gt;
&lt;p&gt;child interface - retails&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!first,
  a!buttonLayout(
    primaryButtons: a!buttonWidget(
      label: &amp;quot;start process&amp;quot;,
      saveInto: {
        a!save(ri!data, &amp;quot;vamsi&amp;quot;),
        a!startProcess(
          processModel: cons!PM_CONSTANT,
          processParameters: { input: ri!data }
        )
      }
    )
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;parent interface&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data,
  {
    rule!retails(data: null),
    rule!retails(data: local!data)
  }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Line 4 in parent interface, sent null values to input param in PM&lt;/p&gt;
&lt;p&gt;Line 5 sent input param value from children interface as &amp;quot;vamsi&amp;quot;&lt;/p&gt;
&lt;p&gt;Even though they are typically the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>