<?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>Passing Input Variables as Reference to Multiple Nested Sub-Processes</title><link>https://community.appian.com/discussions/f/data/11866/passing-input-variables-as-reference-to-multiple-nested-sub-processes</link><description>Hi All, 
 I have a boolean variable in my initial process that I need to reference in a sub- sub- sub- process, is this possible? Can you pass a single variable through 3 process models to be used by the 4th based on the value from the 1st? 
 It&amp;#39;s difficult</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Passing Input Variables as Reference to Multiple Nested Sub-Processes</title><link>https://community.appian.com/thread/52634?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 08:49:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:348e145e-2c05-4504-a42a-33965b204eac</guid><dc:creator>vijayd</dc:creator><description>Pass of reference will be used when the variable passed from parent process to sub process changes in sub process, it would be reflected in the parent process.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passing Input Variables as Reference to Multiple Nested Sub-Processes</title><link>https://community.appian.com/thread/52623?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 05:58:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1e2916a6-48f8-4123-be2a-a0a656c9db4e</guid><dc:creator>smriti p0001</dc:creator><description>Yes, you can do this by creating variable as parameter and then you need to pass its value to next process model by creating pv in all child process and setting the value from previous one.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passing Input Variables as Reference to Multiple Nested Sub-Processes</title><link>https://community.appian.com/thread/52617?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 22:18:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bd33b31f-67be-4981-ba94-9e2e76657ddd</guid><dc:creator>Sarah K.</dc:creator><description>Hi Rob, no problem, and thanks for the additional suggestions. So this worked -- I added the boolean manually into the sub-processes Model Variables &amp;gt; published and then refreshed the next level up sup-process node and it appeared. Still have to do testing to make sure it&amp;#39;s working, but my final question is that I thought that the variable was passed into the sub-process as a Model Variable automatically when you click the &amp;quot;Pass as Reference&amp;quot; button -- if I&amp;#39;m not mistaken, this is what happened on the first sub-process. Why does the variable have to be manually added from the bottom up in this case?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passing Input Variables as Reference to Multiple Nested Sub-Processes</title><link>https://community.appian.com/thread/52616?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 22:02:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:14b4a1a5-8bfa-4f80-8be3-9da6b7e8fb29</guid><dc:creator>Robert Shankin</dc:creator><description>Hi Sarah - &lt;br /&gt;
&lt;br /&gt;
So, 2 things:&lt;br /&gt;
1st, I think I misunderstood your question, and that you were interested in using the setting &amp;quot;Pass as a reference&amp;quot; that synchronizes values in real time between processes.  Reading again, it sounds like your key concern is passing the variable down from parent process to child process, again and again.&lt;br /&gt;
Sorry about that.&lt;br /&gt;
&lt;br /&gt;
2nd, on to your real issue.&lt;br /&gt;
Each sub process node is examining the condition of the parameter process variables in the target process.&lt;br /&gt;
If you&amp;#39;re hoping to map to a Boolean PV in the sub process, create a PV of type Boolean, e.g. myBool, and make sure to set it as a parameter so it can accept input values on process start.  Then be sure to do a save and publish on that child (sub) process.&lt;br /&gt;
After the save and publish, you should see the variable for mapping in the sub process node of the parent process.&lt;br /&gt;
Since you have a number of sub processes, might want to start at the sub-most process, creating the PV, saving and publishing, and then mapping the variable in the parent process, and so on.&lt;br /&gt;
&lt;br /&gt;
Does that make sense?&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Rob&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passing Input Variables as Reference to Multiple Nested Sub-Processes</title><link>https://community.appian.com/thread/52615?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 21:47:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:47dbea0c-10e8-4a40-add6-64e0d4d702f7</guid><dc:creator>Sarah K.</dc:creator><description>Hi Robert -- you are correct that the value will only be one or the other, not both. If I don&amp;#39;t pass the variable down into the 4th process model, how would I use it to assign the Task based on this variable then? The node for assignment I want to configure is in the last process and needs to know whether or not the start of the parent process was scheduled or ad-hoc. I think in this case mapping would be the only way to get that value?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passing Input Variables as Reference to Multiple Nested Sub-Processes</title><link>https://community.appian.com/thread/52614?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 21:46:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:951a6077-abbf-444f-a4d4-03239e1fcfbd</guid><dc:creator>Sarah K.</dc:creator><description>&lt;p&gt;When I go to select the PV to pass into the next process model it does not appear -- it only appears in the original PM as an option but none of the other Sub-Process nodes in the later models. Even when I set it as a Parameter in the first model with all the same options. Am I missing something else?&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/16/Sub_2D00_Process-2-Config.jpg"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/Sub_2D00_Process-2-Config.jpg" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In this model above (first sub-process), the boolean variable is appearing in the Process Model Properties &amp;gt; Process Variables (presumably bc I passed it as reference from the parent process)--&amp;nbsp;but in the next sub-process node in this model, the variable does not appear (see above screenshot), even after refreshing. How come it&amp;#39;s not seeing the Process Variable or making it available in the Sub-Process Node set up?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passing Input Variables as Reference to Multiple Nested Sub-Processes</title><link>https://community.appian.com/thread/52555?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 13:23:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cc265fcf-3908-478a-b4af-015d4fafa5f9</guid><dc:creator>Robert Shankin</dc:creator><description>Hi,&lt;br /&gt;
Your use case describes needing to know in the sub process whether or not the parent process was scheduled or ad hoc.&lt;br /&gt;
Does this variable’s value change over the life of the process?  I expect a given instance is scheduled, or ad hoc, but not both.&lt;br /&gt;
Unless this variable’s value is going to change in the given instance after the sub process launches, by-reference mapping shouldn’t be necessary.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passing Input Variables as Reference to Multiple Nested Sub-Processes</title><link>https://community.appian.com/thread/52527?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 02:11:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9530ca87-d2a2-4d90-9d2c-5b386015dffe</guid><dc:creator>ashokv</dc:creator><description>Hi Sarah, you can pass a variable to the subprocess and its subprocess. But make sure, you create the same variable and select the first option in the parameter(i.e Allow the values for the variable..........) options. This will allow you to map the variable in the subprocess node inputs.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passing Input Variables as Reference to Multiple Nested Sub-Processes</title><link>https://community.appian.com/thread/52522?ContentTypeID=1</link><pubDate>Sun, 11 Feb 2018 19:16:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bfd7a498-5035-450f-a782-7943f65ee2a2</guid><dc:creator>Shyam Bommakanti</dc:creator><description>The only difference with Pass by reference is that the variable will be pointing to the same memory address.&lt;br /&gt;
&lt;br /&gt;
To access the pv address from level 1 process in level 4 process model, you have to pass it to each level in between by reference also.&lt;br /&gt;
&lt;br /&gt;
I did try this just now and I was able to select the pv. For debugging you issue, I recommend checking if the PV is a parameter and of same type - multiple vs single etc.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>