From 2af355223ab79de4d1be5ad5c0aeab6063ebfa8c Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 16 Jul 2020 21:06:17 +0000 Subject: [PATCH] --- devdocs/specs/core-notification.txt | 11 ++++++----- server/AyaNova/biz/NotifyEventProcessor.cs | 6 +++++- server/AyaNova/biz/NotifyEventType.cs | 3 ++- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/devdocs/specs/core-notification.txt b/devdocs/specs/core-notification.txt index b41e9a2f..86eadcb8 100644 --- a/devdocs/specs/core-notification.txt +++ b/devdocs/specs/core-notification.txt @@ -244,18 +244,19 @@ WorkorderItemPartRequestPartsReceived [GENERAL] ## NEW DEADMAN_Job_procesor_fail direct email and other notifications? Not sure how this could work to be honest, it would need to have a generator to do the checking unless we're talking about another timer somewhere else -Daily_Notify_health_check (biz and ops) [GENERAL] -Nightly_Notify_health_check (biz and ops)[GENERAL] +Daily_Notify_health_check (biz and ops) [GENERAL] CREATED BY NOTIFY DELIVERY PROCESSOR +Nightly_Notify_health_check (biz and ops)[GENERAL] created by notify delivery processor BackupStatus case 3786 (biz and ops) [GENERAL] (OR is this more of a general OPERATIONS notifications without choosing specific type because anyone in ops needs all) UpcomingServiceEvent case 3725 [CUSTOMER] WorkorderItemPartRequestCreated case 3652 [GENERAL] ContractExpiring - Customer version in addition to User version [CUSTOMER] WorkorderTotalExceedsThreshold - Custom notification case 1745 "the andy" [GENERAL] [CONDITION: DOLLARTOTAL money value] -WorkOrderStatusAge "deadman" delivery if *SPECIFIC* status not changed to different status before XX time period [GENERAL] https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/1137 +WorkOrderStatusAge "deadman" delivery if *SPECIFIC* status not changed to different status before XX time period [GENERAL] [CONDITION: AGEVALUE] +https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/1137 NOTE: this will need a timespan with a different title -QuoteStatusAge [PERSONAL (prepared by), GENERAL] +QuoteStatusAge [PERSONAL (prepared by), GENERAL] [CONDITION: AGEVALUE] UnitWarranyExpiry case 1361 [GENERAL] UnitMeterReadingMultipleExceeded case 1254 [GENERAL] DefaultNotification case 3792 used for all system and old Quick notifications [EVERYONE] @@ -274,7 +275,7 @@ CRUD Notifications: ObjectCreated ObjectUpdated ObjectDeleted - ObjectAge since creation (this will cover a shitload of use cases, for example workorder follow up could be done this way etc) + ObjectAge since creation (this will cover a shitload of use cases, for example workorder follow up could be done this way etc) [CONDITION: AGEVALUE] PERSONAL? OR COVERED BY TAG FILTER ALREADY BETTER? WorkorderItemPartRequestPartsReceivedWhenIAmScheduled [PERSONAL] diff --git a/server/AyaNova/biz/NotifyEventProcessor.cs b/server/AyaNova/biz/NotifyEventProcessor.cs index f7e5e1b4..f55e9207 100644 --- a/server/AyaNova/biz/NotifyEventProcessor.cs +++ b/server/AyaNova/biz/NotifyEventProcessor.cs @@ -80,7 +80,11 @@ namespace AyaNova.Biz continue; //AgeValue - + switch(ev.EventType){ + case NotifyEventType.ObjectAge: + case NotifyEventType.WorkorderStatusAge: + case NotifyEventType.quote + } //Here we know the sub matches so create the NotifyEvent here diff --git a/server/AyaNova/biz/NotifyEventType.cs b/server/AyaNova/biz/NotifyEventType.cs index d8e98f50..bf639022 100644 --- a/server/AyaNova/biz/NotifyEventType.cs +++ b/server/AyaNova/biz/NotifyEventType.cs @@ -37,7 +37,8 @@ namespace AyaNova.Biz UnitWarrantyExpiry = 25, UnitMeterReadingMultipleExceeded = 26, DefaultNotification = 27,//old quick notification, refers now to any direct text notification internal or user to user used for system notifications - ServerOperationsProblem = 28//and serious issue with server operations requiring intervention + ServerOperationsProblem = 28,//and serious issue with server operations requiring intervention, + QuoteStatusAge = 29//quote stuck in same status too long //NEW ITEMS REQUIRE translation KEYS