| Revision 431,
655 bytes
checked in by jdalbey, 7 years ago
(diff) |
|
Add new files for prototype of unified logging service
|
| Line | |
|---|
| 1 | |
|---|
| 2 | Function Setup |
|---|
| 3 | /* Assumes cms messages file is created in same order each time. */ |
|---|
| 4 | Create two lists, prev and curr, initially empty |
|---|
| 5 | Load the cmsmessage file into prev. |
|---|
| 6 | |
|---|
| 7 | Function processMessages |
|---|
| 8 | Load the cms message file into curr |
|---|
| 9 | Reset Results |
|---|
| 10 | For idx in 1 to length(curr) |
|---|
| 11 | |
|---|
| 12 | IF prev[idx] is empty and curr[idx] not empty THEN |
|---|
| 13 | append to results: "Activated", ID, curr[idx] |
|---|
| 14 | IF curr is empty and prev not empty THEN |
|---|
| 15 | append to results: "Deactivated", ID |
|---|
| 16 | IF curr not empty and prev not empty and curr not equal prev THEN |
|---|
| 17 | append to results: "Updated", ID, curr |
|---|
| 18 | |
|---|
| 19 | END |
|---|
| 20 | |
|---|
| 21 | Copy curr to prev |
|---|
| 22 | |
|---|
| 23 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.