How to upload files to Azure blob storage?



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:

  1. declare a document in the Bonita process definition
  2. define a process instantiation contract that expect a file and will save it in the document declared in process definition
  3. create an instantiation form that allow the user to upload the file
  4. 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
  5. 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.


Submitted by juanopaulo.sarr... on Thu, 01/23/2020 - 15:02

Thanks antoine. I will explore that approach.