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" .
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
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.