<?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>Appian Nested CDTs and Java Plugin Objects Not Mapping Properly</title><link>https://community.appian.com/discussions/f/plug-ins/39977/appian-nested-cdts-and-java-plugin-objects-not-mapping-properly</link><description>Hi, I am having issues with the sync between Appian data types and corresponding Java plugin objects. 
 In Appian, I have two CDTs called ‘AttachmentList’ and ‘AttachmentDescriptor’. They were generated from ‘AttachmentList.xsd’ and ‘AttachmentDescriptor</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Appian Nested CDTs and Java Plugin Objects Not Mapping Properly</title><link>https://community.appian.com/thread/152651?ContentTypeID=1</link><pubDate>Tue, 02 Dec 2025 19:39:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:15ae8319-b53c-4d82-ac57-feb1a493dcde</guid><dc:creator>DanielH</dc:creator><description>&lt;p&gt;As shown in the screenshots, process model input is type AttachmentList. Top-level complex type AttachmentList directly contains the Attachments element with no extra wrapper element level. The Java field is @XmlElement(name=Attachments&amp;quot;) List&amp;lt;AttachmentDescriptor&amp;gt; attachments.&lt;/p&gt;
&lt;p&gt;I also had already tried deleting and recreating both CDTs from the XSDs and redeploying a freshly built JAR to eliminate any cached definitions.&lt;/p&gt;
&lt;p&gt;When I tried printing the attachmentList object in the Java code, it returned &amp;quot;placeholder.AttachmentList@3ce56992&amp;quot; and attachmentList.attachments was null. Is that to be expected? Wondering if it could be due to a mismatch in TypedValue between Appian and Java.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Appian Nested CDTs and Java Plugin Objects Not Mapping Properly</title><link>https://community.appian.com/thread/152650?ContentTypeID=1</link><pubDate>Tue, 02 Dec 2025 19:35:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5dbb2baf-6617-453f-acac-a1e3f76ad29e</guid><dc:creator>DanielH</dc:creator><description>&lt;p&gt;When I tried printing attachmentList, it returned &amp;quot;placeholder.AttachmentList@3ce56992&amp;quot; and attachmentList.attachments was null. Is that TypedValue to be expected?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Appian Nested CDTs and Java Plugin Objects Not Mapping Properly</title><link>https://community.appian.com/thread/152633?ContentTypeID=1</link><pubDate>Tue, 02 Dec 2025 06:46:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7eb7d369-122a-4e9f-892b-9b02d12e1e05</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;Confirm the process model input is type AttachmentList, not Any Type.&lt;/p&gt;
&lt;p&gt;Ensure the top-level complexType AttachmentList directly contains the Attachments element (no extra wrapper element level), and that the Java field is @XmlElement(name=&amp;quot;Attachments&amp;quot;) List&amp;lt;AttachmentDescriptor&amp;gt; attachments.​&lt;/p&gt;
&lt;p&gt;Then delete and recreate both CDTs from the XSDs and redeploy a freshly built JAR to eliminate any cached definitions.​&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Appian Nested CDTs and Java Plugin Objects Not Mapping Properly</title><link>https://community.appian.com/thread/152632?ContentTypeID=1</link><pubDate>Tue, 02 Dec 2025 03:39:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8763c472-68db-44a5-9db7-4766873e1d32</guid><dc:creator>maisieb646600</dc:creator><description>&lt;p&gt;I&amp;rsquo;ve run into similar mapping quirks when working with Appian CDTs and Java plugins. Sometimes the issue comes from a subtle mismatch in namespace or type name between the XSD, CDT, and plugin annotations. You might also want to log the raw TypedValue inside the plugin to see what&amp;rsquo;s actually arriving. When I&amp;rsquo;m stuck debugging odd behaviors, I usually take a break with &lt;a href="https://footballbrosfree.com/"&gt;Football Bros&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to clear my head, then come back with fresh eyes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Appian Nested CDTs and Java Plugin Objects Not Mapping Properly</title><link>https://community.appian.com/thread/152631?ContentTypeID=1</link><pubDate>Mon, 01 Dec 2025 19:51:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b01512e0-0234-4785-844e-5eabd72231e3</guid><dc:creator>DanielH</dc:creator><description>&lt;p&gt;Thanks for your response, but I believe the Java list field already matches the CDT/XSD element name exactly.&lt;/p&gt;
&lt;p&gt;From the screenshots I included:&lt;/p&gt;
&lt;p&gt;-AttachentList.java already uses @XmlElement(name = &amp;quot;Attachments&amp;quot;) on protected List&amp;lt;AttachmentDescriptor&amp;gt; attachments;.&lt;/p&gt;
&lt;p&gt;-AttachmentList.xsd already has &amp;lt;xsd:element maxOccurs=&amp;quot;unbounded&amp;quot; minOccurs=&amp;quot;0&amp;quot; name=&amp;quot;Attachments&amp;quot; type=&amp;quot;tns:AttachmentDescriptor&amp;quot;&amp;gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I had also tried making AttachmentList.java use propOrder = { &amp;quot;Attachments&amp;quot; }, in case propOrder was case sensitive but that did not work either. Do you have other ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Appian Nested CDTs and Java Plugin Objects Not Mapping Properly</title><link>https://community.appian.com/thread/152621?ContentTypeID=1</link><pubDate>Mon, 01 Dec 2025 09:24:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e774bc9-61ee-4829-89ee-848b042b5fd7</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;The Java list field must match the CDT/XSD element name exactly.&lt;br /&gt;Make AttachmentList.java use @XmlElement(name=&amp;quot;Attachments&amp;quot;) on protected List&amp;lt;AttachmentDescriptor&amp;gt; attachments;.&lt;br /&gt;Ensure AttachmentList.xsd has &amp;lt;xsd:element name=&amp;quot;Attachments&amp;quot; maxOccurs=&amp;quot;unbounded&amp;quot; type=&amp;quot;tns:AttachmentDescriptor&amp;quot;/&amp;gt;.&lt;br /&gt;Regenerate CDTs, redeploy the plug‑in, and rebind the process model input so getAttachments() returns the items.&lt;br /&gt;&lt;br /&gt;Let me know if this works for you..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>