Hi.
Is it possible to use properties defined on access control events in rules? I have an event that’s fired from the AC server whenever someone tries to use a blocked card. The card number is passed to the event handler and I put it in an ACProperty object within the ACEvent, which displays fine in the Smart Client. Is it possible to define this property as being part of the event so that I can make a rule that’s triggered on a specific card number? Right now I can only make a rule that triggers for all blocked cards. I tried adding the ACProperty with the same key to the ACEventType, but that seemed to do nothing.
-Roger
No. The rule system cannot work with the Card number or any other property on the event from the access control system.
It would be possible to develop an integration.
If interested, try this: Do one change to the Alarm and Event Server sample: In MainForm.cs line 412 change
var events = message.Data as System.Collections.ObjectModel.Collection;
to
var events = message.Data as System.Collections.Generic.IEnumerable;
Run the sample in Event mode, when you trigger an “Access Granted” event, you can see the event, with a breakpoint you can see all the information that the event includes.
Thanks for the answer. I tried your suggestion and I managed to get the event and its properties with breakpoints. I take it that means I can create a regular MIP plug-in that catches the events and use those in the rule system?