protected virtual void RunRules(string eventName, Item item) { if (!Settings.GetBoolSetting("IFTTT.Enable.EventTriggers", true)) { return; } Rules.RunEventRules(eventName, item, item?.TemplateName, item?.Name, item?.Parent?.Name ); }
public override void Process(RegisterPageEventArgs args) { Assert.ArgumentNotNull(args, "args"); if (args.PageEvent == null) { return; } var pageItem = ItemUtil.GetItemById(args.PageEvent.ItemId); Rules.RunEventRules(args.PageEvent?.Name, pageItem, args.PageEvent.DataKey, args.PageEvent.IsGoal? "is goal":"not goal", args.PageEvent.Value.ToString() ); }