47 lines
1.6 KiB
Plaintext
47 lines
1.6 KiB
Plaintext
Business history log
|
|
|
|
FROM CASE 79
|
|
A central event log used to track changes to business objects and events of significance in AyaNova.
|
|
??Has some sort of checksum or verification so we can tell it wasn't fucked with
|
|
Consumed by various widgets for record history purposes
|
|
Default feature, no need to turn on or off keeps logs for 45 days, users who want more can
|
|
Items are only removed from log when source object is deleted (and replaced with a deleted entry and textual description of deleted item)
|
|
|
|
|
|
EVENT_TYPES
|
|
-----------
|
|
A master enum of all event types in RAVEN.
|
|
Co-used by this log feature, but also used by notification system
|
|
Also used by localized text feature to fetch text about event for display in log and notification etc
|
|
May be used for other things in future.
|
|
Common event types that apply to any object and then specific event types that apply to particular types of objects but all in teh same master enum
|
|
|
|
EventType
|
|
ALL OBJECTS
|
|
1 = created
|
|
2 = retrieved (keep just in case, but perhaps not to be used unless high level of logging required?)
|
|
3 = modified
|
|
4 = deleted
|
|
|
|
SPECIFIC OBJECT EXAMPLE
|
|
Workorder:
|
|
4=Closed
|
|
5=Servicecompleted
|
|
6=all parts set to used in Service
|
|
7 = accepted from csr
|
|
etc
|
|
|
|
|
|
EVENT LOG DB SCHEMA
|
|
------------------------------------
|
|
AYTYPE (object type int),
|
|
AYID (object id),
|
|
AYEVENT (event of interest type int defined in central master enum of all events),
|
|
TIMESTAMP (unix epoch),
|
|
USERID,
|
|
TEXTRA (text field to identify stuff that can't be retrieved from source object, i.e. deleted record name)
|
|
|
|
|
|
TODO:
|
|
1) Implement this log and routes to interact with it
|
|
2) Implement an auto-prune job |