Expand my Community achievements bar.

SOLVED

AEM Forms - Using AssemblerService - how to configure insertionPoint in LiveCycle designer and use it via DDX

Avatar

Level 2

Env. AEM Form 6.5 SP-12 On Prem, Document Manager version [1].

 

Question - Using AssemblerService - how to configure insertionPoint in LiveCycle designer and use it via DDX

 

Scenario - We are trying to configure insertionPoint (DDX [2]) as explained here -

https://help.adobe.com/en_US/livecycle/11.0/dynamic_assembly_guidelines.pdf but it does not work.

 

Question is:

  • Does AssemblerService (as mentioned above in Env.) still supports insertionPoint or not?
  • Is there any alternate feature available or not OOTB in AEM Forms?

 

[1]

<!-- For AEM-Forms Document Manager -->
<dependency>
<groupId>com.adobe.aemfd</groupId>
<artifactId>aemfd-client-sdk</artifactId>
<version>6.0.772</version>
</dependency>

 

[2] <?xml version="1.0" encoding="UTF-8"?>
<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
<XDP result="wp_simple_result.xdp">
<XDP source="wp_simple_template_flowed.xdp">
<XDPContent insertionPoint="ddx_fragment" source="wp_simple_contact.xdp" fragment="subPatientContact"/>
<XDPContent insertionPoint="ddx_fragment" source="wp_simple_patient.xdp" fragment="subPatientPhysical"/>
<XDPContent insertionPoint="ddx_fragment" source="wp_simple_patient.xdp" fragment="subPatientHealth" />
</XDP>
</XDP>
</DDX>

 

[3] OperationException occurred: AEM-ASM-S00-002: Failed to execute the DDX - error messages provided

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

https://acrobat.adobe.com/link/track?uri=urn:aaid:scds:US:ee24962e-caea-4e8b-863b-2534e7f35386

https://acrobat.adobe.com/link/track?uri=urn:aaid:scds:US:df70a402-0fbc-4be7-8586-db0bf3a8879a

 

xdp-stitching-postman.png

add the following entry 

/content/AemFormsSamples/assemblerservice

in using http://localhost:4502/system/console/configMgr

workflowuser_0-1671494064721.png

one of the links has the sample ddx and xdp. Please use those to test. The package has jsp code that you need to deploy using package manager

Then using postman make a POST request to the endpoint as shown in the screen shot using the sample xdp and ddx

 

View solution in original post

14 Replies

Avatar

Employee Advisor

It is supported in AEM forms 

 

Avatar

Employee Advisor

Did you name the insertion point correctly in the xdp?

Avatar

Level 2

I am following the steps to create insertion point from this Adobe doc : Guidelines for Dynamically Assembling Customized Forms and Documents (adobe.com)

 

i am attaching screen short for your reference. 

bhanu2_0-1671166398972.png

 

Questions :

  1. Do you have any working example of insertion point.
  2. Is there any reference/doc that we can refer. 

Avatar

Level 2

@workflowuser Thanks for your response.

 

I am not using workbench.

live cycle designer 11 to design XDP and AEM 6.5.

please suggest me to insert insertion point in Designer and  use insertion Point through AEM 6.5  AssemblerService.

 

Thanks.

 

Avatar

Level 2

@workflowuser thanks for your response. 

 

I am requesting can you please provide clear solution or any source Along with designer DDX intervention to work with Document Services of AEM 6.5.

 So that I will understand the limitation and improvements for the solution which mentioned above.

 

Thanks.

Avatar

Level 4

Do you have any AEM Forms Designer solution here? Its on prem AEM Forms 6.5 setup. Details were given in the first post.

Avatar

Level 4

Sure, thanks for taking this up.

 

However we followed this doc - https://help.adobe.com/en_US/livecycle/11.0/dynamic_assembly_guidelines.pdf and this is the exception we are getting on AssemblerService.

 

PDFAssemlerServlet_InsertionPoint InsertionPoint Catch block e= com.adobe.internal.pdfm.xfa.XFAServiceException: PDFM_S28003: XFA Assembly unable to assemble required XFA Fragment "subPatientContact" from document "tuc018_contact.xdp". 

Avatar

Employee Advisor

I have it working. will send you the sample code soon

Avatar

Correct answer by
Employee Advisor

https://acrobat.adobe.com/link/track?uri=urn:aaid:scds:US:ee24962e-caea-4e8b-863b-2534e7f35386

https://acrobat.adobe.com/link/track?uri=urn:aaid:scds:US:df70a402-0fbc-4be7-8586-db0bf3a8879a

 

xdp-stitching-postman.png

add the following entry 

/content/AemFormsSamples/assemblerservice

in using http://localhost:4502/system/console/configMgr

workflowuser_0-1671494064721.png

one of the links has the sample ddx and xdp. Please use those to test. The package has jsp code that you need to deploy using package manager

Then using postman make a POST request to the endpoint as shown in the screen shot using the sample xdp and ddx

 

Avatar

Level 4

Sure, highly appreciate you taking time to provide a sample. We will test and verify what is different, thanks.

Avatar

Employee Advisor

When the Assembler service interprets the following DDX expression, it creates an XML form that contains
another XML form. The myFragment subform from the myFragmentSource document is inserted at the
myInsertionPoint in the myFormSource document.
Example: Dynamic assembly of form fragments
<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
Adobe Experience Manager Forms Creating and Modifying Acrobat and XML (XFA) Forms
Assembler Service and DDX Reference Resolve references 41
<XDP result="myFormResult">
<XDP source="myFormSource">
<XDPContent fragment="myFragment"
insertionPoint="myInsertionPoint" source="myFragmentSource"/>
</XDP>
</XDP>
</DDX>