Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejavascript
 function  NotifyEventStr(objtype : String, id  : String, event : String, param<value>  [, param<value>] : String )

...

Code Block
languagejavascript
 if (Event.SourceType == "CAM" && Event.Action == "MD_START")
{
  var regionid;
  if (Event.SourceId <=4)
  {
    regionid = "1";
  }
  if ((Event.SourceId > 4) &&  (Event.SourceId <= 10))
  {
    regionid = "2";
  }
  NotifyEventStr("REGION", regionid, "PANIC_LOCK", "");
}