Does removing a generalization of FileDocument also delete the file?

0
Regarding an entity with "FileDocument" generalization, does deleting its generalization directly eliminate the file contents on the storage server? This behavior is necessary as we plan to move the files to Amazon S3 and retain only the references in the existing entity (in the form of a new attribute). If the file contents aren't deleted, we will be left with approximately 30,000 files remaining in the storage, which would become inaccessible.
asked
2 answers
0

In Local the answer is yes.

The generalized entity retains the objects that it got. Specialization FileDocument entries removed. In the filesystem - contents binary files are removed but the folders which may are created to organize files are kept.

answered
0

Pedro,

When we needed to do something similar (remove file contents but retain the entity and associations) I created this microflow:

image.png

 

The Java action does this

image.png

Which replaces the existing file contents with a simple string.  We also added an attribute to our file document specialization which indicates that the file contents have been removed:

image.pngHope that gives you some ideas as you are working on this.

Mike

answered