tsgrp / ActiveWizard

OpenContent Dynamic Forms and Workflow
http://www.tsgrp.com/products/opencontentforms/
4 stars 0 forks source link

Folder Property Inheritance - Property Integrity Over Time #273

Closed gsteimer closed 9 years ago

gsteimer commented 9 years ago

When a client sets up folder property inheritance, we currently have nothing that keeps the integrity of the properties updated over time. For example, for the Insurance reference trac - this scenario can occur:

  1. Admin sets up policy documents to inherit from the Policy Folder
  2. User checks in documents, certain values like policy number, insured name, etc. inherit down to the document.
  3. At some later point in time, one or more of the folder properties change on the document. Example - the Insured Name changes
  4. The document(s) in the folder now have an incorrect insured name

Up to this point, we have not added anything to core HPI to keep the properties in sync for a number of reasons:

  1. Some client's don't want the properties to synchronize - in this case, the inheritance is more of a
  2. Some clients use the PropertyIntegrityCheck to sniff out these inconsistencies and manually update them

We should talk before implementing this, but here are some ideas:

zkeller commented 9 years ago

While it isn't through HPI or OC code, for alfresco, we have the folder inheritance amp that was recently updated to keep folder and document property values in sync when the folder values change. It does that through a behavior.

gsteimer commented 9 years ago

@zkeller - Interesting, is it configurable enough to handle any client scenario?

@joehof @dhartman25 - Dave was asking me to add this for your current client. Can we just use the AMP Zaq mentioned and call it good?

zkeller commented 9 years ago

It is pretty generic - in a props file in the amp you specify the properties/aspects that are inherited, and you list the types you want to run the behavior on, then you set up the folder inheritance rule on the folder (which syncs up properties when a document enters the folder).

gsteimer commented 9 years ago

@zkeller - nice, thanks. @joehof / @dhartman25 - can either of you verify if this will work for your current client as-is or do we need any more development time?

dhartman25 commented 9 years ago

@gsteimer - this sounds like it should satisfy what our client needs.

gsteimer commented 9 years ago

Closing - moved to https://github.com/tsgrp/hpi/issues/869