Go to documentation repository
...
| Code Block | ||
|---|---|---|
| ||
function NotifyEventStr(objtype : String, id : String, event : String, param<value> [, param<value>] : String ) |
...
| Code Block | ||
|---|---|---|
| ||
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", "");
} |