Expand my Community achievements bar.

TaskManager Endpoint - Attachments

Avatar

Former Community Member

Hi,

what is the easiest way to get the attachments from a task which was initiated via workspace an afterwards processed by livecycle eg. attached files are written to the file system.

My solution now start process - and assign it to a user afterwards. but that's not the solution I prefer.

regards

Johannes

5 Replies

Avatar

Former Community Member

I have done this before by using a scripting operation, but I think I remember someone creating a Custom component to accomplish this. Here is a link to his blog:

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

By the way there is lots of good info on that blog.

Paul

Avatar

Former Community Member

thx,

works out, but I've now trouble to get the TaskID.

how can I get the TaskID without using the FormFields?

regards

Johannes

Avatar

Former Community Member

The TaskID is exposed as a system variable in the XPath editor (I think it is id).

Paul

Avatar

Level 10

Actually, it's the process instance id that gets exposed via xPath and not the task id. The task id is a bit tricky to get since you're already compelted with that task.

I've built the sililar fucntionality where it gets the process instance id instead of the task id as an input parameter.

I'll find the code back and post it here.

Jasmin

Avatar

Former Community Member

unfortunately the id is the process(instanceID).

I used the TaskCompletedEvent to get the TaskID.

regards