AnsweredAssumed Answered

AF notifications in ready but not running state

Question asked by DSmith1 on Feb 2, 2016
Latest reply on Feb 17, 2016 by gnmazero

Every now and then our PI notifications enter a bad state. It says they are "ready but not running" and so if the trigger condition is met a notification is NOT sent out.



This has caused some headaches over time... so to monitor the notifications I'm writing a small AFSDK application to check their status.






AFNamedCollectionList<AFNotification> myNotifications = AFNotification.FindNotifications(targetAFDB, "*", 

AFSearchField.Name, AFSortField.Name, AFSortOrder.Ascending, 1000);

new List<string>();

foreach (AFNotification afNote in myNotifications)

if (!(afNote.Status == AFStatus.Enabled))



Right now it checks whether the AF notifications' status is 'Enabled'. I assumed this correlated one-to-one with 'Running' when looking at the notification in AF client and that there was another status that correlated to 'Disabled' and another status that correlated to the status 'ReadyButNotRUnning'. This unfortunately is not the case. Right now my notifications are in the corrupt 'ReadyButNotRunning' state but my code still sees the notifications as 'Enabled'



Is there a way through AFSDK to determine when the notifications are in this state?