if you want to assign all the documents in the list to a map of documents I do not think you can do it in one xpath expression.You need to create a key for every document in the list and then add each document of the list.You would definately need to do some looping If your list has only one document then you can use the xpath expression
/process_data/convertedListofPdfs[1] in the expression side if the equation.

If you really want to add the list object to the map (and not retrieve the individual document out of the list), then mapofConvertedPdfs needs to be subtype List and not document since you're adding a list to the map and not documents.

If you want to end up with a map of all the documents that are contained by the list then WorkflowUser is right, you'll have to do that manually.

how can we do it manually, if the list length is unknown. My task is to extract the attachments attached to the pdf form into a list. I'll not be knowing howmany attachemnts are there on the pdf form. after extraction i need to send all the documents as email attachments.

I did not understand your latest mail... i tried the method mentioned on the old mail

Now I tried for one document.

I was very happy to see the attachement on the mail.

But the problem is when i tried to attach an image file, the image file came as an attachment, but when i tried to open, file opened but no image!! Samething happened with a text file, when i tried to open the text file on the attachment there was some crappy data istead of the actual data.

Lets say I have three users A, B and C in the process, When the process starts some form will be displayed and A fills it and submits. It goes to B, he will attach some documents (could be jpeg, txt, pdf or anything) and submits the form. Now the flow has to extract all the documents attached to the pdf and it has to mail to C. While emailing, it has to attach all the documents along with the pdf form.

Right now I have implemented it for one attachment.

Let me explaing the steps i followed:

1. Created 2 process variables

OtherAttachmentsList - Type list - subtype Document

OtherAttachmentsMap - Type map - subtype Document

2. On the Assign task, under Attachments and Notes, I have set the output attachment variable to OtherAttachmentList

3. Before renderPDF, on the Setvalue control i have assigned OtherAttachmentsMap = OtherAttachmentsList.

I have done as you have instructed. (using docAttach, getting filename ...)

4. On the SendWithMapofDocuments control, under attachments, i have set the attachment variable as OtherAttachmentsMap

Now my problem is, I'm getting attachment on the email but the content is not proper. Can there be any problem with the mime type or the encoding standards? Or am i missing any configurations?

Since it is company related project i cant send u the .lca file. Please dont mind. And I have not understood about that DDX File. I'm a newbee.

I'm getting document in the email but not the exact data. If u send text file some crappy text file will come, and if u send some image file there will be no image on the email. But the filename everything would be same. what could be the problem?