Hi,
I know it's possible to start a business process with a file attached to form field using graphical user interface. Is it possible to do the same programmatically using Alfresco Process Services REST API?
It seems that POST /enterprise/process-instances (Start a process instance) only contains variables and values fields: https://activiti.alfresco.com/activiti-app/api-explorer.html#!/process-instances/startNewProcessInst...
There's no direct API to initiate process instance with Attachments.
What you can do is first create the attachment in aps using content-api
Get the Content ID from the response and send the same in the start-process api with the fieldID same as your form's field id.
You can also attach field directly thttps://activiti.alfresco.com/activiti-app/api-explorer.html#!/content/createRelatedContentOnProcessInstanceUsingPOST_1o the process instance using-
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.