How to upload files to Azure blob storage?
Hi,
I don't know if it is possible, but I think it is or maybe there's a much better alternative.
When the process starts, the user can select a file to be attached. Question is, how can I upload the file to Azure upon submission of the process instance?
1 answer
My recommendation would be to:
- declare a document in the Bonita process definition
- define a process instantiation contract that expect a file and will save it in the document declared in process definition
- create an instantiation form that allow the user to upload the file
- create a new definition and implementation of Bonita connector that would receive a document as input and will perform the appropriate call to Azure API to upload the file
- configure the newly created connector to be execute on start of the process and use the document as input
That is an overview of the solution I imagine. Also it might be possible to reuse Bonita standard REST connector to perform Azure API call but I'm not sure if this connector can deal with document.
Comments
Thanks antoine. I will explore that approach.