Search code examples
pluginsfilenet-p8filenet-content-engine

FileNet property for all versions of a document


As I understand it in FileNet each version of a document gets its own ID. And if you create a new version then usually the properties are inherited from the previous version. So each version of a document has its own values for the properties.

Now I would like to add a property which is valid for all versions of a document (all versions != document class) for the use in a plugin. But I couldn't find any support for this. The only ugly concept I could come up with is the following:

  1. Add a new property
  2. Add all information to the lowest version of the document and retrieve it from there (otherwise you would need to modify all versions on changes)
  3. Add a subscription which empties the property when creating the 2nd version (0.2, 1.0 or 1.1 usually) of the document and prevents deletion of the oldest version

Is there a more intelligent way?


Solution

  • You do not need a special Version series property - Version series IS that property.

    Most of the time you only care about the current version of the document which can be accessed through any version of the document or its Version series. If that is not the case then you will have to iterate through all the versions of the document which are, again, most conveniently accessed through the Version series.

    Since any document at any point of time is associated with its VS, when you need a relation to the VS you must use VS object reference or its ID.