Workbench process setup for combining comments using DDX

Avatar

Avatar

Shaji_KGL

Avatar

Shaji_KGL

Shaji_KGL

23-10-2020

Hi all,

We are in process of setting up an watch folder to combine comments from 2 pdf.

Use the below DDX:

<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
<PDF result="final.pdf">
<PDF source="doc1.pdf"/>
<Comments>
<PDF source="doc2.pdf"/>
</Comments>
</PDF>
</DDX>

When i use the ddx result i am getting "final.pdf", see screenshot:

ddxresult.PNG

ddxdesign.PNG

But when I create watch folder using assembler server the "final.pdf" not getting as result, i am getting the source of 1st pdf only without combined comments.

I have used this variable in the "Get result".

workbench1.PNG

Please advise how to get the final.pdf, i tried many times but failed to get the result.

Shaji

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Kosta_Prokopiu1

Employee

Avatar

Kosta_Prokopiu1

Employee

Kosta_Prokopiu1
Employee

26-10-2020

Hi Shaji,

to get this resolved we need to first find out how you have implemented the orchestration.

When you use watched folder with more than one file, you have to collect all input files in a subfolder and place them there together (or have some trigger when the watcher should consider these files). A lot rides on how you set up the watched folder

https://docs.adobe.com/content/help/en/experience-manager-65/forms/administrator-help/manage-endpoin...

multiple files are returned as a "List" object - NOT  a Map object.

The AssemblerService-Invoke DDX step requires you to build a "Input Document Map" which matches your keys with document objects coming from the watched folder, like

Kosta_Prokopiu1_0-1603707662219.png

See here for using list: https://help.adobe.com/en_US/livecycle/11.0/WorkbenchHelp/WS92d06802c76abadb-1cc35bda128261a20dd-7d7...

If it depends on the sequence of files you may have to write some scripting or loop orchestration which investigates the input file list and builds the map manually.

The reason why you do not see a final.pdf in the AssemblerResult is that it did not get the input files to build it.

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwiytaj6hdLsAhUtCWMBHc3RA4IQ...

Check section "Assembling multiple documents"

Answers (0)