<?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>What is the difference between pass by value and pass by reference in case of parent-child process model?</title><link>https://community.appian.com/discussions/f/process/17536/what-is-the-difference-between-pass-by-value-and-pass-by-reference-in-case-of-parent-child-process-model</link><description>What is the difference between pass by value and pass by reference in case of parent-child process model?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: What is the difference between pass by value and pass by reference in case of parent-child process model?</title><link>https://community.appian.com/thread/152507?ContentTypeID=1</link><pubDate>Thu, 20 Nov 2025 14:58:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:be773d26-27fb-4879-8b63-7d996ac03694</guid><dc:creator>samarm7781</dc:creator><description>&lt;p&gt;Updated one&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/25.3/Sub-Process_Activity.html#passing-a-process-variable-as-a-reference"&gt;Subprocess - Appian 25.3&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the difference between pass by value and pass by reference in case of parent-child process model?</title><link>https://community.appian.com/thread/69099?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 20:10:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2a51d828-a626-411d-a006-19dc3c0a68c7</guid><dc:creator>Robert Shankin</dc:creator><description>&lt;p&gt;I like jose&amp;#39;s reponse - but I&amp;#39;d like to add more color, if that&amp;#39;s ok:&lt;/p&gt;
&lt;p&gt;Think of byref as storing a pointer to a value, rather than a static value.&amp;nbsp; When the value is read in either place, the system uses the pointer to get the singular value that&amp;#39;s used in 2 places.&amp;nbsp; If the value is changed in either place, the system follows the pointer to change that singular value for use in 2 places.&lt;/p&gt;
&lt;p&gt;This is valuable when you have a use case in which a particular value needs to be in sync across 2 processes.&amp;nbsp; &lt;br /&gt;Truthfully, the way we design lately, byref variables aren&amp;#39;t used that much.&amp;nbsp; But, there are valid use cases.&amp;nbsp; &amp;nbsp;A good rule of thumb is to not check that box unless you&amp;nbsp;are certain the functionality is required.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the difference between pass by value and pass by reference in case of parent-child process model?</title><link>https://community.appian.com/thread/69086?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 13:57:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ff86f87e-4c3a-4805-a424-23163bbd3e14</guid><dc:creator>josep</dc:creator><description>&lt;p&gt;Hello Sudipdas, &lt;/p&gt;
&lt;p&gt;Please take a look at the documentation that @mudit shared it has more details on the actual behavior. Let me explain as a quick summary. &lt;/p&gt;
&lt;p&gt;If you pass by reference it means that the same object is passed between the parent and the child process. Technically what it means is that you can update the object in both process models. That could be a problem since 2 processes can update at the same time or information not fully consistent but it always depends on the scenario. This scenario is mostly not needed so dont use it unless necessary. &lt;/p&gt;
&lt;p&gt;If you pass by value the object is “copied/cloned” so the same values will be there but it can end up been different values in both processes but the parent can be updated by mapping back the value of the variable at the end of the child process &lt;/p&gt;
&lt;p&gt;Hope this helps &lt;/p&gt;
&lt;p&gt;Jose &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the difference between pass by value and pass by reference in case of parent-child process model?</title><link>https://community.appian.com/thread/69082?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 12:56:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e6eadfa6-b774-4eb1-9ef4-fdd5da610332</guid><dc:creator>mudit</dc:creator><description>&lt;p&gt;This is what you are looking for.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/19.3/Sub-Process_Activity.html#passing-a-process-variable-as-a-reference"&gt;https://docs.appian.com/suite/help/19.3/Sub-Process_Activity.html#passing-a-process-variable-as-a-reference&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>