Binding a document to a model Instance

Hello,

I am working on a project where Model A has many Model B's, and each Model B must have a document attached to it. Is there a way to bind a document to an instance of a model and not to the process?

Hi,

In the examples section of the Bonita documentation, you have a detailed example of how to attach a document to a case (aka model instance).

Hope it helps!

Hello,

To the best of my understanding, the example provided is a function to be executed in a script, most likely in a connector, that will bind a document to a case using the processInstanceID. However, I am trying to bind/attachment documents to a list of models generated in a single process instance, i.e. an expense report that has many expenses, and each expense must have a scanned file attached to it.