02-27-2017 06:49 AM
I want to attach a file with a task using activiti rest api call but activiti is returning exception as "Failed to serialize to a AttachmentRequest instance" .
02-27-2017 12:33 PM
Saurabh,
I've attempted the following multipart/form-data call:
POST /api/runtime/tasks/{taskId}/attachments
File: <specified file> (I used a .jpeg)
Name: <named the file>
Description: <this field is optional>
I receive a 201 CREATED back from Activiti.
Could you lay out the query you're making with a little bit more detail, and verify that you're trying to attach to a running/live task instance? It would also help if you included the stacktrace from the logs when this exception occurs.
Thanks,
-JEarles
Explore our Alfresco products with the links below. Use labels to filter content by product module.