Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Workbench process setup for combining comments using DDX

Shaji_KGL
Level 2
Level 2

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

1 Accepted Solution
Kosta_Prokopiu1
Correct answer by
Employee
Employee

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"

View solution in original post

0 Replies
Kosta_Prokopiu1
Correct answer by
Employee
Employee

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"

View solution in original post

Shaji_KGL
Level 2
Level 2

Thank you for the response, I will try this method and let you know if I get the result.

 

As said mapping I have used as "list". 

Watch folder end point configured as per the below screenshot. (we are placing the PDF as folder placing the 2 pdfs and moving the folder to input folder.

In the pattern i have used "*".

 

livecycle_endpoint.PNG

Workbench screenshot below:

workbench_1.PNG

Here is the link for the .process file.

https://drive.google.com/file/d/1z23-9UW7eQn9G9OxdP1R4KT3ybr2IHEZ/view?usp=sharing

 

I am not an expert in workbench process. Please advise.

 

Shaji