Prior to 3.2, Milan required the following SQL triggers on all WorkSite databases in order to process updates to documents and workspaces.
However, with the addition of Policy Queue Service, these triggers are no longer necessary and should be uninstalled after upgrading from an earlier version of Milan.
To uninstall the SQL triggers:
Policy Queue Service can be configured to listen for and assign a priority level to different types of events. The configuration file, Prosperoware.Milan.Policy.Queue.exe.config, can be found in C:\Program Files\Prosperoware.Milan\service\ and has the following default settings
<actionTypes>
<addtype="Insert"priority="Lowest" />
<addtype="Update"priority="Normal"/>
<addtype="Delete"priority="Highest"/>
<addtype="ProfileUpdate"priority="Normal" />
<addtype="FileUpdate"priority ="Lowest" />
<addtype="SecurityUpdate"priority="Highest"/>
<addtype="DocumentLink"priority="Lowest" />
<addtype="DocumentUnlink"priority="Highest" />
<addtype="ProjectUnlink"priority="Highest"/>
<addtype="NvpUpdate"priority="Normal" />
</actionTypes>
The default event types listed above should be sufficient for most Milan configurations. However, any of the available event types not already listed can be added and assigned one of five priority levels. To have Milan ignore an event type, remove the appropriate line from the file.
The priority level determines the date, relative to the current day and time, that will be used when the PQS inserts entries into the InputQueue table for change events of a specific type. Because Milan processes items in the InputQueue table by date in ascending order, higher priority items are given earlier dates.
Priority Level | InputQueue Date |
---|---|
Lowest | 7 days prior to current date |
BelowNormal | 1 day prior to current date |
Normal | Current day and time |
AboveNormal | 1 day after current date |
Highest | 1 year after current date |
PQS can listen for the following event types, which are listed in WorkSite's ChangeEvents table by the enum value.
Event | Enum | Occurs When |
---|---|---|
Insert | 1 | A document or folder is created |
Update | 2 | A document is checked in |
Delete | 4 | A document is deleted |
Reset | 8 | N/A |
ProfileUpdate | 16 | A document or folder profile is updated. |
FileUpdate | 32 | The underlying document is changed, e.g. checking-in a document as an existing version. |
SecurityUpdate | 64 | A document security ACL is updated. |
DocumentLink | 128 | A document is added to a folder. |
DocumentUnlink | 512 | A document is removed or moved from a folder. |
ProjectUnlink | 1024 | A folder is removed from a workspace, tab or a folder. |
NvpUpdate | 2048 | Folder metadata is updated. |
ProjectLink | 256 | A folder is added to a workspace, tab, or folder. |
DeclareRecord | 4096 | A document is declared as a record. |
Undeclare Record | 8192 | A documents is undeclared as a record. |