how to add a document which is part of one process task to another programmatically?

cancel
Showing results for 
Search instead for 
Did you mean: 
paiyyavj13
Established Member II

how to add a document which is part of one process task to another programmatically?

Jump to solution

Hi,

I have a requirement wherein I have to add/link a document which is part of a process task into another similar already running process task.

I did some research and I believe I could use the the REST api's :

either link the document to the task:

http://localhost:8080/activiti-app/api/enterprise/tasks/{taskId}/content

OR

link the document to the processL
http://localhost:8080/activiti-app/api/enterprise/process-instances/{processInstanceId}/content

In either case I was not able to find how I could mention the form field id into which the document has to be Added.
The document is not a relatedContent.

Any pointers could help... Thank you...!

Regards.
1 Solution

Accepted Solutions
paiyyavj13
Established Member II

Re: how to add a document which is part of one process task to another programmatically?

Jump to solution

I used RelatedContentService instead to get the documents from one process and set it on another. Much more convenient.

View solution in original post

1 Reply
paiyyavj13
Established Member II

Re: how to add a document which is part of one process task to another programmatically?

Jump to solution

I used RelatedContentService instead to get the documents from one process and set it on another. Much more convenient.