The notes and attachments are not in the data that is being submitted. They are in a separate layer in the PDF. You will need to submitthe entire PDF then use LiveCycle Assembler to extract the comments and attachments from the PDF.
Are we talking about the same type of attachments and notes?
I am talking about the attachments and notes that you can add to a process (shown in Workbench under the user step - Attacments and Notes pane).
I have managed to process a form and pull out the attachments (in a list variable), this list variable I have set as the attachment list for the first user step in the process and this gives an extra tab in Workspace which shows me the attachments that were in the form just attached to the process user step and not the PDF.
I can also add more attachments if I want or even a note for the process if I want to.
I have found a way to access the attachments in livedocs:
Creating Processes > Designing human-centric processes > Document attributes for attachments and notes (I can not make a link, sorry)
but I have no documentation for how to access the notes (which has a title and a body).
The scenario I am trying to solve is actually quite simple, I want the user to be able to add his or her own note to a step (without adding a comment field on the form) and send out an email with that exact note as a part of the body.
Like: "Form is not properly filled" or "Contact me on phone number xxx xxxxxxxx for clearing out form number YYYY".
The point is that I cannot make a change to the form (it is legally bound to a specific design).
If you run a record/playback session and interogate the list variable you will see all of the attributes there. I believe but I am not sure that the description attribute will hold the text of the note and the wsfilename will hold the name of the note.