Switch to side-by-side view

--- a/backend/notificationManager.js
+++ b/backend/notificationManager.js
@@ -14,6 +14,7 @@
 	//prepare the http response
 	var response = [];
 	var jobsdone = 0;
+	var valueSubject = null;
 
 	//grab the app rules list
 	mysql.getRulesListByToken(appToken, function(success, rules){
@@ -45,6 +46,11 @@
 									}
 								});
 							}else{
+								if(parseFloat(eachBody.subjectValue) >= parseFloat(eachRule.controlValue)){
+									valueSubject = "Subject's value higher Rule's threshold";
+								}else{
+									valueSubject = "Subject's value under Rule's threshold";
+								}
 								//rule not applied because of threshold was not exceed
 								logger.debug({subject: eachBody.subject, value: eachBody.subjectValue, ruleid: eachRule.rulesID, success: false, comment:"Rule's threshold not exceed"});
 								
@@ -59,6 +65,7 @@
 										cb(true, response)
 									}
 								})
+								valueSubject = null;
 							}
 						}else{
 							//rule not applied