<?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>SubProcess outputs</title><link>https://community.appian.com/discussions/f/process/27149/subprocess-outputs</link><description>Hello, 
 can someone help with this issue. 
 I have a process model that retrieves data into a variable defined as a multiple of CDT. 
 The variable is then passed as a parameter to a sub-process, and because it is a CDT and may change it is also defined</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: SubProcess outputs</title><link>https://community.appian.com/thread/106584?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 17:00:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:698c0ce9-d763-42da-96d2-5712a8f29a8e</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;I just wanted to add that passing a CDT by reference to a sub process does go against best practices, as when the CDT is updated the parent process and sub can then contain different versions of the CDT which in my experience, can cause the CDT to wipe it&amp;#39;s data completely when a save is attempted, or other funky behavior.&lt;/p&gt;
&lt;p&gt;As you mention this is a short lived process, it may not be as big of concern here.&amp;nbsp; However I always recommend to persist the data to the DB prior to the sub process, then only pass the Unique ID to the sub, first step in the sub runs its own query to retrieve data from the DB to populate the CDT.&lt;/p&gt;
&lt;p&gt;Along with such, I build my sub processes to save data back to the DB before exiting, then the parent will refresh it&amp;#39;s CDT PV via query against the DB after the sub is completed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SubProcess outputs</title><link>https://community.appian.com/thread/106580?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 16:14:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2a36b285-2834-45f9-b870-77086bf6374c</guid><dc:creator>simonj3483</dc:creator><description>&lt;p&gt;Thankyou for the reply Alex, I think what has happened is the cdt was updated and one or more process models were not&amp;nbsp;automatically updated. Gone into each of the models and deleted / recreated all the variables of that type. Republished the forms and it is all working as expected.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SubProcess outputs</title><link>https://community.appian.com/thread/106579?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 16:03:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:201749f3-b17d-4946-a0e6-5152aef75f0f</guid><dc:creator>Alex Boerescu</dc:creator><description>&lt;p&gt;There has to be something being done to the variable in the subprocess - I&amp;#39;ve tested something similar myself and it works fine, it even works enhancing the data without using the pass as reference option.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/14/Screen-Shot-2023_2D00_01_2D00_11-at-4.01.52-PM.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/14/Screen-Shot-2023_2D00_01_2D00_11-at-4.02.32-PM.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SubProcess outputs</title><link>https://community.appian.com/thread/106569?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 14:54:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9c8108e7-cc12-4863-b7de-6856e09e2489</guid><dc:creator>simonj3483</dc:creator><description>&lt;p&gt;Hello Alex,&lt;/p&gt;
&lt;p&gt;passing by reference works which solves the immediate problem, and as it is a short lived process should not cause too many problems. I would still like to know why the output&amp;nbsp;is not working as expected.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SubProcess outputs</title><link>https://community.appian.com/thread/106565?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 14:30:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a83135b2-b458-43d2-9361-80ed9c23d7bd</guid><dc:creator>Alex Boerescu</dc:creator><description>&lt;p&gt;Have you tried passing it as a reference? Since it&amp;#39;s a sync process it wouldn&amp;#39;t get updated anywhere else in the process while the subprocess runs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SubProcess outputs</title><link>https://community.appian.com/thread/106564?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 14:28:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c5fd967-0867-413d-9de4-50478a9ea69f</guid><dc:creator>simonj3483</dc:creator><description>&lt;p&gt;Hello Konduru, all process&amp;nbsp;variables are multiple. I can see in the runtime process history that 2 records are retrieved and passed into the sub process, that the sub process does not delete any data&amp;nbsp; and and&amp;nbsp;that the calling process is updated with a single record.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SubProcess outputs</title><link>https://community.appian.com/thread/106562?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 14:21:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3d748eeb-5524-4ec8-a556-8d6f7fda65e6</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Hello &lt;a class="internal-link view-user-profile" href="/members/simonj546"&gt;simonj546&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Can you just check if you have mapped all the required output nodes inside your sub-process and also can you check if you have given the check box for multiple records in your all write records nodes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SubProcess outputs</title><link>https://community.appian.com/thread/106561?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 14:16:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d01a1574-788f-4fb8-bee6-9af2c4b1f5a8</guid><dc:creator>simonj3483</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/14/parametersScreenshot.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SubProcess outputs</title><link>https://community.appian.com/thread/106559?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 13:53:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9115faec-f973-4287-aa14-fe03fa0ba4c7</guid><dc:creator>Alex Boerescu</dc:creator><description>&lt;p&gt;Could you provide a screenshot of the mapping on the output variables from the subprocess task?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>