cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing new ContentStorage locations

jonnyg
Confirmed Champ
Confirmed Champ
As best as we can tell, ContentStorage is used for 2 very different use cases – export of StencilSets files, and user attachments. The latter we will be using an ECM (which may be Alfresco One, or another system). The former we would like to move out of the filesystem.

It looks easy enough provide a new implementation of com.activiti.content.storage.api.ContentObject and com.activiti.content.storage.api.ContentStorage. What I can't find yet is the factory method which sets the storage class. Is there one? Where is it?
10 REPLIES 10

jbarrez
Star Contributor
Star Contributor
I'll try to express myself better if my answer was inadequate: no, they are not generated on the fly by design.

Right now, stencil scripts are stored in the content store, and there is a link to the store using the store_id (see my comment above).
The stencil script is created when the stencil is saved. If there are existing scripts, they are merged and  the merged result is stored again in the content store. When they are needed, they are fetched from the db and content store (and cached).

In theory, you could remove that, and on bootup walk through all your stencils, parse them and execute similar logic and put them in the cache. But that's theoretically and as far as I know, nobody has tried this path yet.