I have seen a number of requests on how to get the attachments out of a task before the task is assigned to a user and how to add attachments to a task. Well your wait is over, I have the pleasure of introducing TaskAttachments custom component, which does exactly what you have asked for- Add attachments to a task, and gets task attachments .
I have written a simple process using the custom component. I created a process which triggers every time an attachment is added to a task(in workspace in the attachment tab). In this process, I get the taskID of the task,and pass it to the getTaskAttachment service of my component. This gets the list of attachments for the particular taskID.
Click the link below to get access to the components, which are in a PDF file
manipulating-task-attachments
18 responses so far ↓
James // May 8, 2008 at 10:56 pm |
Thanks for doing this,I have been wanting this for a long time!
Gary Gilchrist // August 2, 2008 at 9:35 pm |
Great post. Thanks Girish!
Jeff // September 16, 2008 at 5:31 pm |
How do I extract the .jar file from the PDF – the save button is grayed out?
Girish Bedekar // September 16, 2008 at 5:41 pm |
Hi
Thanks for pointing that out, it is fixed now.let me know if you have any more problems
thanks
girish
Jeff // September 16, 2008 at 5:56 pm |
Thanks Girish,
Can I ask a very basic question? I’ve never worked with custom components before so am not totally sure how to begin. I’ve imported the .jar file into workbench but am not sure what to do next. i.e. should I expect to see a new entry in the “Services” pannel which will allow me to grag/drop an icon to my workflow?
Girish Bedekar // September 16, 2008 at 6:15 pm |
Follow these steps to import the jar file
Login to workbench
Go to Component View
Select the Root Node(Component)
Right Click
Select Install Component
Browse to the jar file
once the component is installed, select the component in the components tree(TaskAttachments in this case)
Right click to start the component
once the component is started, you can then go to the services view and start using the operations of the component.The new component will be listed under the default node
Rich // September 17, 2008 at 5:38 pm |
Hi, Girish.
I’m still unable to extract the jar files from the PDF. The save button is enabled, but I get the message, “You have selected a file that cannot be exported from Acrobat”
Girish Bedekar // September 17, 2008 at 6:00 pm |
Hi
that is strange,which version of acrobat are you using?Also I will send you jar files separately
thanks
girish
Jorge Perez // September 25, 2008 at 9:52 pm |
Hi Girish
Great post.
I am struggling with attachments within a process. The process stalls when I use attachments.
I think this might help.
However, as Rich mentioned, I am not able to extract the jar files.
Would you mind sending me those jar files?
Any further information/help on how to use your files?
Nice Regards,
Girish Bedekar // September 26, 2008 at 1:32 am |
Hi
I sent you the jar files.Could send me the process which is causing you problems
thanks
girish
Xancholy // November 2, 2008 at 3:55 am |
Hi Girish,
I’m using LiveCyle 8.2 and opening your pdf using Reader 8.
I am unable to save the jar files from the pdf. Can you please send them to me ?
Girish Bedekar // November 2, 2008 at 4:27 am |
Hi
I just sent you the jar file from that pdf
let me know if you need any thing else
thanks
girish
Joanna // March 17, 2009 at 3:55 pm |
Hi, Girish,
I am not able to get the jar files either… Could you send them to me please?
Thanks,
Joanna
Petr // May 12, 2009 at 1:45 pm |
Hi,
I have the same problem with extracting *.jar files. Could you send it by E-mail?
Thanks
Petr
Girish Bedekar // May 12, 2009 at 4:26 pm |
Hi Petr
You do not need to extract the jar files, just deploy it using workbench from the components view
Then create a process and use the component
What version of livecycle server are you on?
thanks
girish
Joel // June 23, 2009 at 2:26 pm |
Hello,
When I try to run this process the attachments are not being saved. I checked the log file on the server and the process reads the Task ID, file and number of files, but has the content type as null. Is this normal? As well, is there a way to have the Task ID be dynamic? Right now it is hard coded. Thanks.
Girish Bedekar // June 23, 2009 at 4:55 pm |
Hi Joel
You can use the task events to access the attachments associated with the task.For example you use the Task Completed event to start a process and in this process you can get the taskID dynamically to access task attachemnts
What is the type of your attachments? pdf?
let me know
thanks
girish
Joel // June 23, 2009 at 5:08 pm
Yep, the attachment type that I was using as a test was PDF. Does the process only work with certain kinds of attachments? Thanks.