AnsweredAssumed Answered

Attach document-link to process instances via new REST API

Question asked by b.schnarr on Nov 29, 2013
Latest reply on Dec 11, 2013 by b.schnarr
Hello at all,

we want to upload attachments to user tasks AND process instances via REST API in a way that the users can see those attachments in the activiti explorer.

Especially, we want to attach links to documents, not the document itself. I know that you can attatch document links to both, user tasks AND process instances via Java API with the method

Attachment createAttachment(String attachmentType,
                          String taskId,
                          String processInstanceId,
                          String attachmentName,
                          String attachmentDescription,
                          String url)

With the new REST API (Activiti 5.14), you can create a new attachment on a task, containing a link to an external resource.
The Question is: Can you attach those links to process instances, too? (like the Java API can?)

We just can communicate with Activiti through REST. Therefore, we need a way to "store" document links in a global process variable so that the user can access those links via the activiti explorer.

I hope that somebody can help.
Thanks and best regards