Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

convert document variable into DocumentForm


Former Community Member
I'm working with a LC ES process in wich I use send and receive services.

I send by email this attachment xpath: "/process_data/pdfForm/object/@document"

Users are involved in process by submitting pdf form from their email after signing them.

documents are signed and returned by email to the LC process.

I retrieve the attachments with receive service and I save them into document variable using SetValue service assigning this variable

"/process_data/pdfFirma1/object/@document" the value of

this one(document type):


wich is the first attachment in the email.

I have the need to assign the document variable into documentpart of the Document Form.

I tried to assign to the document part of the documentform variable my input document. There aren't errors in the log, but when I try to open the document form in the workspace I can't.

Is this the correct way?

can Anyone help me?

thanks a lot
1 Reply


Level 10
Like you said you need to put the "document" variable in a "Document Form" variable and then assign that variable ("Document Form") to the Input and Output data mapping of the User step.

The xPath should be similar to this:

/process_data/myDocForm/object/@document = /process_data/@myDocument