Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Activate - method of the PmaEventGroup object

Description:
Activation of an existing event item (of the PmEventItem object).
Syntax:
Empty Activate(String sId, [String sComment], [Date tTimeOn])
Parameters:
sId(String) The unique text identifier of the event item. See the "Identifier" configurator.
sComment[optional] (String) The text comment that is stored into the data together with the activated event item (it is enabled on the "Storage" tab).
tTimeOn[optional] (Date) The activation time of the event. If not set, then the computer current time is used.
Note:
Calling the Activate method over the active event has no effect.

If there are several instances of the event item with the same identifier (caused by states of event items inactive unacknowledged (blue)), then the last, the latest old, event item is activated.

After the attempt to activate non-existing event item (wrong parameter sId), an error occurs in the INFO system only if in the corresponding PmaEventGroup object there is no event item with the set Template for dynamically created items (i.e. all event items of the PmaEventGroup object are statically configured).

The method is synchronous, i.e. it is processed immediately by the event subsystem. Nevertheless writing the history to disk is asynchronous, it means that this method passes the request for writing to the history to the event subsystem, that is placed into the queue of requests and is processed later by the event subsystem.

See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oEv = pMe.Pm("/Event");
oEv.Activate("T1_HI");
PROMOTIC 9.0.13 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice