<?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 append value from subprocess in a single variable of array type?</title><link>https://community.appian.com/discussions/f/process/12342/how-to-append-value-from-subprocess-in-a-single-variable-of-array-type</link><description>Hello All, 
 I have an array variable in my parent process model. Depending on the number of values it holds, I&amp;#39;m running a subprocess for each instance. Every time the sub process completes it execution it returns one value that I need to store in a</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to append value from subprocess in a single variable of array type?</title><link>https://community.appian.com/thread/54682?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 06:27:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d84e5f63-bb32-4da3-9ed4-bd2cb16e724e</guid><dc:creator>Aditya</dc:creator><description>Hi viveku001,&lt;br /&gt;
&lt;br /&gt;
You can also use the Start Process smart service. Use Multi Node Instance(MNI) in Start Process Smart Service to start your sub process for each value in var1.&lt;br /&gt;
You have an option to store the process variables of your sub process in the data-&amp;gt;output tab of Start Process Smart Service.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to append value from subprocess in a single variable of array type?</title><link>https://community.appian.com/thread/54681?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 05:55:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:18b402c6-6ab5-43b6-9671-1dedf1d50cd0</guid><dc:creator>Sandeep Deshmukh</dc:creator><description> create 2 array PV with same type and check parameter option for sub process pv and map that pv in sub process node input section. (or use byreference function from expression while mapping)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to append value from subprocess in a single variable of array type?</title><link>https://community.appian.com/thread/54653?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 14:07:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5191fd40-a0ea-429a-9dd0-6d9dfc4999db</guid><dc:creator>viveku3486</dc:creator><description>Hey Sandeep,&lt;br /&gt;
&lt;br /&gt;
How can I map it to &amp;quot;Pass by reference&amp;quot; with Parent Process PV?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to append value from subprocess in a single variable of array type?</title><link>https://community.appian.com/thread/54648?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 13:11:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7515f77e-5878-4c11-8e7e-03615393af87</guid><dc:creator>Sandeep Deshmukh</dc:creator><description>Hi  ,&lt;br /&gt;
&lt;br /&gt;
If every time your instances is coming out from Sub process to Parent Process then &lt;br /&gt;
1)use one Script task after that sub process node and in Output tab, while saving into that array variable use &amp;quot;is Append to&amp;quot; Operator to store /append returned value.&lt;br /&gt;
2) Inside your Subprocess only (before ending process) try to append that returned value into array PV and map it &amp;quot;Pass by reference&amp;quot; with Parent Process PV.&lt;br /&gt;
&lt;br /&gt;
Hope this will work. &lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Sandeep&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>