Casting object of type System.FileDocument to specialized entity
Hi everyone, I want to be able to cast an object of type System.FileDocument to an entity that I have created called ZipFile (which has System.FileDocument as a generalization) so that I can download the zipfile (Access rights on System.FileDocument prohibit me from being able to just download the zip file). Is it possible to do this? Thank you! Jon
Yes, use an inheritance split followed by a cast action, like this
you should use the System.FileDocument as the input in the inheritance split. The arrow leading to your cast should point to the ZipFile specialization.
You’ll also need to have outgoing arrows from the inheritance split for all other System.FileDocument specializations. The other specializations can go to end actions.