Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Cant access attachmentVar when form is submitted

Avatar

Level 1
Hi,

I'm tring to access the attachmentVar in my workflow, but no sucess.

I tried to declare the variable as a list of documents but without success.



Any suggestions??
5 Replies

Avatar

Level 2
When your user submits the form, is the user submitting the attachments from starting the process or is the user participating in the process (an Assign Task operation in the process)?

Avatar

Level 1
The user is submitting the attachments from starting process.

Avatar

Level 9

You can use one of our components:

http://avoka.dnsalias.com/confluence/display/Public/Task+Attachment+Utilities+DSC

Look for the operation: retrieveAttachmentFromInitialTask

You can download a trial version here: http://www.avoka.com/avoka/escomponents.shtml

Howard

Avatar

Employee Advisor

Hi Paula

You can check out m blog entry

http://eslifeline.wordpress.com/2008/04/21/getting-attachments-out-of-a-task/

This has an component to extract attachment out of a given task id. For your use case you will need to use TaskCreated event to start an process

In the event data there is taskID ,once you get the taskid you can extarct all attachments associated with the task

let me know if you have any more questions

thanks

girish

Avatar

Level 2

Hi,

If you are using workspace to initiate a process with some attachments. Then you have to do the following in the User Action:

(a) select the "show attachment window to this task"

(b) select "copy notes and attachments from previous task"

In case of some other custom applications you have to post the full PDF document to the process then extract the data from the PDF document and using assembler service to extract the attachments from the PDF document.

Regards,

Waqas