INC_SERVER Incident server

INC_MANAGER Incident manager

Example 1. On macro 1, change the status of the Alarm event on camera 1 to Completed.

OnEvent("MACRO","1","RUN")
{
    DoReactStr("INC_SERVER","1","UPDATE_STATUS","status<3>,objtypes<CAM>,objids<1>,actions<MD_START>");
}

Example 2. On macro 2, on Incident server 1, change the status of the event escalation of camera 1 to Waiting for processing (not escalated). 

if (Event.SourceType == "MACRO" && Event.SourceId == 2 && Event.Action == "RUN")
{
DoReactStr("INC_SERVER","1","UPDATE_ESCALATE_STATUS","escalated<0>,objtypes<CAM>,objids<1>");
}

Example 2. Changing the status of an event in Incident manager

When working with objects in the Incident manager, it is possible to change the event status of an object (see Processing events). To change the event status of an object, you can use a JScript script.

Example. On macro 3, change the status of the Alarm event on camera 1 or 2 to Completed. 

if (Event.SourceType == "MACRO" && Event.SourceId == 3 && Event.Action == "RUN")
 {
    DoReactStr("INC_SERVER","1","UPDATE_STATUS","status<3>,objtypes<CAM>,objids<1|2>,actions<MD_START|MD_START>");
 };