<?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>Dynamice Sub procs with multi values CDT&amp;#39;s</title><link>https://community.appian.com/discussions/f/best-practices/10763/dynamice-sub-procs-with-multi-values-cdt-s</link><description>hi all, 
 I&amp;#39;m currently playing with sub processes and the ability to dynamically start a given number of them (MNI), but I&amp;#39;m having a few problems. I&amp;#39;m not sure if&amp;#39;s it a gap in my Appian knowledge or a mis understanding of how the product works. 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Dynamice Sub procs with multi values CDT's</title><link>https://community.appian.com/thread/47010?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 10:41:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:53365b82-d5cb-414b-a4e1-ee67ae33a8d9</guid><dc:creator>Rama Thummala</dc:creator><description>&lt;p&gt;pauls985 , here comes the difficulty..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If the you are capturing only the validation message in sub process, have a process variable of type list in both parent and sub process&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Pass the pv as reference to the sub process (or we can have a separate output)&lt;/li&gt;
&lt;li&gt;In sub process , add your validation message by appending to it.(here we can either append to the list or add at specific index i.e tp!instanceindex)&amp;nbsp;&lt;/li&gt;
&lt;li&gt;In main process we can then process the pv now.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If the variable is cdt, it is not recommended to pass as reference.(we do as pass as reference - not a best practice)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In this case , we have move the flow in main process when each instance completes&lt;/li&gt;
&lt;li&gt;Have pv as cdt in input mapping and capture the sub process out when each instance completes.&lt;/li&gt;
&lt;li&gt;Have another cdt of (same type as above)list, and in script task append the sub process out put to this list&lt;/li&gt;
&lt;li&gt;After script task add wait node , to wait for all instances completes(have a logic to find out all instances completed)&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamice Sub procs with multi values CDT's</title><link>https://community.appian.com/thread/47006?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 10:09:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7473155d-68bb-49eb-8d52-b037eb8c4788</guid><dc:creator>pauls985</dc:creator><description>ok so I now have this working and my master proc will start X number of sub procs :)&lt;br /&gt;
Each sub proc should perform validation on the data I&amp;#39;ve passed to it, and Id like it to map to another array within the master proc. So once all the sub procs complete I am left with an array in the master of all the instances where validation failed. &lt;br /&gt;
However the return mapping doesn&amp;#39;t allow it ? I can map back to a multi entry field - but at run time the last sub instance to run is overwriting the prev instances. So I&amp;#39;m not getting an array ..&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamice Sub procs with multi values CDT's</title><link>https://community.appian.com/thread/46998?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 08:49:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d9a8bd10-01df-4393-887f-bf13ac2fcfb4</guid><dc:creator>Rama Thummala</dc:creator><description>I haven&amp;#39;t seen anywhere...We have used the same approach in our design...&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamice Sub procs with multi values CDT's</title><link>https://community.appian.com/thread/46997?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 08:44:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:977e33be-9c56-4b30-89ba-4f62e3cf5527</guid><dc:creator>pauls985</dc:creator><description>Brill that was the problem. Out of interest is this documented anywhere ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamice Sub procs with multi values CDT's</title><link>https://community.appian.com/thread/46996?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 08:33:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48bbccae-6e08-4ed9-a423-7a958822d67b</guid><dc:creator>Rama Thummala</dc:creator><description>&lt;a href="/members/pauls985"&gt;pauls985&lt;/a&gt; , in subprocess node inputs, Please map as ..&lt;br /&gt;
&lt;br /&gt;
Subprocess pv = Parent process pv[tp!instanceindex]...you have to hard code tp!instanceindex since it will not be available in expression editor...&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>