Configuring Controlled docs with AGS Solution - tsgrp/HPI GitHub Wiki
This page is being moved to the alfresco documentation
Background:
Why this exists:
When using Controlled Docs with AGS, as soon as a doc becomes effective it should become a record.
If we were just to declare that effective controlled doc a record, it could no longer be able to be checked out and checked back in since records are immutable (the controlled doc version chain would essentially be dead)
Therefore, the controlled docs with AGS solution will actually create a copy of the controlled document when it becomes effective so that that copy can be declared an AGS record and the controlled doc itself will still be able to be checked out and checked back in
Implications:
When a controlled doc becomes effective
A record copy is created of that controlled doc (and a rule will run to declare that copy as a record)
Disposition
When the record copy is dispositioned, a behavior will now run and delete the associated controlled document version as the record copy is dispositioned
superceded/obsolete
When a controlled doc becomes superceded or obsoleted, the record copy status will also be updated to show the change
Configuring the solution:
Prerequisites:
You will need AGS installed in alfresco
You will need a working controlled docs solutions such that documents are moved to the effective state
You will need 2 separate object types - 1 for your controlled doc (for example acme:controlledDoc) and 1 type that your record should be copied to (for example acme:record)
The are 2 key pieces to configuring controlled docs with AGS
1. Enable the functionality by overriding the default values for these props
controlled.docs.with.ags=true
Set this to true to signify we are using the controlled docs with AGS solution
Set the list of behaviors that should be disabled when running the controlled doc with AGS logic
We suggest setting this to at least cm:content and tsg:Rendition since these content props will be automatically copied over and we don’t want them generated from jobs on our record copy