cancel
Showing results for 
Search instead for 
Did you mean: 

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

paiyyavj13
Star Contributor
Star Contributor

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 ACCEPTED ANSWER

paiyyavj13
Star Contributor
Star Contributor

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

View answer in original post

1 REPLY 1

paiyyavj13
Star Contributor
Star Contributor

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