Index: trunk/webapps/unifiedlogger/CMS watcher design.txt
===================================================================
--- trunk/webapps/unifiedlogger/CMS watcher design.txt	(revision 429)
+++ trunk/webapps/unifiedlogger/CMS watcher design.txt	(revision 431)
@@ -1,11 +1,23 @@
-For each cms in signlist
 
-  IF prev is empty and curr not empty THEN
-        print "Activated", ID, curr
-  IF curr is empty and prev not empty THEN
-        print "Deactivated", ID
-  IF curr not empty and prev not empty and curr not equal prev THEN
-        print "Updated", ID, curr
+Function Setup
+/* Assumes cms messages file is created in same order each time. */
+Create two lists, prev and curr, initially empty
+Load the cmsmessage file into prev.
 
-END
+Function processMessages
+    Load the cms message file into curr
+    Reset Results
+    For idx in 1 to length(curr)
 
+      IF prev[idx] is empty and curr[idx] not empty THEN
+            append to results: "Activated", ID, curr[idx]
+      IF curr is empty and prev not empty THEN
+            append to results: "Deactivated", ID
+      IF curr not empty and prev not empty and curr not equal prev THEN
+            append to results: "Updated", ID, curr
+
+    END
+
+    Copy curr to prev
+
+
